diff options
Diffstat (limited to 'libc/inet')
-rw-r--r-- | libc/inet/inet_lnaof.c | 2 | ||||
-rw-r--r-- | libc/inet/inet_net.c | 6 | ||||
-rw-r--r-- | libc/inet/inet_netof.c | 2 | ||||
-rw-r--r-- | libc/inet/rcmd.c | 4 | ||||
-rw-r--r-- | libc/inet/ruserpass.c | 4 | ||||
-rw-r--r-- | libc/inet/tst-getni1.c | 2 | ||||
-rw-r--r-- | libc/inet/tst-getni2.c | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/libc/inet/inet_lnaof.c b/libc/inet/inet_lnaof.c index 0e115a442..c993c8b84 100644 --- a/libc/inet/inet_lnaof.c +++ b/libc/inet/inet_lnaof.c @@ -44,7 +44,7 @@ in_addr_t inet_lnaof(in) struct in_addr in; { - register u_int32_t i = ntohl(in.s_addr); + u_int32_t i = ntohl(in.s_addr); if (IN_CLASSA(i)) return ((i)&IN_CLASSA_HOST); diff --git a/libc/inet/inet_net.c b/libc/inet/inet_net.c index d58f1ae8e..68e232f3d 100644 --- a/libc/inet/inet_net.c +++ b/libc/inet/inet_net.c @@ -43,10 +43,10 @@ static char sccsid[] = "@(#)inet_network.c 8.1 (Berkeley) 6/4/93"; */ u_int32_t inet_network(cp) - register const char *cp; + const char *cp; { - register u_int32_t val, base, n, i; - register char c; + u_int32_t val, base, n, i; + char c; u_int32_t parts[4], *pp = parts; int digit; diff --git a/libc/inet/inet_netof.c b/libc/inet/inet_netof.c index e49177a0f..9b0aed992 100644 --- a/libc/inet/inet_netof.c +++ b/libc/inet/inet_netof.c @@ -43,7 +43,7 @@ in_addr_t inet_netof(in) struct in_addr in; { - register u_int32_t i = ntohl(in.s_addr); + u_int32_t i = ntohl(in.s_addr); if (IN_CLASSA(i)) return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT); diff --git a/libc/inet/rcmd.c b/libc/inet/rcmd.c index 5e18b1269..acacaa0d8 100644 --- a/libc/inet/rcmd.c +++ b/libc/inet/rcmd.c @@ -769,8 +769,8 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost) size_t ralen; const char *luser, *ruser, *rhost; { - register const char *user; - register char *p; + const char *user; + char *p; int hcheck, ucheck; char *buf = NULL; size_t bufsize = 0; diff --git a/libc/inet/ruserpass.c b/libc/inet/ruserpass.c index 71a734dfd..2669a885b 100644 --- a/libc/inet/ruserpass.c +++ b/libc/inet/ruserpass.c @@ -108,7 +108,7 @@ ruserpass(host, aname, apass) which is no improvement. This really should call getpwuid(getuid()). */ /*hdir = ".";*/ - return -1; + return -1; } buf = alloca (strlen (hdir) + 8); @@ -289,7 +289,7 @@ bad: libc_hidden_def (ruserpass) static int -token() +token (void) { char *cp; int c; diff --git a/libc/inet/tst-getni1.c b/libc/inet/tst-getni1.c index 0e8a792f4..3960f7112 100644 --- a/libc/inet/tst-getni1.c +++ b/libc/inet/tst-getni1.c @@ -19,7 +19,7 @@ do_test (void) puts ("failed without NI_NAMEREQD"); retval = 1; } - + r = getnameinfo((struct sockaddr *) &s, sizeof (s), NULL, 0, NULL, 0, NI_NUMERICHOST | NI_NUMERICSERV | NI_NAMEREQD); printf("r = %d\n", r); diff --git a/libc/inet/tst-getni2.c b/libc/inet/tst-getni2.c index b949d888d..66e78062b 100644 --- a/libc/inet/tst-getni2.c +++ b/libc/inet/tst-getni2.c @@ -23,7 +23,7 @@ do_test (void) puts ("failed without NI_NAMEREQD"); retval = 1; } - + buf[0] = '\0'; r = getnameinfo((struct sockaddr *) &s, sizeof (s), buf, sizeof (buf), NULL, 0, NI_NUMERICSERV | NI_NAMEREQD); |