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/arpa | |
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 'resolv/arpa')
-rw-r--r-- | resolv/arpa/nameser.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/resolv/arpa/nameser.h b/resolv/arpa/nameser.h index 6a2c837..fb8513b 100644 --- a/resolv/arpa/nameser.h +++ b/resolv/arpa/nameser.h @@ -433,7 +433,7 @@ typedef enum __ns_cert_types { * Inline versions of get/put short/long. Pointer is advanced. */ #define NS_GET16(s, cp) do { \ - register const u_char *t_cp = (const u_char *)(cp); \ + const u_char *t_cp = (const u_char *)(cp); \ (s) = ((u_int16_t)t_cp[0] << 8) \ | ((u_int16_t)t_cp[1]) \ ; \ @@ -441,7 +441,7 @@ typedef enum __ns_cert_types { } while (0) #define NS_GET32(l, cp) do { \ - register const u_char *t_cp = (const u_char *)(cp); \ + const u_char *t_cp = (const u_char *)(cp); \ (l) = ((u_int32_t)t_cp[0] << 24) \ | ((u_int32_t)t_cp[1] << 16) \ | ((u_int32_t)t_cp[2] << 8) \ @@ -451,16 +451,16 @@ typedef enum __ns_cert_types { } while (0) #define NS_PUT16(s, cp) do { \ - register u_int16_t t_s = (u_int16_t)(s); \ - register u_char *t_cp = (u_char *)(cp); \ + u_int16_t t_s = (u_int16_t)(s); \ + u_char *t_cp = (u_char *)(cp); \ *t_cp++ = t_s >> 8; \ *t_cp = t_s; \ (cp) += NS_INT16SZ; \ } while (0) #define NS_PUT32(l, cp) do { \ - register u_int32_t t_l = (u_int32_t)(l); \ - register u_char *t_cp = (u_char *)(cp); \ + u_int32_t t_l = (u_int32_t)(l); \ + u_char *t_cp = (u_char *)(cp); \ *t_cp++ = t_l >> 24; \ *t_cp++ = t_l >> 16; \ *t_cp++ = t_l >> 8; \ |