bsd-user: style tweak: keyword space (
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Warner Losh <imp@bsdimp.com>
This commit is contained in:
parent
ca0fd2e345
commit
cefbade173
@ -233,7 +233,7 @@ static inline bool access_ok(int type, abi_ulong addr, abi_ulong size)
|
|||||||
#define __put_user(x, hptr)\
|
#define __put_user(x, hptr)\
|
||||||
({\
|
({\
|
||||||
int size = sizeof(*hptr);\
|
int size = sizeof(*hptr);\
|
||||||
switch(size) {\
|
switch (size) {\
|
||||||
case 1:\
|
case 1:\
|
||||||
*(uint8_t *)(hptr) = (uint8_t)(typeof(*hptr))(x);\
|
*(uint8_t *)(hptr) = (uint8_t)(typeof(*hptr))(x);\
|
||||||
break;\
|
break;\
|
||||||
@ -255,7 +255,7 @@ static inline bool access_ok(int type, abi_ulong addr, abi_ulong size)
|
|||||||
#define __get_user(x, hptr) \
|
#define __get_user(x, hptr) \
|
||||||
({\
|
({\
|
||||||
int size = sizeof(*hptr);\
|
int size = sizeof(*hptr);\
|
||||||
switch(size) {\
|
switch (size) {\
|
||||||
case 1:\
|
case 1:\
|
||||||
x = (typeof(*hptr))*(uint8_t *)(hptr);\
|
x = (typeof(*hptr))*(uint8_t *)(hptr);\
|
||||||
break;\
|
break;\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user