1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Move SAFE_FREE into tdb.c to stop exporting it into tdb.h namespace.

Jeremy.
(This used to be commit 4f703b84cd)
This commit is contained in:
Jeremy Allison 2002-01-09 18:26:39 +00:00
parent 6c7050ea95
commit d3e9213af7
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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