[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] bsd-user: style tweak: keyword space (
From: |
Warner Losh |
Subject: |
[PULL 2/5] bsd-user: style tweak: keyword space ( |
Date: |
Fri, 30 Apr 2021 11:27:43 -0600 |
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
- [PULL 0/5] bsd-user: minor cleanup patches, Warner Losh, 2021/04/30
- [PULL 3/5] bsd-user: style tweak: return is not a function, eliminate (), Warner Losh, 2021/04/30
- [PULL 1/5] bsd-user: whitespace changes, Warner Losh, 2021/04/30
- [PULL 2/5] bsd-user: style tweak: keyword space (,
Warner Losh <=
- [PULL 4/5] bsd-user: put back a break; that had gone missing..., Warner Losh, 2021/04/30
- [PULL 5/5] bsd-user: style tweak: Put {} around all if/else/for statements, Warner Losh, 2021/04/30