summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2002-04-06 23:40:14 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2002-04-06 23:40:14 +0000
commitf3b4f74459e7cca45dfa34a88554fec8f0eb24e4 (patch)
tree7478f50dd2ab02e6aa00554c1f744502dcaa34d2
parentf4c0fc70f92588a38365e59df3873c48a04d4785 (diff)
Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined,
so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@
-rw-r--r--sys/miscfs/procfs/procfs_vnops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c
index 1f95a5636c9..9848edcadd5 100644
--- a/sys/miscfs/procfs/procfs_vnops.c
+++ b/sys/miscfs/procfs/procfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_vnops.c,v 1.25 2002/03/14 01:27:08 millert Exp $ */
+/* $OpenBSD: procfs_vnops.c,v 1.26 2002/04/06 23:40:13 miod Exp $ */
/* $NetBSD: procfs_vnops.c,v 1.40 1996/03/16 23:52:55 christos Exp $ */
/*
@@ -650,13 +650,13 @@ procfs_getattr(v)
#endif
break;
-#if defined(PT_GETFPREGS) || defined(PT_SETFPREGS)
case Pfpregs:
+#if defined(PT_GETFPREGS) || defined(PT_SETFPREGS)
#ifdef PTRACE
vap->va_bytes = vap->va_size = sizeof(struct fpreg);
#endif
- break;
#endif
+ break;
case Pctl:
case Pstatus: