diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 09:20:01 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-10 09:20:01 +0000 |
commit | 7a0f84ec90d6a7167e0be9de80b891596fa0c262 (patch) | |
tree | c0cb23b0a50fa2734286c936fbbb0dae24c2ec1f /src/skadns/skadnsd.c | |
parent | 416ef5e2bf59bb2e45066a1d5d91ac677c0f48e5 (diff) | |
download | s6-dns-7a0f84ec90d6a7167e0be9de80b891596fa0c262.tar.xz |
Compiling bugfixes, small doc update
Diffstat (limited to 'src/skadns/skadnsd.c')
-rw-r--r-- | src/skadns/skadnsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skadns/skadnsd.c b/src/skadns/skadnsd.c index 7b5419f..473ed1a 100644 --- a/src/skadns/skadnsd.c +++ b/src/skadns/skadnsd.c @@ -37,7 +37,7 @@ static void remove (unsigned int i) static void fail (unsigned int i) { char pack[3] ; - unixmessage_t m = { .s = pack, len = 3, .fds = 0, .nfds = 0 } ; + unixmessage_t m = { .s = pack, .len = 3, .fds = 0, .nfds = 0 } ; uint16_pack_big(pack, a[i].id) ; pack[2] = a[i].dt.status ; s6dns_engine_recycle(&a[i].dt) ; @@ -178,7 +178,7 @@ int main (void) unixmessage_v_t mv = { .v = v, .vlen = 2, .fds = 0, .nfds = 0 } ; uint16_pack_big(pack, a[i].id) ; pack[2] = 0 ; - if (!unixmessage_putv(unixmessage_sender_x, v, 2)) + if (!unixmessage_putv(unixmessage_sender_x, &mv)) strerr_diefu1sys(111, "unixmessage_put") ; s6dns_engine_recycle(&a[i].dt) ; remove(i--) ; |