mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-10 08:22:27 +01:00
Fix hostname lookup problems on 64-bit machines.
This commit is contained in:
parent
52313da9a5
commit
b306d4b4ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47372
@ -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));
|
||||
|
@ -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))
|
||||
|
@ -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);
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
char *
|
||||
numtohost(netnum)
|
||||
u_long netnum;
|
||||
u_int32_t netnum;
|
||||
{
|
||||
char *bp;
|
||||
struct hostent *hp;
|
||||
|
Loading…
Reference in New Issue
Block a user