comparison dbutil.h @ 1135:be862d101766

remove extraneous semicolon from m_free #define
author Matt Johnston <matt@ucc.asn.au>
date Mon, 03 Aug 2015 20:46:29 +0800
parents 36557295418e
children 6ecc133fb2ee
comparison
equal deleted inserted replaced
1134:36557295418e 1135:be862d101766
76 76
77 void m_close(int fd); 77 void m_close(int fd);
78 void * m_malloc(size_t size); 78 void * m_malloc(size_t size);
79 void * m_strdup(const char * str); 79 void * m_strdup(const char * str);
80 void * m_realloc(void* ptr, size_t size); 80 void * m_realloc(void* ptr, size_t size);
81 #define m_free(X) do {free(X); (X) = NULL;} while (0); 81 #define m_free(X) do {free(X); (X) = NULL;} while (0)
82 void m_burn(void* data, unsigned int len); 82 void m_burn(void* data, unsigned int len);
83 void setnonblocking(int fd); 83 void setnonblocking(int fd);
84 void disallow_core(); 84 void disallow_core();
85 int m_str_to_uint(const char* str, unsigned int *val); 85 int m_str_to_uint(const char* str, unsigned int *val);
86 86