CVS update: samba/source/smbd

abartlet at samba.org abartlet at samba.org
Thu Jan 2 20:07:15 EST 2003


Date:	Thu Jan  2 09:07:15 2003
Author:	abartlet

Update of /data/cvs/samba/source/smbd
In directory dp.samba.org:/tmp/cvs-serv24160/smbd

Modified Files:
	build_options.c connection.c dir.c filename.c lanman.c 
	mangle.c mangle_hash.c negprot.c nttrans.c process.c reply.c 
	server.c utmp.c vfs.c 
Log Message:
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


Revisions:
build_options.c		1.14 => 1.15
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/build_options.c?r1=1.14&r2=1.15
connection.c		1.50 => 1.51
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/connection.c?r1=1.50&r2=1.51
dir.c		1.75 => 1.76
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/dir.c?r1=1.75&r2=1.76
filename.c		1.54 => 1.55
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/filename.c?r1=1.54&r2=1.55
lanman.c		1.90 => 1.91
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/lanman.c?r1=1.90&r2=1.91
mangle.c		1.73 => 1.74
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/mangle.c?r1=1.73&r2=1.74
mangle_hash.c		1.6 => 1.7
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/mangle_hash.c?r1=1.6&r2=1.7
negprot.c		1.73 => 1.74
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/negprot.c?r1=1.73&r2=1.74
nttrans.c		1.172 => 1.173
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/nttrans.c?r1=1.172&r2=1.173
process.c		1.112 => 1.113
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/process.c?r1=1.112&r2=1.113
reply.c		1.412 => 1.413
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/reply.c?r1=1.412&r2=1.413
server.c		1.401 => 1.402
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/server.c?r1=1.401&r2=1.402
utmp.c		1.6 => 1.7
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/utmp.c?r1=1.6&r2=1.7
vfs.c		1.66 => 1.67
	http://www.samba.org/cgi-bin/cvsweb/samba/source/smbd/vfs.c?r1=1.66&r2=1.67



More information about the samba-cvs mailing list