From a6111c2a7b9b6d8d4b6dec91072743683f9cae8c Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 28 Aug 2010 08:38:48 +0200 Subject: 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 --- lib/util/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/util') 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 /** -- cgit