summaryrefslogtreecommitdiffstats
path: root/source/tdb/tdb.c
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2005-03-31 05:06:04 +0000
committerDerrell Lipman <derrell@samba.org>2005-03-31 05:06:04 +0000
commitea29f4956aa2bdf142d7a55b4bba92f79b7bb28b (patch)
tree5575bb9592285b16cf5f51493c9f035f96a1e893 /source/tdb/tdb.c
parent79ecc123e01f702e3df7761645a69f005a7ec332 (diff)
downloadsamba-ea29f4956aa2bdf142d7a55b4bba92f79b7bb28b.tar.gz
samba-ea29f4956aa2bdf142d7a55b4bba92f79b7bb28b.tar.xz
samba-ea29f4956aa2bdf142d7a55b4bba92f79b7bb28b.zip
r6149: Fixes bugs #2498 and 2484.
1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task.
Diffstat (limited to 'source/tdb/tdb.c')
-rw-r--r--source/tdb/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index 0644b64da09..f153e2f2582 100644
--- a/source/tdb/tdb.c
+++ b/source/tdb/tdb.c
@@ -128,7 +128,7 @@
/* free memory if the pointer is valid and zero the pointer */
#ifndef SAFE_FREE
-#define SAFE_FREE(x) do { if ((x) != NULL) {free((void *) (x)); (x)=NULL;} } while(0)
+#define SAFE_FREE(x) do { if ((x) != NULL) {free(CONST_DISCARD(void *, (x))); (x)=NULL;} } while(0)
#endif
#define BUCKET(hash) ((hash) % tdb->header.hash_size)