summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-05-21 20:52:42 +0000
committerjdp <jdp@FreeBSD.org>1999-05-21 20:52:42 +0000
commit7911c071421d0560c1f2369cf260a69ed74d5e00 (patch)
treedd38fa969ddc58aa5f8b46847232009756bc63da /usr.sbin/xntpd
parentb0f2adc6777dd616ecd7353cd92fe6ea7a36547c (diff)
downloadFreeBSD-src-7911c071421d0560c1f2369cf260a69ed74d5e00.zip
FreeBSD-src-7911c071421d0560c1f2369cf260a69ed74d5e00.tar.gz
Fix hostname lookup problems on 64-bit machines.
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/include/ntp_stdlib.h6
-rw-r--r--usr.sbin/xntpd/lib/netof.c6
-rw-r--r--usr.sbin/xntpd/lib/numtoa.c4
-rw-r--r--usr.sbin/xntpd/lib/numtohost.c2
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 646ce60..19cdad8 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 1823fb2..b8876c7 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 ef291c8..957e3c1 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 9d83584..0d0ad6e 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;
OpenPOWER on IntegriCloud