summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-24 22:03:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-07-24 22:03:16 +0000
commitf9ace7e84e7594542eb571d2a27489180c7b9f33 (patch)
treee4d2fd6af1623d5c46565794d88560e384f8cab7 /sys
parentef89b2484b62dd56b6cf2e7c78edf07dd3dc8f10 (diff)
reindent
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if_tun.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index fb2e6ba3823..09893380f2a 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.16 1997/07/23 20:50:14 mickey Exp $ */
+/* $OpenBSD: if_tun.c,v 1.17 1997/07/24 22:03:15 deraadt Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -397,7 +397,7 @@ tunioctl(dev, cmd, data, flag, p)
{
int unit, s;
struct tun_softc *tp;
- struct tuninfo *tunp;
+ struct tuninfo *tunp;
if ((unit = minor(dev)) >= NTUN)
return (ENXIO);
@@ -406,20 +406,20 @@ tunioctl(dev, cmd, data, flag, p)
s = splimp();
switch (cmd) {
- case TUNSIFINFO:
+ case TUNSIFINFO:
tunp = (struct tuninfo *)data;
- tp->tun_if.if_mtu = tunp->mtu;
- tp->tun_if.if_type = tunp->type;
- tp->tun_if.if_flags = tunp->flags;
- tp->tun_if.if_baudrate = tunp->baudrate;
- break;
- case TUNGIFINFO:
- tunp = (struct tuninfo *)data;
- tunp->mtu = tp->tun_if.if_mtu;
- tunp->type = tp->tun_if.if_type;
- tunp->flags = tp->tun_if.if_flags;
- tunp->baudrate = tp->tun_if.if_baudrate;
- break;
+ tp->tun_if.if_mtu = tunp->mtu;
+ tp->tun_if.if_type = tunp->type;
+ tp->tun_if.if_flags = tunp->flags;
+ tp->tun_if.if_baudrate = tunp->baudrate;
+ break;
+ case TUNGIFINFO:
+ tunp = (struct tuninfo *)data;
+ tunp->mtu = tp->tun_if.if_mtu;
+ tunp->type = tp->tun_if.if_type;
+ tunp->flags = tp->tun_if.if_flags;
+ tunp->baudrate = tp->tun_if.if_baudrate;
+ break;
#ifdef TUN_DEBUG
case TUNSDEBUG:
tundebug = *(int *)data;