CVS update: samba/source/rpc_server

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


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

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

Modified Files:
	srv_lsa.c srv_netlog_nt.c srv_pipe.c srv_reg_nt.c 
	srv_spoolss_nt.c srv_srvsvc_nt.c srv_util.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:
srv_lsa.c		1.81 => 1.82
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_lsa.c?r1=1.81&r2=1.82
srv_netlog_nt.c		1.68 => 1.69
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_netlog_nt.c?r1=1.68&r2=1.69
srv_pipe.c		1.99 => 1.100
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_pipe.c?r1=1.99&r2=1.100
srv_reg_nt.c		1.35 => 1.36
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_reg_nt.c?r1=1.35&r2=1.36
srv_spoolss_nt.c		1.369 => 1.370
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_spoolss_nt.c?r1=1.369&r2=1.370
srv_srvsvc_nt.c		1.85 => 1.86
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_srvsvc_nt.c?r1=1.85&r2=1.86
srv_util.c		1.71 => 1.72
	http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_server/srv_util.c?r1=1.71&r2=1.72



More information about the samba-cvs mailing list