summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 08:16:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-01-30 08:16:46 +0000
commit9385a016947bdd9212abf22406941de4bae035bc (patch)
treebff7fa53e955c3d00e6293f68c6557562a1beb0e
parent1ade80ef582142bff4333618969549c35b132078 (diff)
fix IOR/IOW/IOWR; cgd@netbsd.org
-rw-r--r--usr.bin/kdump/kdump.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 35c429586a3..d3af78f2a24 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $ */
+/* $OpenBSD: kdump.c,v 1.6 1997/01/30 08:16:45 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95";
#endif
-static char *rcsid = "$OpenBSD: kdump.c,v 1.5 1996/12/10 15:42:38 deraadt Exp $";
+static char *rcsid = "$OpenBSD: kdump.c,v 1.6 1997/01/30 08:16:45 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -283,9 +283,9 @@ ioctldecode(cmd)
{
char dirbuf[4], *dir = dirbuf;
- if (cmd & IOC_OUT)
- *dir++ = 'W';
if (cmd & IOC_IN)
+ *dir++ = 'W';
+ if (cmd & IOC_OUT)
*dir++ = 'R';
*dir = '\0';