diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-07 11:19:49 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-07 11:19:49 +0000 |
commit | c67cc0d4c9c27882d7fb7383571fb4e7baf07290 (patch) | |
tree | 6090b58f611f507c4f9d6abedaab6cf1efa55ba8 /sys/arch/i386/isa/pcvt | |
parent | d7d53098bf5e23746e02d321e4368d7da677bb4d (diff) |
Conditinally unused variable (-Wall fix)
Diffstat (limited to 'sys/arch/i386/isa/pcvt')
-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); |