summaryrefslogtreecommitdiff
path: root/libc/inet/addr.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-07 07:27:44 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-07 07:27:44 +0000
commit41fd2375c869daed4c5c90ee3ce902019ef70d57 (patch)
tree8c27de61518b0790928cf9bb944f5899306235b7 /libc/inet/addr.c
parent45f1824dc839fb6401cd6e061924a604438b2bed (diff)
Cleanup namespace leaks by prepending __ to global stuff to
indicate it is (alledgedly) private. -Erik
Diffstat (limited to 'libc/inet/addr.c')
-rw-r--r--libc/inet/addr.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libc/inet/addr.c b/libc/inet/addr.c
index 9abf7c44d..7751b6bc2 100644
--- a/libc/inet/addr.c
+++ b/libc/inet/addr.c
@@ -72,8 +72,7 @@ struct in_addr *inp;
#endif
#ifdef L_inet_addr
-unsigned long inet_addr(cp)
-const char *cp;
+unsigned long inet_addr(const char *cp)
{
struct in_addr a;
@@ -117,8 +116,7 @@ char *inet_ntoa(struct in_addr in)
* Formulate an Internet address from network + host. Used in
* building addresses stored in the ifnet structure.
*/
-struct in_addr inet_makeaddr(net, host)
-unsigned long net, host;
+struct in_addr inet_makeaddr(unsigned long net, unsigned long host)
{
unsigned long addr;
@@ -142,8 +140,7 @@ unsigned long net, host;
* internet address; handles class a/b/c network
* number formats.
*/
-unsigned long inet_lnaof(in)
-struct in_addr in;
+unsigned long inet_lnaof(struct in_addr in)
{
unsigned long i = ntohl(in.s_addr);
@@ -163,8 +160,7 @@ struct in_addr in;
* address; handles class a/b/c network #'s.
*/
u_int32_t
-inet_netof(in)
- struct in_addr in;
+inet_netof(struct in_addr in)
{
u_int32_t i = ntohl(in.s_addr);