summaryrefslogtreecommitdiffstats
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
committerbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
commit08b652fb6584a6e35dd3b2b51861b90f852b6d95 (patch)
tree91dcf848840fefc35bc4b406b8a5599bdac59cbb /sys/net/if_tun.c
parentaa3705d78b7fc12ce3cf9e9a7437407154f241c8 (diff)
downloadFreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.zip
FreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.tar.gz
Replaced bogus macros for dummy devswitch entries by functions.
These functions went away: enosys (hasn't been used for some time) enxio enodev enoioctl (was used only once, actually for a vop) if_tun.c: Continued cleaning up... conf.h: Probably fixed the type of d_reset_t. It is hard to tell the correct type because there are no non-dummy device reset functions. Removed last vestige of ambiguous sleep message strings.
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 65f36e2..91ffbe2 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -76,17 +76,18 @@ int tunoutput __P((struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *rt));
int tunifioctl __P((struct ifnet *, int, caddr_t));
-static struct cdevsw tuncdevsw =
-{ tunopen, tunclose, tunread, tunwrite,
- tunioctl, (d_stop_t *)enodev, (d_reset_t *)nullop, (d_ttycv_t *)enodev,
- tunselect, (d_mmap_t *)enodev, NULL };
+static struct cdevsw tuncdevsw = {
+ tunopen, tunclose, tunread, tunwrite,
+ tunioctl, nullstop, noreset, nodevtotty,
+ tunselect, nommap, nostrategy
+};
extern dev_t tuncdev;
static int tuninit __P((int));
static void
-tunattach(udata)
- void *udata;
+tunattach(dummy)
+ void *dummy;
{
register int i;
struct ifnet *ifp;
OpenPOWER on IntegriCloud