[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 05/48] bsd-user: style tweak: keyword space (
From: |
imp |
Subject: |
[PATCH v2 05/48] bsd-user: style tweak: keyword space ( |
Date: |
Sat, 24 Apr 2021 09:59:33 -0600 |
From: Warner Losh <imp@bsdimp.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/qemu.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index d2bcaab741..b836b603af 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -233,7 +233,7 @@ static inline bool access_ok(int type, abi_ulong addr,
abi_ulong size)
#define __put_user(x, hptr)\
({\
int size = sizeof(*hptr);\
- switch(size) {\
+ switch (size) {\
case 1:\
*(uint8_t *)(hptr) = (uint8_t)(typeof(*hptr))(x);\
break;\
@@ -255,7 +255,7 @@ static inline bool access_ok(int type, abi_ulong addr,
abi_ulong size)
#define __get_user(x, hptr) \
({\
int size = sizeof(*hptr);\
- switch(size) {\
+ switch (size) {\
case 1:\
x = (typeof(*hptr))*(uint8_t *)(hptr);\
break;\
--
2.22.1
- [PATCH v2 00/48] bsd-user style and reorg patches, imp, 2021/04/24
- [PATCH v2 01/48] bsd-user: whitespace changes, imp, 2021/04/24
- [PATCH v2 03/48] bsd-user: whitespace changes, imp, 2021/04/24
- [PATCH v2 02/48] bsd-user: whitespace changes, imp, 2021/04/24
- [PATCH v2 05/48] bsd-user: style tweak: keyword space (,
imp <=
- [PATCH v2 04/48] bsd-user: style tweak: keyword space (, imp, 2021/04/24
- [PATCH v2 06/48] bsd-user: style tweak: keyword space (, imp, 2021/04/24
- [PATCH v2 07/48] bsd-user: style tweak: keyword space (, imp, 2021/04/24
- [PATCH v2 08/48] bsd-user: style tweak: use C not C++ comments, imp, 2021/04/24
- [PATCH v2 09/48] bsd-user: style tweak: use C not C++ comments, imp, 2021/04/24
- [PATCH v2 13/48] bsd-user: style tweak: Remove #if 0'd code, imp, 2021/04/24
- [PATCH v2 20/48] bsd-user: style tweak: use {} consistently in for / if / else statements, imp, 2021/04/24
- [PATCH v2 17/48] bsd-user: style tweak: Fix commentary issues, imp, 2021/04/24
- [PATCH v2 21/48] bsd-user: style nits: return is not a function, imp, 2021/04/24