Fix ldbl-96 scalblnl for subnormal arguments (bug 17834).
[platform/upstream/glibc.git] / inet / inet_netof.c
index ab06a54..9b0aed9 100644 (file)
@@ -39,11 +39,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_int32_t
+in_addr_t
 inet_netof(in)
        struct in_addr in;
 {
-       register u_int32_t i = ntohl(in.s_addr);
+       u_int32_t i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
                return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);
@@ -52,3 +52,4 @@ inet_netof(in)
        else
                return (((i)&IN_CLASSC_NET) >> IN_CLASSC_NSHIFT);
 }
+libc_hidden_def (inet_netof)