aboutsummaryrefslogtreecommitdiff
path: root/inet/inet_netof.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet/inet_netof.c')
-rw-r--r--inet/inet_netof.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/inet/inet_netof.c b/inet/inet_netof.c
index d6de694243..40cbc0ea97 100644
--- a/inet/inet_netof.c
+++ b/inet/inet_netof.c
@@ -43,11 +43,11 @@ static char sccsid[] = "@(#)inet_netof.c 8.1 (Berkeley) 6/4/93";
* Return the network number from an internet
* address; handles class a/b/c network #'s.
*/
-u_long
+u_int32_t
inet_netof(in)
struct in_addr in;
{
- register u_long i = ntohl(in.s_addr);
+ register u_int32_t i = ntohl(in.s_addr);
if (IN_CLASSA(i))
return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);