comparison dbutil.h @ 1276:9169e4e7cbee

fix empty C prototypes
author Francois Perrad <francois.perrad@gadz.org>
date Fri, 01 Jan 2016 16:30:31 +0100
parents 6ecc133fb2ee
children 3017bc7d6238
comparison
equal deleted inserted replaced
1275:d49bda490798 1276:9169e4e7cbee
57 #ifdef DEBUG_TRACE 57 #ifdef DEBUG_TRACE
58 void dropbear_trace(const char* format, ...) ATTRIB_PRINTF(1,2); 58 void dropbear_trace(const char* format, ...) ATTRIB_PRINTF(1,2);
59 void dropbear_trace2(const char* format, ...) ATTRIB_PRINTF(1,2); 59 void dropbear_trace2(const char* format, ...) ATTRIB_PRINTF(1,2);
60 void printhex(const char * label, const unsigned char * buf, int len); 60 void printhex(const char * label, const unsigned char * buf, int len);
61 void printmpint(const char *label, mp_int *mp); 61 void printmpint(const char *label, mp_int *mp);
62 void debug_start_net(); 62 void debug_start_net(void);
63 extern int debug_trace; 63 extern int debug_trace;
64 #endif 64 #endif
65 65
66 char * stripcontrol(const char * text); 66 char * stripcontrol(const char * text);
67 67
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(void);
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
87 /* Used to force mp_ints to be initialised */ 87 /* Used to force mp_ints to be initialised */
88 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} 88 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL}
89 89
93 /* Returns 0 if a and b have the same contents */ 93 /* Returns 0 if a and b have the same contents */
94 int constant_time_memcmp(const void* a, const void *b, size_t n); 94 int constant_time_memcmp(const void* a, const void *b, size_t n);
95 95
96 /* Returns a time in seconds that doesn't go backwards - does not correspond to 96 /* Returns a time in seconds that doesn't go backwards - does not correspond to
97 a real-world clock */ 97 a real-world clock */
98 time_t monotonic_now(); 98 time_t monotonic_now(void);
99 99
100 char * expand_homedir_path(const char *inpath); 100 char * expand_homedir_path(const char *inpath);
101 101
102 #endif /* DROPBEAR_DBUTIL_H_ */ 102 #endif /* DROPBEAR_DBUTIL_H_ */