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 /resolv/gethnamaddr.c | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.bz2 glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.zip |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'resolv/gethnamaddr.c')
-rw-r--r-- | resolv/gethnamaddr.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/resolv/gethnamaddr.c b/resolv/gethnamaddr.c index a8ccf1fd3a..9568c06475 100644 --- a/resolv/gethnamaddr.c +++ b/resolv/gethnamaddr.c @@ -178,9 +178,9 @@ Dprintf(msg, num) static struct hostent * getanswer (const querybuf *answer, int anslen, const char *qname, int qtype) { - register const HEADER *hp; - register const u_char *cp; - register int n; + const HEADER *hp; + const u_char *cp; + int n; const u_char *eom, *erdata; char *bp, **ap, **hap; int type, class, buflen, ancount, qdcount; @@ -409,7 +409,7 @@ getanswer (const querybuf *answer, int anslen, const char *qname, int qtype) continue; } if (!haveanswer) { - register int nn; + int nn; host.h_name = bp; nn = strlen(bp) + 1; /* for the \0 */ @@ -514,7 +514,7 @@ gethostbyname2(name, af) u_char *ptr; } buf; querybuf *origbuf; - register const char *cp; + const char *cp; char *bp; int n, size, type, len; struct hostent *ret; @@ -653,10 +653,10 @@ gethostbyaddr(addr, len, af) u_char *ptr; } buf; querybuf *orig_buf; - register struct hostent *hp; + struct hostent *hp; char qbuf[MAXDNAME+1], *qp = NULL; #ifdef SUNSECURITY - register struct hostent *rhp; + struct hostent *rhp; char **haddr; u_long old_options; char hname2[MAXDNAME+1]; @@ -807,7 +807,7 @@ struct hostent * _gethtent() { char *p; - register char *cp, **q; + char *cp, **q; int af, len; if (!hostf && !(hostf = fopen(_PATH_HOSTS, "rce" ))) { @@ -888,8 +888,8 @@ _gethtbyname2(name, af) const char *name; int af; { - register struct hostent *p; - register char **cp; + struct hostent *p; + char **cp; _sethtent(0); while ((p = _gethtent())) { @@ -913,7 +913,7 @@ _gethtbyaddr(addr, len, af) size_t len; int af; { - register struct hostent *p; + struct hostent *p; _sethtent(0); while ((p = _gethtent())) |