Date: Thu Jan 2 09:07:02 2003 Author: abartlet Update of /data/cvs/samba/source/auth In directory dp.samba.org:/tmp/cvs-serv24160/auth
Modified Files: auth.c pampass.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: auth.c 1.44 => 1.45 http://www.samba.org/cgi-bin/cvsweb/samba/source/auth/auth.c?r1=1.44&r2=1.45 pampass.c 1.40 => 1.41 http://www.samba.org/cgi-bin/cvsweb/samba/source/auth/pampass.c?r1=1.40&r2=1.41