[SCM] Samba Shared Repository - branch master updated
Stefan Metzmacher
metze at samba.org
Sat Aug 28 00:41:30 MDT 2010
The branch, master has been updated
via a6111c2 lib/util: remove implicit discard_const_p() from SAFE_FREE()
from db6d1c6 s3:smbd: s/sa_len/sa_socklen , because sa_len is a macro on IRIX
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit a6111c2a7b9b6d8d4b6dec91072743683f9cae8c
Author: Stefan Metzmacher <metze at samba.org>
Date: Sat Aug 28 08:38:48 2010 +0200
lib/util: remove implicit discard_const_p() from SAFE_FREE()
This should fix a lot of warnings on IRIX.
If callers know what they're doing they can use discard_const_p()
on their own.
metze
-----------------------------------------------------------------------
Summary of changes:
lib/util/memory.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/lib/util/memory.h b/lib/util/memory.h
index cfc13ab..099dfbb 100644
--- a/lib/util/memory.h
+++ b/lib/util/memory.h
@@ -28,7 +28,7 @@
* @note You are explicitly allowed to pass NULL pointers -- they will
* always be ignored.
**/
-#define SAFE_FREE(x) do { if ((x) != NULL) {free(discard_const_p(void *, (x))); (x)=NULL;} } while(0)
+#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); (x)=NULL;} } while(0)
#endif
/**
--
Samba Shared Repository
More information about the samba-cvs
mailing list