authd: Fix windows build
Replace stray NO with false
This commit is contained in:
parent
2e45f5d808
commit
cf623e0802
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue