summaryrefslogtreecommitdiff
path: root/source4/nsswitch/winbindd_nss.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/nsswitch/winbindd_nss.h')
-rw-r--r--source4/nsswitch/winbindd_nss.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/nsswitch/winbindd_nss.h b/source4/nsswitch/winbindd_nss.h
index 9a99bad9d7..d785b8420c 100644
--- a/source4/nsswitch/winbindd_nss.h
+++ b/source4/nsswitch/winbindd_nss.h
@@ -22,7 +22,7 @@
*/
#ifndef SAFE_FREE
-#define SAFE_FREE(x) do { if(x) {free(x); x=NULL;} } while(0)
+#define SAFE_FREE(x) do { if(x) {free(discard_const_p(void *, (x)); x=NULL;} } while(0)
#endif
#ifndef _WINBINDD_NTDOM_H