diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-03-03 18:03:57 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-03-03 18:07:33 +0100 |
commit | b00204a46153a406a6c63792b1939bd3ad74ba71 (patch) | |
tree | 3d75260e43314488f568da77f34c12e47b2254a2 /lib/util | |
parent | b6f479d4413511fbd742e7c8464cec67501f539c (diff) | |
download | samba-b00204a46153a406a6c63792b1939bd3ad74ba71.tar.gz samba-b00204a46153a406a6c63792b1939bd3ad74ba71.tar.bz2 samba-b00204a46153a406a6c63792b1939bd3ad74ba71.zip |
lib/util: remove samba specific talloc_get_type_abort()
metze
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/util.c | 15 | ||||
-rw-r--r-- | lib/util/util.h | 7 |
2 files changed, 0 insertions, 22 deletions
diff --git a/lib/util/util.c b/lib/util/util.c index 1f31f55e8b..0148bdb00d 100644 --- a/lib/util/util.c +++ b/lib/util/util.c @@ -541,21 +541,6 @@ void *malloc_array(size_t el_size, unsigned int count) return realloc_array(NULL, el_size, count, false); } -_PUBLIC_ void *talloc_check_name_abort(const void *ptr, const char *name) -{ - void *result; - - result = talloc_check_name(ptr, name); - if (result != NULL) - return result; - - DEBUG(0, ("Talloc type mismatch, expected %s, got %s\n", - name, talloc_get_name(ptr))); - smb_panic("talloc type mismatch"); - /* Keep the compiler happy */ - return NULL; -} - /** Trim the specified elements off the front and back of a string. **/ diff --git a/lib/util/util.h b/lib/util/util.h index 1f6e3b193b..defef127d9 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -767,13 +767,6 @@ bool pm_process( const char *fileName, bool (*pfunc)(const char *, const char *, void *), void *userdata); -/** - * Add-on to talloc_get_type - */ -_PUBLIC_ void *talloc_check_name_abort(const void *ptr, const char *name); -#define talloc_get_type_abort(ptr, type) \ - (type *)talloc_check_name_abort(ptr, #type) - bool unmap_file(void *start, size_t size); void print_asc(int level, const uint8_t *buf,int len); |