--- src/include/arpa/nameser.h 2003/11/14 01:01:47 1.3 +++ src/include/arpa/nameser.h 2005/04/27 16:38:40 1.4 @@ -360,7 +360,7 @@ typedef enum __ns_class { * Inline versions of get/put short/long. Pointer is advanced. */ #define NS_GET16(s, cp) { \ - register u_char *t_cp = (u_char *)(cp); \ + register const u_char *t_cp = (const u_char *)(cp); \ (s) = ((u_int16_t)t_cp[0] << 8) \ | ((u_int16_t)t_cp[1]) \ ; \ @@ -368,7 +368,7 @@ typedef enum __ns_class { } #define NS_GET32(l, cp) { \ - register u_char *t_cp = (u_char *)(cp); \ + register 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) \