21 lines
511 B
Diff
21 lines
511 B
Diff
--- net-tools-1.60/lib/inet.c
|
|
+++ net-tools-1.60/lib/inet.c
|
|
@@ -144,7 +144,7 @@
|
|
struct hostent *ent;
|
|
struct netent *np;
|
|
struct addr *pn;
|
|
- unsigned long ad, host_ad;
|
|
+ uint32_t ad, host_ad;
|
|
int host = 0;
|
|
|
|
/* Grmpf. -FvK */
|
|
@@ -155,7 +155,7 @@
|
|
errno = EAFNOSUPPORT;
|
|
return (-1);
|
|
}
|
|
- ad = (unsigned long) sin->sin_addr.s_addr;
|
|
+ ad = sin->sin_addr.s_addr;
|
|
#ifdef DEBUG
|
|
fprintf (stderr, "rresolve: %08lx, mask %08x, num %08x \n", ad, netmask, numeric);
|
|
#endif
|