projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make all bucket and overflow addresses unsigned
[unix-history]
/
usr
/
src
/
lib
/
libc
/
net
/
inet_netof.c
diff --git
a/usr/src/lib/libc/net/inet_netof.c
b/usr/src/lib/libc/net/inet_netof.c
index
bc9142b
..
055f18b
100644
(file)
--- a/
usr/src/lib/libc/net/inet_netof.c
+++ b/
usr/src/lib/libc/net/inet_netof.c
@@
-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%
*/
*/
-#if
ndef 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;
{