summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-01-09 18:26:28 +0000
committerJeremy Allison <jra@samba.org>2002-01-09 18:26:28 +0000
commit3d4c9b01c2af67b2c080d9c09ffe42d60c80e903 (patch)
tree7151595a1ff93fccc42b53941e8169496fc585a8
parent0c5f0e765473caff9d2f340fd86c7434cf43ac33 (diff)
downloadsamba-3d4c9b01c2af67b2c080d9c09ffe42d60c80e903.tar.gz
samba-3d4c9b01c2af67b2c080d9c09ffe42d60c80e903.tar.xz
samba-3d4c9b01c2af67b2c080d9c09ffe42d60c80e903.zip
Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.
Jeremy.
-rw-r--r--source/tdb/tdb.c5
-rw-r--r--source/tdb/tdb.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c
index fce5d5c943f..6398a2a166c 100644
--- a/source/tdb/tdb.c
+++ b/source/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/source/tdb/tdb.h b/source/tdb/tdb.h
index da8cca19def..9335725a2ac 100644
--- a/source/tdb/tdb.h
+++ b/source/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