summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/inet_lnaof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net/inet_lnaof.c')
-rw-r--r--src/lib/libc/net/inet_lnaof.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/inet_lnaof.c b/src/lib/libc/net/inet_lnaof.c
index 5a9bc4a6fe..6aed18699b 100644
--- a/src/lib/libc/net/inet_lnaof.c
+++ b/src/lib/libc/net/inet_lnaof.c
@@ -32,7 +32,7 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.2 1996/08/19 08:29:09 tholo Exp $"; 35static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.3 1997/04/05 21:13:11 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <sys/param.h> 38#include <sys/param.h>
@@ -44,11 +44,11 @@ static char rcsid[] = "$OpenBSD: inet_lnaof.c,v 1.2 1996/08/19 08:29:09 tholo Ex
44 * internet address; handles class a/b/c network 44 * internet address; handles class a/b/c network
45 * number formats. 45 * number formats.
46 */ 46 */
47u_long 47in_addr_t
48inet_lnaof(in) 48inet_lnaof(in)
49 struct in_addr in; 49 struct in_addr in;
50{ 50{
51 register u_long i = ntohl(in.s_addr); 51 register in_addr_t i = ntohl(in.s_addr);
52 52
53 if (IN_CLASSA(i)) 53 if (IN_CLASSA(i))
54 return ((i)&IN_CLASSA_HOST); 54 return ((i)&IN_CLASSA_HOST);