diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
commit | 2e09a79ada1f6d92809a037d41895e3d9302ad59 (patch) | |
tree | 999c9d18279a7de289937116273ae4016356aa3a /inet | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.zip glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.bz2 |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'inet')
-rw-r--r-- | inet/inet_lnaof.c | 2 | ||||
-rw-r--r-- | inet/inet_net.c | 6 | ||||
-rw-r--r-- | inet/inet_netof.c | 2 | ||||
-rw-r--r-- | inet/rcmd.c | 4 |
4 files changed, 7 insertions, 7 deletions
diff --git a/inet/inet_lnaof.c b/inet/inet_lnaof.c index 0e115a4..c993c8b 100644 --- a/inet/inet_lnaof.c +++ b/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/inet/inet_net.c b/inet/inet_net.c index d58f1ae..68e232f 100644 --- a/inet/inet_net.c +++ b/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/inet/inet_netof.c b/inet/inet_netof.c index e49177a..9b0aed9 100644 --- a/inet/inet_netof.c +++ b/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/inet/rcmd.c b/inet/rcmd.c index 5e18b12..acacaa0 100644 --- a/inet/rcmd.c +++ b/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; |