summaryrefslogtreecommitdiff
path: root/radix.c
diff options
context:
space:
mode:
Diffstat (limited to 'radix.c')
-rw-r--r--radix.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/radix.c b/radix.c
index 26b1ebe52..e60435736 100644
--- a/radix.c
+++ b/radix.c
@@ -25,7 +25,7 @@
25#include "includes.h" 25#include "includes.h"
26#include "uuencode.h" 26#include "uuencode.h"
27 27
28RCSID("$OpenBSD: radix.c,v 1.16 2001/06/23 15:12:19 itojun Exp $"); 28RCSID("$OpenBSD: radix.c,v 1.17 2001/11/19 19:02:16 mpech Exp $");
29 29
30#ifdef AFS 30#ifdef AFS
31#include <krb.h> 31#include <krb.h>
@@ -39,7 +39,7 @@ typedef u_short my_u_short;
39/* Nasty macros from BIND-4.9.2 */ 39/* Nasty macros from BIND-4.9.2 */
40 40
41#define GETSHORT(s, cp) { \ 41#define GETSHORT(s, cp) { \
42 register my_u_char *t_cp = (my_u_char *)(cp); \ 42 my_u_char *t_cp = (my_u_char *)(cp); \
43 (s) = (((my_u_short)t_cp[0]) << 8) \ 43 (s) = (((my_u_short)t_cp[0]) << 8) \
44 | (((my_u_short)t_cp[1])) \ 44 | (((my_u_short)t_cp[1])) \
45 ; \ 45 ; \
@@ -47,7 +47,7 @@ typedef u_short my_u_short;
47} 47}
48 48
49#define GETLONG(l, cp) { \ 49#define GETLONG(l, cp) { \
50 register my_u_char *t_cp = (my_u_char *)(cp); \ 50 my_u_char *t_cp = (my_u_char *)(cp); \
51 (l) = (((my_u_int32_t)t_cp[0]) << 24) \ 51 (l) = (((my_u_int32_t)t_cp[0]) << 24) \
52 | (((my_u_int32_t)t_cp[1]) << 16) \ 52 | (((my_u_int32_t)t_cp[1]) << 16) \
53 | (((my_u_int32_t)t_cp[2]) << 8) \ 53 | (((my_u_int32_t)t_cp[2]) << 8) \
@@ -57,16 +57,16 @@ typedef u_short my_u_short;
57} 57}
58 58
59#define PUTSHORT(s, cp) { \ 59#define PUTSHORT(s, cp) { \
60 register my_u_short t_s = (my_u_short)(s); \ 60 my_u_short t_s = (my_u_short)(s); \
61 register my_u_char *t_cp = (my_u_char *)(cp); \ 61 my_u_char *t_cp = (my_u_char *)(cp); \
62 *t_cp++ = t_s >> 8; \ 62 *t_cp++ = t_s >> 8; \
63 *t_cp = t_s; \ 63 *t_cp = t_s; \
64 (cp) += 2; \ 64 (cp) += 2; \
65} 65}
66 66
67#define PUTLONG(l, cp) { \ 67#define PUTLONG(l, cp) { \
68 register my_u_int32_t t_l = (my_u_int32_t)(l); \ 68 my_u_int32_t t_l = (my_u_int32_t)(l); \
69 register my_u_char *t_cp = (my_u_char *)(cp); \ 69 my_u_char *t_cp = (my_u_char *)(cp); \
70 *t_cp++ = t_l >> 24; \ 70 *t_cp++ = t_l >> 24; \
71 *t_cp++ = t_l >> 16; \ 71 *t_cp++ = t_l >> 16; \
72 *t_cp++ = t_l >> 8; \ 72 *t_cp++ = t_l >> 8; \
@@ -75,9 +75,9 @@ typedef u_short my_u_short;
75} 75}
76 76
77#define GETSTRING(s, p, p_l) { \ 77#define GETSTRING(s, p, p_l) { \
78 register char *p_targ = (p) + p_l; \ 78 char *p_targ = (p) + p_l; \
79 register char *s_c = (s); \ 79 char *s_c = (s); \
80 register char *p_c = (p); \ 80 char *p_c = (p); \
81 while (*p_c && (p_c < p_targ)) { \ 81 while (*p_c && (p_c < p_targ)) { \
82 *s_c++ = *p_c++; \ 82 *s_c++ = *p_c++; \
83 } \ 83 } \