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 commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent bcb443c5c4
commit 4f703b84cd
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