0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

authd: Fix windows build

Replace stray NO with false
This commit is contained in:
Matt Ullman 2016-03-23 22:51:03 -04:00
parent 2e45f5d808
commit cf623e0802

View file

@ -30,6 +30,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <rb_lib.h> #include <rb_lib.h>
#include "getaddrinfo.h" #include "getaddrinfo.h"
#include "stdinc.h"
static const char in_addrany[] = { 0, 0, 0, 0 }; static const char in_addrany[] = { 0, 0, 0, 0 };
static const char in_loopback[] = { 127, 0, 0, 1 }; static const char in_loopback[] = { 127, 0, 0, 1 };
@ -187,7 +188,8 @@ str_isnumber(const char *p)
char *ep; char *ep;
if (*p == '\0') if (*p == '\0')
return NO; return false;
ep = NULL; ep = NULL;
errno = 0; errno = 0;
(void)strtoul(p, &ep, 10); (void)strtoul(p, &ep, 10);