Fix hostname lookup problems on 64-bit machines.

This commit is contained in:
John Polstra 1999-05-21 20:52:42 +00:00
parent 52313da9a5
commit b306d4b4ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47372
4 changed files with 9 additions and 9 deletions

View file

@ -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));

View file

@ -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))

View file

@ -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);

View file

@ -13,7 +13,7 @@
char *
numtohost(netnum)
u_long netnum;
u_int32_t netnum;
{
char *bp;
struct hostent *hp;