summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-28 02:22:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-02-28 02:22:30 +0000
commit0f6edc7477d0fa3716f48415b54f9acdad887fc8 (patch)
tree471bedfcf19973a1ebef0fa214efb0c0d2000a75 /regress/sys
parent505e11cc0448ce7ec8eac1a2d1f2ae93905f774e (diff)
regress tests full of warnings make me go red
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/kqueue/kqueue-tun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-tun.c b/regress/sys/kern/kqueue/kqueue-tun.c
index 40b28d2f8d1..54b59d67453 100644
--- a/regress/sys/kern/kqueue/kqueue-tun.c
+++ b/regress/sys/kern/kqueue/kqueue-tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kqueue-tun.c,v 1.2 2003/12/07 15:45:57 markus Exp $ */
+/* $OpenBSD: kqueue-tun.c,v 1.3 2004/02/28 02:22:29 deraadt Exp $ */
/* $Gateweaver: tunkq.c,v 1.2 2003/11/27 22:47:41 cmaxwell Exp $ */
/*
* Copyright 2003 Christopher J. Maxwell <cmaxwell@themanor.net>
@@ -75,8 +75,8 @@ tunnel_write(int fd, short which, void *arg)
state++;
if ((rlen = writev(fd, iv, 2)) > 0)
- fprintf(stderr, "Tunnel %d wrote %d bytes\n",
- fdkey, rlen - sizeof(type));
+ fprintf(stderr, "Tunnel %d wrote %ld bytes\n",
+ fdkey, (long)(rlen - sizeof(type)));
else
errx(1, "Read from tunnel %d failed", fdkey);
}
@@ -97,8 +97,8 @@ tunnel_read(int fd, short which, void *arg)
state++;
if ((rlen = readv(fd, iv, 2)) > 0) {
- fprintf(stderr, "Tunnel %d read %d bytes\n",
- fdkey, rlen - sizeof(type));
+ fprintf(stderr, "Tunnel %d read %ld bytes\n",
+ fdkey, (long)(rlen - sizeof(type)));
tpkt.len = rlen - sizeof(type);
/* add write event on opposite tunnel */