diff options
Diffstat (limited to 'openbsd-compat/inet_aton.c')
-rw-r--r-- | openbsd-compat/inet_aton.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/openbsd-compat/inet_aton.c b/openbsd-compat/inet_aton.c index 355bf6bc9..130597e14 100644 --- a/openbsd-compat/inet_aton.c +++ b/openbsd-compat/inet_aton.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: inet_addr.c,v 1.7 2003/06/02 20:18:35 millert Exp $ */ | 1 | /* $OpenBSD: inet_addr.c,v 1.9 2005/08/06 20:30:03 espie Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1983, 1990, 1993 | 4 | * Copyright (c) 1983, 1990, 1993 |
@@ -55,15 +55,6 @@ | |||
55 | 55 | ||
56 | #if !defined(HAVE_INET_ATON) | 56 | #if !defined(HAVE_INET_ATON) |
57 | 57 | ||
58 | #if defined(LIBC_SCCS) && !defined(lint) | ||
59 | #if 0 | ||
60 | static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93"; | ||
61 | static char rcsid[] = "$From: inet_addr.c,v 8.5 1996/08/05 08:31:35 vixie Exp $"; | ||
62 | #else | ||
63 | static char rcsid[] = "$OpenBSD: inet_addr.c,v 1.7 2003/06/02 20:18:35 millert Exp $"; | ||
64 | #endif | ||
65 | #endif /* LIBC_SCCS and not lint */ | ||
66 | |||
67 | #include <sys/types.h> | 58 | #include <sys/types.h> |
68 | #include <sys/param.h> | 59 | #include <sys/param.h> |
69 | #include <netinet/in.h> | 60 | #include <netinet/in.h> |
@@ -76,8 +67,7 @@ static char rcsid[] = "$OpenBSD: inet_addr.c,v 1.7 2003/06/02 20:18:35 millert E | |||
76 | * The value returned is in network order. | 67 | * The value returned is in network order. |
77 | */ | 68 | */ |
78 | in_addr_t | 69 | in_addr_t |
79 | inet_addr(cp) | 70 | inet_addr(const char *cp) |
80 | register const char *cp; | ||
81 | { | 71 | { |
82 | struct in_addr val; | 72 | struct in_addr val; |
83 | 73 | ||
@@ -97,11 +87,11 @@ inet_addr(cp) | |||
97 | int | 87 | int |
98 | inet_aton(const char *cp, struct in_addr *addr) | 88 | inet_aton(const char *cp, struct in_addr *addr) |
99 | { | 89 | { |
100 | register u_int32_t val; | 90 | u_int32_t val; |
101 | register int base, n; | 91 | int base, n; |
102 | register char c; | 92 | char c; |
103 | unsigned int parts[4]; | 93 | u_int parts[4]; |
104 | register unsigned int *pp = parts; | 94 | u_int *pp = parts; |
105 | 95 | ||
106 | c = *cp; | 96 | c = *cp; |
107 | for (;;) { | 97 | for (;;) { |