diff options
author | 1996-11-07 11:19:48 +0000 | |
---|---|---|
committer | 1996-11-07 11:19:48 +0000 | |
commit | 6a88e991dbc53eff1249ef0d983a75471eb9f288 (patch) | |
tree | c51a4468bed16efdcb55cb4c9a6af028cd463ba0 | |
parent | Handle odd-aligned mbufs in 16 bit mode so strict alignment is enforced (diff) | |
download | wireguard-openbsd-6a88e991dbc53eff1249ef0d983a75471eb9f288.tar.xz wireguard-openbsd-6a88e991dbc53eff1249ef0d983a75471eb9f288.zip |
Conditinally unused variable (-Wall fix)
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_ext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_ext.c b/sys/arch/i386/isa/pcvt/pcvt_ext.c index 6d09638d0fa..52356338a84 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_ext.c +++ b/sys/arch/i386/isa/pcvt/pcvt_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_ext.c,v 1.7 1996/07/18 15:37:10 shawn Exp $ */ +/* $OpenBSD: pcvt_ext.c,v 1.8 1996/11/07 11:19:48 niklas Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -2794,6 +2794,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) /* grant the process IO access; only allowed if euid == 0 */ { +#if (PCVT_NETBSD <= 100) || defined(COMPAT_10) || defined(COMPAT_11) #if PCVT_NETBSD > 9 || PCVT_FREEBSD >= 200 struct trapframe *fp = (struct trapframe *)p->p_md.md_regs; #elif PCVT_NETBSD || (PCVT_FREEBSD && PCVT_FREEBSD > 102) @@ -2801,6 +2802,7 @@ usl_vt_ioctl(Dev_t dev, int cmd, caddr_t data, int flag, struct proc *p) #else struct syscframe *fp = (struct syscframe *)p->p_regs; #endif +#endif if(suser(p->p_ucred, &p->p_acflag) != 0) return (EPERM); |