openbsd-ports/net/crawl/patches/patch-dns_c
naddy 559f9fe989 * libevent timeout_ -> evtimer_
* printf() size_t by casting to unsigned long and using %lu format

ok mark@
2002-07-16 16:08:23 +00:00

13 lines
449 B
Plaintext

$OpenBSD: patch-dns_c,v 1.1 2002/07/16 16:08:23 naddy Exp $
--- dns.c.orig Tue Jul 16 02:04:51 2002
+++ dns.c Tue Jul 16 02:05:38 2002
@@ -141,7 +141,7 @@ dns_read(int fd, short why, void *arg)
event_add(&child->ev_write, NULL);
if (atomicio(read, fd, &size, sizeof(size)) != sizeof(size))
- err(1, __FUNCTION__": read(%d)", sizeof(size));
+ err(1, __FUNCTION__": read(%lu)", (unsigned long)sizeof(size));
if (size == -1)
goto fail;