comparison dbutil.h @ 1580:7f2be495dff6 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 15:07:09 +0800
parents 5916af64acd4
children 60fceff95858
comparison
equal deleted inserted replaced
1545:0b991dec7ab9 1580:7f2be495dff6
28 28
29 #include "includes.h" 29 #include "includes.h"
30 #include "buffer.h" 30 #include "buffer.h"
31 #include "queue.h" 31 #include "queue.h"
32 #include "dbhelpers.h" 32 #include "dbhelpers.h"
33 #include "dbmalloc.h"
33 34
34 #ifndef DISABLE_SYSLOG 35 #ifndef DISABLE_SYSLOG
35 void startsyslog(const char *ident); 36 void startsyslog(const char *ident);
36 #endif 37 #endif
37 38
64 #endif 65 #endif
65 int buf_readfile(buffer* buf, const char* filename); 66 int buf_readfile(buffer* buf, const char* filename);
66 int buf_getline(buffer * line, FILE * authfile); 67 int buf_getline(buffer * line, FILE * authfile);
67 68
68 void m_close(int fd); 69 void m_close(int fd);
69 void * m_malloc(size_t size);
70 void * m_strdup(const char * str);
71 void * m_realloc(void* ptr, size_t size);
72 #define m_free(X) do {free(X); (X) = NULL;} while (0)
73 void setnonblocking(int fd); 70 void setnonblocking(int fd);
74 void disallow_core(void); 71 void disallow_core(void);
75 int m_str_to_uint(const char* str, unsigned int *val); 72 int m_str_to_uint(const char* str, unsigned int *val);
76 73
77 /* Used to force mp_ints to be initialised */ 74 /* Used to force mp_ints to be initialised */