Make all bucket and overflow addresses unsigned
[unix-history] / usr / src / lib / libc / net / inet_netof.c
index bc9142b..055f18b 100644 (file)
@@ -1,20 +1,23 @@
 /*
  * Copyright (c) 1983 Regents of the University of California.
 /*
  * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
  */
 
-#ifndef lint
-static char sccsid[] = "@(#)inet_netof.c       5.1 (Berkeley) %G%";
-#endif not lint
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)inet_netof.c       5.7 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
 
 
-#include <sys/types.h>
+#include <sys/param.h>
 #include <netinet/in.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 
 /*
  * Return the network number from an internet
  * address; handles class a/b/c network #'s.
  */
 
 /*
  * Return the network number from an internet
  * address; handles class a/b/c network #'s.
  */
+u_long
 inet_netof(in)
        struct in_addr in;
 {
 inet_netof(in)
        struct in_addr in;
 {