summaryrefslogtreecommitdiff
path: root/src/clients/s6-dnsq.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 15:35:29 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-01-12 15:35:29 +0000
commit3f9536c5cc9ed6659ad2514859bd1716cbf7b26b (patch)
tree3f01ca46f59b9458c93ace3f07127d1e2bb460e8 /src/clients/s6-dnsq.c
parent3a289d1ca8dd2bce4a8bb6549709ea62262ec786 (diff)
downloads6-dns-3f9536c5cc9ed6659ad2514859bd1716cbf7b26b.tar.xz
Types fix, first pass.
Some places marked XXX for the skalibs API change.
Diffstat (limited to 'src/clients/s6-dnsq.c')
-rw-r--r--src/clients/s6-dnsq.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/clients/s6-dnsq.c b/src/clients/s6-dnsq.c
index 76ca4ea..538c925 100644
--- a/src/clients/s6-dnsq.c
+++ b/src/clients/s6-dnsq.c
@@ -1,8 +1,9 @@
/* ISC license. */
+#include <sys/types.h>
+#include <stdint.h>
#include <errno.h>
#include <skalibs/uint16.h>
-#include <skalibs/uint32.h>
#include <skalibs/uint.h>
#include <skalibs/bytestr.h>
#include <skalibs/bitarray.h>
@@ -23,7 +24,7 @@ int main (int argc, char const *const *argv)
{
tain_t deadline ;
unsigned int debuglevel = 0 ;
- uint16 qtype ;
+ uint16_t qtype ;
genwrite_t *where = &genwrite_stderr ;
PROG = "s6-dnsq" ;
{
@@ -60,7 +61,7 @@ int main (int argc, char const *const *argv)
for (; (i < (unsigned int)(argc - 2)) && (j < S6DNS_MAX_SERVERS) ; i++)
{
ip46_t z[S6DNS_MAX_SERVERS] ;
- unsigned int n ;
+ unsigned int n ; /* XXX: depends on ip46_scanlist API */
register unsigned int k = 0 ;
if (!*argv[2+i]) continue ;
if (!ip46_scanlist(z, S6DNS_MAX_SERVERS - j, argv[2 + i], &n))