diff options
author | 2010-06-26 22:54:04 +0000 | |
---|---|---|
committer | 2010-06-26 22:54:04 +0000 | |
commit | fda43b0c903939dc47082c49d6927a1068a6945e (patch) | |
tree | 5c4cad9df7c02ab9e8b78d3bde5ad7271bdc58e4 /regress/sys/kern/kqueue/kqueue-tun.c | |
parent | sync (diff) | |
download | wireguard-openbsd-fda43b0c903939dc47082c49d6927a1068a6945e.tar.xz wireguard-openbsd-fda43b0c903939dc47082c49d6927a1068a6945e.zip |
Do not print "Read from tunnel foo failed" in the failure case of a
function named "tunnel_write", tell people that a write failed.
ok claudio@
Diffstat (limited to 'regress/sys/kern/kqueue/kqueue-tun.c')
-rw-r--r-- | regress/sys/kern/kqueue/kqueue-tun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/sys/kern/kqueue/kqueue-tun.c b/regress/sys/kern/kqueue/kqueue-tun.c index 54b59d67453..088e54c5b56 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.3 2004/02/28 02:22:29 deraadt Exp $ */ +/* $OpenBSD: kqueue-tun.c,v 1.4 2010/06/26 22:54:04 blambert Exp $ */ /* $Gateweaver: tunkq.c,v 1.2 2003/11/27 22:47:41 cmaxwell Exp $ */ /* * Copyright 2003 Christopher J. Maxwell <cmaxwell@themanor.net> @@ -78,7 +78,7 @@ tunnel_write(int fd, short which, void *arg) fprintf(stderr, "Tunnel %d wrote %ld bytes\n", fdkey, (long)(rlen - sizeof(type))); else - errx(1, "Read from tunnel %d failed", fdkey); + errx(1, "Write to tunnel %d failed", fdkey); } void |