summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-09 18:26:39 +0000
committerJeremy Allison <jra@samba.org>2002-01-09 18:26:39 +0000
commitd3e9213af7d8d5b3f035c4be99997cb590cdaf6e (patch)
tree85b980b2aec2a901bd2d6e82d3b5f90851456c4a /source3
parent6c7050ea95001c6de6085f93e3d6332ed2c3aa60 (diff)
downloadsamba-d3e9213af7d8d5b3f035c4be99997cb590cdaf6e.tar.gz
samba-d3e9213af7d8d5b3f035c4be99997cb590cdaf6e.tar.bz2
samba-d3e9213af7d8d5b3f035c4be99997cb590cdaf6e.zip
Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
Jeremy. (This used to be commit 4f703b84cd7f258ae0169d52ca761b9404ccb348)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdb.c5
-rw-r--r--source3/tdb/tdb.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index fce5d5c943..6398a2a166 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -74,6 +74,11 @@
#define MAP_FAILED ((void *)-1)
#endif
+/* free memory if the pointer is valid and zero the pointer */
+#ifndef SAFE_FREE
+#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0)
+#endif
+
#define BUCKET(hash) ((hash) % tdb->header.hash_size)
TDB_DATA tdb_null;
diff --git a/source3/tdb/tdb.h b/source3/tdb/tdb.h
index da8cca19de..9335725a2a 100644
--- a/source3/tdb/tdb.h
+++ b/source3/tdb/tdb.h
@@ -135,11 +135,6 @@ void tdb_printfreelist(TDB_CONTEXT *tdb);
extern TDB_DATA tdb_null;
-/* free memory if the pointer is valid and zero the pointer */
-#ifndef SAFE_FREE
-#define SAFE_FREE(x) do { if ((x) != NULL) {free((x)); (x)=NULL;} } while(0)
-#endif
-
#ifdef __cplusplus
}
#endif