mirror of
https://github.com/samba-team/samba.git
synced 2024-12-30 13:18:05 +03:00
6d66fb308a
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
(This used to be commit
|
||
---|---|---|
.. | ||
.cvsignore | ||
COPYING.LIB | ||
debugparse.c | ||
debugparse.h | ||
README.UBI | ||
sys_include.h | ||
ubi_BinTree.c | ||
ubi_BinTree.h | ||
ubi_Cache.c | ||
ubi_Cache.h | ||
ubi_dLinkList.c | ||
ubi_dLinkList.h | ||
ubi_sLinkList.c | ||
ubi_sLinkList.h | ||
ubi_SplayTree.c | ||
ubi_SplayTree.h |
Fri Apr 17 10:21:56 CDT 1998 The C code files in the samba/source/ubiqx directory are licensed under the terms of the GNU LIBRARY GENERAL PUBLIC LICENSE (LGPL). A copy of the LGPL should also be included in this directory under the name COPYING.LIB. If this file is not present, you can obtain a copy of the LGPL by writing to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The versions of the ubiqx modules distributed with Samba may have been modified for inclusion with Samba. The main distribution, which contains additional available modules, can be found at: http://www.interads.co.uk/~crh/ubiqx/ Chris Hertel Samba Team ubiqx@ubiqx.mn.org