summaryrefslogtreecommitdiff
path: root/lib/ZInit.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ZInit.c')
-rw-r--r--lib/ZInit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ZInit.c b/lib/ZInit.c
index e8f4a83..f6ec6de 100644
--- a/lib/ZInit.c
+++ b/lib/ZInit.c
@@ -301,11 +301,11 @@ static int txt_lookup(char *qname, char **result) {
if (left < 10)
return -1;
- type = ntohs(*(u_int16_t *)p);
+ type = ntohs(*(uint16_t *)p);
p += 2;
- class = ntohs(*(u_int16_t *)p);
+ class = ntohs(*(uint16_t *)p);
p += 6;
- ret = ntohs(*(u_int16_t *)p);
+ ret = ntohs(*(uint16_t *)p);
p += 2;
left -= 10;