CVS update: samba/source/registry

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


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

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

Modified Files:
	reg_objects.c reg_printing.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:
reg_objects.c		1.4 => 1.5
	http://www.samba.org/cgi-bin/cvsweb/samba/source/registry/reg_objects.c?r1=1.4&r2=1.5
reg_printing.c		1.13 => 1.14
	http://www.samba.org/cgi-bin/cvsweb/samba/source/registry/reg_printing.c?r1=1.13&r2=1.14



More information about the samba-cvs mailing list