diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-25 12:48:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:14 -0500 |
commit | 6310f40448f9f9e856874cbefcc25b753963a41e (patch) | |
tree | e4ce63697114f23b9cd93ad8d925e03e736ac7d9 /source4/lib/util.c | |
parent | 18104c5679331c763f513f4c01b67b68f7a746fd (diff) | |
download | samba-6310f40448f9f9e856874cbefcc25b753963a41e.tar.gz samba-6310f40448f9f9e856874cbefcc25b753963a41e.tar.bz2 samba-6310f40448f9f9e856874cbefcc25b753963a41e.zip |
r2634: use discard_const_p() in a few places
(This used to be commit 56ecda2178e33508c55c6195ccec41c06e099d6f)
Diffstat (limited to 'source4/lib/util.c')
-rw-r--r-- | source4/lib/util.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/util.c b/source4/lib/util.c index 910a35217c..2862a40bd7 100644 --- a/source4/lib/util.c +++ b/source4/lib/util.c @@ -944,8 +944,11 @@ BOOL all_zero(const char *ptr, uint_t size) we get new errors. Please only add more calls to this function when you find it - _really_ hard to fix const warnings. Our aim is to eventually not - need this function at all, + _really_ hard to fix const warnings. Our aim is to eventually use + this function in only a very few places. + + Also, please call this via the discard_const_p() macro interface, as that + makes the return type safe. */ void *discard_const(const void *ptr) { |