From b306d4b4ac3374c713ffd4f277810a4dc34712fd Mon Sep 17 00:00:00 2001 From: John Polstra Date: Fri, 21 May 1999 20:52:42 +0000 Subject: [PATCH] Fix hostname lookup problems on 64-bit machines. --- usr.sbin/xntpd/include/ntp_stdlib.h | 6 +++--- usr.sbin/xntpd/lib/netof.c | 6 +++--- usr.sbin/xntpd/lib/numtoa.c | 4 ++-- usr.sbin/xntpd/lib/numtohost.c | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/usr.sbin/xntpd/include/ntp_stdlib.h b/usr.sbin/xntpd/include/ntp_stdlib.h index 646ce602e92b..19cdad8cc742 100644 --- a/usr.sbin/xntpd/include/ntp_stdlib.h +++ b/usr.sbin/xntpd/include/ntp_stdlib.h @@ -79,9 +79,9 @@ extern char * inttoa P((long)); extern char * mfptoa P((u_long, u_long, int)); extern char * mfptoms P((u_long, u_long, int)); extern char * modetoa P((int)); -extern u_long netof P((u_long)); -extern char * numtoa P((u_long)); -extern char * numtohost P((u_long)); +extern u_int32_t netof P((u_int32_t)); +extern char * numtoa P((u_int32_t)); +extern char * numtohost P((u_int32_t)); extern int octtoint P((const char *, u_long *)); extern u_long ranp2 P((int)); extern char * refnumtoa P((u_long)); diff --git a/usr.sbin/xntpd/lib/netof.c b/usr.sbin/xntpd/lib/netof.c index 1823fb20bf31..b8876c72203c 100644 --- a/usr.sbin/xntpd/lib/netof.c +++ b/usr.sbin/xntpd/lib/netof.c @@ -7,11 +7,11 @@ #include "ntp_fp.h" #include "ntp_stdlib.h" -u_long +u_int32_t netof(num) - u_long num; + u_int32_t num; { - register u_long netnum; + register u_int32_t netnum; netnum = num; if(IN_CLASSC(netnum)) diff --git a/usr.sbin/xntpd/lib/numtoa.c b/usr.sbin/xntpd/lib/numtoa.c index ef291c8d6bcd..957e3c1060e4 100644 --- a/usr.sbin/xntpd/lib/numtoa.c +++ b/usr.sbin/xntpd/lib/numtoa.c @@ -9,9 +9,9 @@ char * numtoa(num) - u_long num; + u_int32_t num; { - register u_long netnum; + register u_int32_t netnum; register char *buf; netnum = ntohl(num); diff --git a/usr.sbin/xntpd/lib/numtohost.c b/usr.sbin/xntpd/lib/numtohost.c index 9d835849ed51..0d0ad6e28cdb 100644 --- a/usr.sbin/xntpd/lib/numtohost.c +++ b/usr.sbin/xntpd/lib/numtohost.c @@ -13,7 +13,7 @@ char * numtohost(netnum) - u_long netnum; + u_int32_t netnum; { char *bp; struct hostent *hp;