Mercurial > dropbear
comparison dbutil.h @ 492:b956d6151600
Replace calls to strtoul() with a helper m_str_to_uint()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 22 Sep 2008 14:13:44 +0000 |
parents | 7ad49f34a122 |
children | d588e3ea557a 76097ec1a29a |
comparison
equal
deleted
inserted
replaced
491:9dbc0c443497 | 492:b956d6151600 |
---|---|
65 #define m_free(X) __m_free(X); (X) = NULL; | 65 #define m_free(X) __m_free(X); (X) = NULL; |
66 void __m_free(void* ptr); | 66 void __m_free(void* ptr); |
67 void m_burn(void* data, unsigned int len); | 67 void m_burn(void* data, unsigned int len); |
68 void setnonblocking(int fd); | 68 void setnonblocking(int fd); |
69 void disallow_core(); | 69 void disallow_core(); |
70 int m_str_to_uint(const char* str, unsigned int *val); | |
70 | 71 |
71 /* Used to force mp_ints to be initialised */ | 72 /* Used to force mp_ints to be initialised */ |
72 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} | 73 #define DEF_MP_INT(X) mp_int X = {0, 0, 0, NULL} |
73 | 74 |
74 /* Dropbear assertion */ | 75 /* Dropbear assertion */ |