Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Fix IOCSNPRINTF(), 'R' and 'W' were reversed.
details: https://anonhg.NetBSD.org/src/rev/d3b6b1357a82
branches: trunk
changeset: 999246:d3b6b1357a82
user: hannken <hannken%NetBSD.org@localhost>
date: Sun May 26 10:21:33 2019 +0000
description:
Fix IOCSNPRINTF(), 'R' and 'W' were reversed.
diffstat:
sys/sys/ioccom.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 7ad25db15217 -r d3b6b1357a82 sys/sys/ioccom.h
--- a/sys/sys/ioccom.h Sun May 26 10:21:00 2019 +0000
+++ b/sys/sys/ioccom.h Sun May 26 10:21:33 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ioccom.h,v 1.12 2014/12/10 00:16:05 christos Exp $ */
+/* $NetBSD: ioccom.h,v 1.13 2019/05/26 10:21:33 hannken Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993, 1994
@@ -74,8 +74,8 @@
#define IOCSNPRINTF(buf, len, cmd) \
snprintf((buf), (len), "_IO%s%s('%c', %hhu)", \
- (((cmd) >> 30) & 1) ? "W" : "", \
- (((cmd) >> 30) & 2) ? "R" : "", \
+ (((cmd) >> 30) & 1) ? "R" : "", \
+ (((cmd) >> 30) & 2) ? "W" : "", \
(char)IOCGROUP(cmd), (unsigned char)(cmd))
Home |
Main Index |
Thread Index |
Old Index