summaryrefslogtreecommitdiff
path: root/src/clients/s6-dnsip.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-07-20 16:09:04 +0000
committerLaurent Bercot <ska@appnovation.com>2023-07-20 16:09:04 +0000
commit8c904eff93d7c038855f2c1cee8ea54bdb4dae52 (patch)
treef26f3058991135a633caf2818b3d38ee3a6aa094 /src/clients/s6-dnsip.c
parent05402aede9d952f9e561335dc9ba1dae0f8c6084 (diff)
downloads6-dns-8c904eff93d7c038855f2c1cee8ea54bdb4dae52.tar.xz
More bigfuxes!
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/clients/s6-dnsip.c')
-rw-r--r--src/clients/s6-dnsip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clients/s6-dnsip.c b/src/clients/s6-dnsip.c
index 6a5747d..041d450 100644
--- a/src/clients/s6-dnsip.c
+++ b/src/clients/s6-dnsip.c
@@ -82,7 +82,7 @@ int main (int argc, char const *const *argv)
char fmt[IP6_FMT] ;
size_t n = ip46full_fmt(fmt, genalloc_s(ip46full, &ips) + i) ;
fmt[n++] = '\n' ;
- if (buffer_put(buffer_1small, fmt, n) < (ssize_t)n)
+ if (buffer_put(buffer_1small, fmt, n) < 0)
strerr_diefu1sys(111, "write to stdout") ;
}
if (!buffer_flush(buffer_1small))