1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-07 17:18:11 +03:00
samba-mirror/source3/lib
Andrew Bartlett 6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0ea)
2003-01-02 09:07:17 +00:00
..
.cvsignore - fixed cast warnings 1998-10-05 12:35:30 +00:00
access.c Removed global_myworkgroup, global_myname, global_myscope. Added liberal 2002-11-12 23:15:52 +00:00
account_pol.c BIG patch... 2003-01-02 09:07:17 +00:00
adt_tree.c BIG patch... 2003-01-02 09:07:17 +00:00
bitmap.c Nice *big* patch from metze. 2002-10-12 03:38:07 +00:00
charcnv.c BIG patch... 2003-01-02 09:07:17 +00:00
crc32.c int -> uint32 2002-02-17 18:30:01 +00:00
data_blob.c Nobody uses this, and its really just a layer of internal implementation. 2002-05-23 14:24:59 +00:00
debug.c Add const to DEBUG() macro. 2002-11-15 13:57:25 +00:00
dmallocmsg.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
domain_namemap.c Unicode conversion fix in Japanese environment from Motonobu TAKAHASHI. 1999-12-13 19:17:40 +00:00
dprintf.c put the ifdef for HAVE_VA_COPY in one place rather than in lots of 2002-06-03 03:07:24 +00:00
fault.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
fsusage.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
gencache.c Having waited for *way* too long, this is mimir's namecache and trusted domain 2002-11-26 11:57:30 +00:00
genparser_samba.c updates to the gums 2002-12-16 12:11:02 +00:00
genparser.c updates to the gums 2002-12-16 12:11:02 +00:00
genrand.c BIG patch... 2003-01-02 09:07:17 +00:00
getsmbpass.c Remove useless spaces - this broke make proto 2002-10-04 20:14:41 +00:00
hash.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
hmacmd5.c bcopy must DIE ! Stop people creeping use of bcopy back into the code 2002-02-26 17:40:43 +00:00
iconv.c BIG patch... 2003-01-02 09:07:17 +00:00
interface.c Removed global_myworkgroup, global_myname, global_myscope. Added liberal 2002-11-12 23:15:52 +00:00
interfaces.c merge from 2.2 2002-06-05 18:30:07 +00:00
md4.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
md5.c Fix the forword prototype to be a static for this static function. 2002-07-03 06:48:52 +00:00
messages.c BIG patch... 2003-01-02 09:07:17 +00:00
module.c Add a DEBUG() that gives the number of successfully loaded modules - useful for debugging 2002-11-13 13:47:12 +00:00
ms_fnmatch.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
netatalk.c Removed version number from file header. 2002-01-30 06:08:46 +00:00
pam_errors.c BIG patch... 2003-01-02 09:07:17 +00:00
pidfile.c BIG patch... 2003-01-02 09:07:17 +00:00
popt_common.c Removed global_myworkgroup, global_myname, global_myscope. Added liberal 2002-11-12 23:15:52 +00:00
readline.c As per the 'OK' at CIFS2002, only use the readline headers (and this crasy 2002-09-06 23:10:28 +00:00
replace.c POSIX indicates that this is always in network byte order, so we don't need the 2002-12-01 03:02:50 +00:00
select.c fixed a bug in handling select in the main daemon - this stops the daemon spinning if a signal is received at an inconvenient moment 2002-06-25 00:59:14 +00:00
sendfile.c Fix Solaris sendfile detection. Add small fixes to sendfile code. 2002-10-01 05:55:25 +00:00
server_mutex.c Never, *ever* hold a mutex lock in the message database where there may 2002-09-17 23:45:21 +00:00
signal.c Ensure we save any older SIGALRM signal handler. 2002-06-13 22:49:13 +00:00
smbpasswd.c BIG patch... 2003-01-02 09:07:17 +00:00
smbrun.c It seems I didn't need to write a dup2() wrapper - as we already use it a 2002-07-28 02:20:15 +00:00
snprintf.c merge from 2.2 2002-12-19 19:56:31 +00:00
substitute.c more %U fixes for head 2002-11-20 00:39:57 +00:00
sysacls.c Add a bit more const, and kill of (finally!) sys_getpwnam and sys_getpwuid. 2002-05-22 12:44:45 +00:00
system_smbd.c Updates! 2002-08-26 03:08:37 +00:00
system.c BIG patch... 2003-01-02 09:07:17 +00:00
talloc.c Finish adding strings to all talloc_init() calls. 2002-12-23 23:53:56 +00:00
tallocmsg.c Forward port the change to talloc_init() to make all talloc contexts 2002-12-20 20:23:06 +00:00
talloctort.c talloc_init_named -> talloc_init. 2002-12-22 16:02:36 +00:00
time.c The _abs time functions should not be converting from/to GMT. 2002-12-10 00:46:47 +00:00
ufc.c Fixed warnings and made const-safe so it has the correct prototype. 2001-07-03 21:07:26 +00:00
username.c Removed global_myworkgroup, global_myname, global_myscope. Added liberal 2002-11-12 23:15:52 +00:00
util_file.c don't warn on non-existant files in map_file(), let the caller handle any warning 2002-06-28 03:19:20 +00:00
util_getent.c Move tridge's getgrouplist() replacement function from replace.c to a new 2002-08-17 07:09:22 +00:00
util_pw.c Add back sys_getpwnam() and freinds to the system.c interface, but don't 2002-06-15 00:47:52 +00:00
util_seaccess.c try to put every security descriptors related definitions in the same file. 2002-10-06 23:53:34 +00:00
util_sec.c fixed a problem with getgroups() where it could include our current 2002-07-15 03:59:14 +00:00
util_sid.c BIG patch... 2003-01-02 09:07:17 +00:00
util_smbd.c Move tridge's getgrouplist() replacement function from replace.c to a new 2002-08-17 07:09:22 +00:00
util_sock.c BIG patch... 2003-01-02 09:07:17 +00:00
util_str.c BIG patch... 2003-01-02 09:07:17 +00:00
util_unistr.c patches from Urban 2002-11-08 18:44:57 +00:00
util_uuid.c Renamed uuid_to_string() to guid_to_string() to avoid conflict with OSF DEC 2002-11-17 01:14:30 +00:00
util.c BIG patch... 2003-01-02 09:07:17 +00:00
wins_srv.c Removed global_myworkgroup, global_myname, global_myscope. Added liberal 2002-11-12 23:15:52 +00:00
xfile.c add a trivial seeking function to xfile (tseek) that does not do SEEK_CUR 2002-08-27 09:07:08 +00:00