$OpenBSD: patch-dns_c,v 1.3 2010/05/23 16:25:21 espie Exp $ --- dns.c.orig Sun May 18 03:21:33 2003 +++ dns.c Sun May 23 18:24:21 2010 @@ -139,7 +139,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, "%s: read(%d)", __func__, sizeof(size)); + err(1, "%s: read(%lu)", (unsigned long)sizeof(size), __func__); if (size == -1) goto fail;