Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include/arpa remove obsolete register declarations.



details:   https://anonhg.NetBSD.org/src/rev/9fc3d13fabbe
branches:  trunk
changeset: 573720:9fc3d13fabbe
user:      perry <perry%NetBSD.org@localhost>
date:      Sun Feb 06 04:41:40 2005 +0000

description:
remove obsolete register declarations.

diffstat:

 include/arpa/nameser.h |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 63e1b7e6673a -r 9fc3d13fabbe include/arpa/nameser.h
--- a/include/arpa/nameser.h    Sun Feb 06 04:40:51 2005 +0000
+++ b/include/arpa/nameser.h    Sun Feb 06 04:41:40 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nameser.h,v 1.17 2005/02/03 04:39:32 perry Exp $       */
+/*     $NetBSD: nameser.h,v 1.18 2005/02/06 04:41:40 perry Exp $       */
 
 /*
  * Copyright (c) 1983, 1989, 1993
@@ -436,7 +436,7 @@
  * 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]) \
            ; \
@@ -444,7 +444,7 @@
 } while (/*CONSTCOND*/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) \
@@ -454,16 +454,16 @@
 } while (/*CONSTCOND*/0)
 
 #define NS_PUT16(s, cp) do { \
-       register u_int32_t t_s = (u_int32_t)(s); \
-       register u_char *t_cp = (u_char *)(cp); \
+       u_int32_t t_s = (u_int32_t)(s); \
+       u_char *t_cp = (u_char *)(cp); \
        *t_cp++ = t_s >> 8; \
        *t_cp   = t_s; \
        (cp) += NS_INT16SZ; \
 } while (/*CONSTCOND*/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; \



Home | Main Index | Thread Index | Old Index