summaryrefslogtreecommitdiff
path: root/lib/util/memory.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-28 08:38:48 +0200
committerStefan Metzmacher <metze@samba.org>2010-08-28 08:41:00 +0200
commita6111c2a7b9b6d8d4b6dec91072743683f9cae8c (patch)
treea3dab2f65e68bf1a40149c0d65864da1acbc8335 /lib/util/memory.h
parentdb6d1c6276e1435e92e190ee9a80de55ca28561d (diff)
downloadsamba-a6111c2a7b9b6d8d4b6dec91072743683f9cae8c.tar.gz
samba-a6111c2a7b9b6d8d4b6dec91072743683f9cae8c.tar.bz2
samba-a6111c2a7b9b6d8d4b6dec91072743683f9cae8c.zip
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
Diffstat (limited to 'lib/util/memory.h')
-rw-r--r--lib/util/memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/memory.h b/lib/util/memory.h
index cfc13ab836..099dfbb694 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
/**