summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index a11b0e8ada0..ee1094196db 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.79 2006/03/25 22:41:48 djm Exp $ */
+/* $OpenBSD: if_tun.c,v 1.80 2006/11/01 03:37:24 tedu Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -947,7 +947,7 @@ tunpoll(dev_t dev, int events, struct proc *p)
struct mbuf *m;
if ((tp = tun_lookup(minor(dev))) == NULL)
- return (ENXIO);
+ return (POLLERR);
ifp = &tp->tun_if;
revents = 0;