Date: Thu Jan 2 09:07:07 2003 Author: abartlet Update of /data/cvs/samba/source/rpc_client In directory dp.samba.org:/tmp/cvs-serv24160/rpc_client
Modified Files: cli_pipe.c cli_spoolss.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: cli_pipe.c 1.92 => 1.93 http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_client/cli_pipe.c?r1=1.92&r2=1.93 cli_spoolss.c 1.51 => 1.52 http://www.samba.org/cgi-bin/cvsweb/samba/source/rpc_client/cli_spoolss.c?r1=1.51&r2=1.52