summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/isc/parseint.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-01-09 13:47:12 +0000
committerflorian <florian@openbsd.org>2020-01-09 13:47:12 +0000
commitad3b53661d6e8c6ff17607778560ff02c209fc9d (patch)
treead116f7232545d5c82adc4e17de67db281f9e7d6 /usr.sbin/bind/lib/isc/parseint.c
parentunifdef network defines: (diff)
downloadwireguard-openbsd-ad3b53661d6e8c6ff17607778560ff02c209fc9d.tar.xz
wireguard-openbsd-ad3b53661d6e8c6ff17607778560ff02c209fc9d.zip
unifdef printf and string functions:
#undef ISC_PLATFORM_NEEDVSNPRINTF #undef ISC_PLATFORM_NEEDSPRINTF #undef ISC_PLATFORM_NEEDPRINTF #undef ISC_PLATFORM_NEEDFPRINTF #define ISC_PLATFORM_QUADFORMAT "ll" #undef ISC_PLATFORM_NEEDSTRSEP #undef ISC_PLATFORM_NEEDSTRLCPY #undef ISC_PLATFORM_NEEDSTRLCAT #undef ISC_PLATFORM_NEEDSTRTOUL #undef ISC_PLATFORM_NEEDMEMMOVE #undef ISC_PLATFORM_NEEDSTRCASESTR
Diffstat (limited to 'usr.sbin/bind/lib/isc/parseint.c')
-rw-r--r--usr.sbin/bind/lib/isc/parseint.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/bind/lib/isc/parseint.c b/usr.sbin/bind/lib/isc/parseint.c
index 7c57dd4f259..620cc71b09a 100644
--- a/usr.sbin/bind/lib/isc/parseint.c
+++ b/usr.sbin/bind/lib/isc/parseint.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: parseint.c,v 1.3 2019/12/17 01:46:34 sthen Exp $ */
+/* $Id: parseint.c,v 1.4 2020/01/09 13:47:13 florian Exp $ */
/*! \file */
@@ -23,10 +23,11 @@
#include <ctype.h>
#include <errno.h>
#include <limits.h>
+#include <stdlib.h>
#include <isc/parseint.h>
#include <isc/result.h>
-#include <isc/stdlib.h>
+
isc_result_t
isc_parse_uint32(isc_uint32_t *uip, const char *string, int base) {