mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-18 02:39:44 +00:00
Disabled extra verbose malloc debug stuff.
This commit is contained in:
parent
2b42f77ccf
commit
3e0e1bf7e3
4
serval.h
4
serval.h
@ -1053,6 +1053,7 @@ extern int mdp_client_socket;
|
||||
int ob_bcopy(overlay_buffer *b,int from, int to, int len);
|
||||
int ob_setbyte(overlay_buffer *b,int ofs,unsigned char value);
|
||||
|
||||
#ifdef MALLOC_PARANOIA
|
||||
#define malloc(X) _serval_debug_malloc(X,__FILE__,__FUNCTION__,__LINE__)
|
||||
#define calloc(X,Y) _serval_debug_calloc(X,Y,__FILE__,__FUNCTION__,__LINE__)
|
||||
#define free(X) _serval_debug_free(X,__FILE__,__FUNCTION__,__LINE__)
|
||||
@ -1060,5 +1061,4 @@ int ob_setbyte(overlay_buffer *b,int ofs,unsigned char value);
|
||||
void *_serval_debug_malloc(unsigned int bytes,char *file,const char *func,int line);
|
||||
void *_serval_debug_calloc(unsigned int bytes,unsigned int count,char *file,const char *func,int line);
|
||||
void _serval_debug_free(void *p,char *file,const char *func,int line);
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user