- windows compilation issues
bk: 5ecba126vqehAvmc7RBAUU2ULCOEFg
char buf[64]; /* working copy of input */
char *haddr=buf;
unsigned int port=NTP_PORT, scope=0;
- sa_family_t afam=AF_UNSPEC;
+ unsigned short afam=AF_UNSPEC;
/* copy input to working buffer with length check */
if (strlcpy(buf, num, sizeof(buf)) >= sizeof(buf))
#include <config.h>
#include <ntp_assert.h>
-#include "ntp_malloc.h"
#include <string.h>
+#include "ntp_malloc.h"
#include "l_stdlib.h"
#define STRDUP_EMPTY_UNIT
# undef STRDUP_EMPTY_UNIT
void *memchr(const void *s, int c, size_t n)
{
- const unsignec char *p = s;
+ const unsigned char *p = s;
while (n && *p != c) {
--n;
++p;
}
- return n ? p : NULL;
+ return n ? (char*)p : NULL;
}
#endif
# define HAVE_SETVBUF 1
# define HAVE_STRCHR 1 /* for libopts */
# define HAVE_STRDUP 1
+# define HAVE_STRNLEN 1
+# define HAVE_MEMCHR 1
# define HAVE_TIMEGM 1 /* actually _mkgmtime */
# define HAVE_STRUCT_TIMESPEC