@@ -7,8 +7,8 @@ static int local_ns_skiprr(const unsigned char *ptr, const unsigned char *eom, n
7
7
static int local_ns_dn_skipname (const unsigned char * ptr , const unsigned char * eom );
8
8
static int local_ns_name_skip (const unsigned char * * ptrptr , const unsigned char * eom );
9
9
static int local_ns_labellen (const unsigned char * lp );
10
- #define LOCAL_NS_TYPE_ELT 0x40 /*%< EDNS0 extended label type */
11
- #define LOCAL_DNS_LABELTYPE_BITSTRING 0x41
10
+ #define LOCAL_NS_TYPE_ELT 0x40 /*%< EDNS0 extended label type */
11
+ #define LOCAL_DNS_LABELTYPE_BITSTRING 0x41
12
12
#ifdef __UCLIBC__
13
13
#define LOCAL_NS_MSG_PTR _ptr
14
14
#else
@@ -17,7 +17,7 @@ static int local_ns_labellen(const unsigned char *lp);
17
17
18
18
int local_ns_initparse (const unsigned char * msg , int msglen , ns_msg * handle )
19
19
{
20
- const u_char * eom = msg + msglen ;
20
+ const unsigned char * eom = msg + msglen ;
21
21
int i ;
22
22
23
23
handle -> _msg = msg ;
@@ -62,7 +62,7 @@ int local_ns_initparse(const unsigned char *msg, int msglen, ns_msg *handle)
62
62
63
63
local_ns_setsection (handle , ns_s_max );
64
64
return 0 ;
65
- }
65
+ }
66
66
int local_ns_parserr (ns_msg * handle , ns_sect section , int rrnum , ns_rr * rr )
67
67
{
68
68
int b ;
@@ -142,10 +142,10 @@ static void local_ns_setsection(ns_msg *msg, ns_sect sect)
142
142
msg -> _rrnum = 0 ;
143
143
msg -> LOCAL_NS_MSG_PTR = msg -> _sections [(int )sect ];
144
144
}
145
- }
145
+ }
146
146
static int local_ns_skiprr (const unsigned char * ptr , const unsigned char * eom , ns_sect section , int count )
147
147
{
148
- const u_char * optr = ptr ;
148
+ const unsigned char * optr = ptr ;
149
149
150
150
for (; count > 0 ; count -- ) {
151
151
int b , rdlength ;
@@ -154,7 +154,7 @@ static int local_ns_skiprr(const unsigned char *ptr, const unsigned char *eom, n
154
154
if (b < 0 ) {
155
155
errno = EMSGSIZE ;
156
156
return -1 ;
157
- }
157
+ }
158
158
ptr += b /*Name*/ + NS_INT16SZ /*Type*/ + NS_INT16SZ /*Class*/ ;
159
159
if (section != ns_s_qd ) {
160
160
if (ptr + NS_INT32SZ + NS_INT16SZ > eom ) {
@@ -174,7 +174,7 @@ static int local_ns_skiprr(const unsigned char *ptr, const unsigned char *eom, n
174
174
}
175
175
176
176
return ptr - optr ;
177
- }
177
+ }
178
178
static int local_ns_dn_skipname (const unsigned char * ptr , const unsigned char * eom )
179
179
{
180
180
const unsigned char * saveptr = ptr ;
@@ -183,11 +183,11 @@ static int local_ns_dn_skipname(const unsigned char *ptr, const unsigned char *e
183
183
return -1 ;
184
184
185
185
return ptr - saveptr ;
186
- }
186
+ }
187
187
static int local_ns_name_skip (const unsigned char * * ptrptr , const unsigned char * eom )
188
188
{
189
189
const unsigned char * cp ;
190
- u_int n ;
190
+ unsigned int n ;
191
191
int l ;
192
192
193
193
cp = * ptrptr ;
@@ -223,7 +223,7 @@ static int local_ns_name_skip(const unsigned char **ptrptr, const unsigned char
223
223
* ptrptr = cp ;
224
224
225
225
return 0 ;
226
- }
226
+ }
227
227
static int local_ns_labellen (const unsigned char * lp )
228
228
{
229
229
int bitlen ;
@@ -245,4 +245,4 @@ static int local_ns_labellen(const unsigned char *lp)
245
245
}
246
246
247
247
return l ;
248
- }
248
+ }
0 commit comments