[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 32/48] bsd-user: style tweak: remove spacing after '*' and add
From: |
imp |
Subject: |
[PATCH v2 32/48] bsd-user: style tweak: remove spacing after '*' and add after } |
Date: |
Sat, 24 Apr 2021 10:00:00 -0600 |
From: Warner Losh <imp@bsdimp.com>
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/qemu.h | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/bsd-user/qemu.h b/bsd-user/qemu.h
index 5a82722281..de20e8329a 100644
--- a/bsd-user/qemu.h
+++ b/bsd-user/qemu.h
@@ -124,19 +124,19 @@ struct linux_binprm {
int argc, envc;
char **argv;
char **envp;
- char * filename; /* Name of binary */
+ char *filename; /* Name of binary */
};
void do_init_thread(struct target_pt_regs *regs, struct image_info *infop);
abi_ulong loader_build_argptr(int envc, int argc, abi_ulong sp,
abi_ulong stringp, int push_ptr);
-int loader_exec(const char * filename, char ** argv, char ** envp,
- struct target_pt_regs * regs, struct image_info *infop);
+int loader_exec(const char *filename, char **argv, char **envp,
+ struct target_pt_regs *regs, struct image_info *infop);
-int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
- struct image_info * info);
-int load_flt_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
- struct image_info * info);
+int load_elf_binary(struct linux_binprm *bprm, struct target_pt_regs *regs,
+ struct image_info *info);
+int load_flt_binary(struct linux_binprm *bprm, struct target_pt_regs *regs,
+ struct image_info *info);
abi_long memcpy_to_target(abi_ulong dest, const void *src,
unsigned long len);
@@ -246,7 +246,7 @@ static inline bool access_ok(int type, abi_ulong addr,
abi_ulong size)
break;\
default:\
abort();\
- }\
+ } \
0;\
})
@@ -270,7 +270,7 @@ static inline bool access_ok(int type, abi_ulong addr,
abi_ulong size)
/* avoid warning */\
x = 0;\
abort();\
- }\
+ } \
0;\
})
--
2.22.1
- Re: [PATCH v2 15/48] bsd-user: style tweak: return is not a function, eliminate (), (continued)
- [PATCH v2 12/48] bsd-user: style tweak: Remove #if 0'd code, imp, 2021/04/24
- [PATCH v2 14/48] bsd-user: style tweak: Remove #if 0'd code, imp, 2021/04/24
- [PATCH v2 22/48] bsd-user: use qemu_strtoul in preference to strtol, imp, 2021/04/24
- [PATCH v2 10/48] bsd-user: Remove commented out code, imp, 2021/04/24
- [PATCH v2 24/48] bsd-user: create target_arch_cpu.h, imp, 2021/04/24
- [PATCH v2 32/48] bsd-user: style tweak: remove spacing after '*' and add after },
imp <=
- [PATCH v2 28/48] bsd-user: style tweak: comments, imp, 2021/04/24
- [PATCH v2 16/48] bsd-user: style tweak: Put {} around all if/else/for statements, imp, 2021/04/24
- [PATCH v2 18/48] bsd-user: style tweak: Use preferred block comments, imp, 2021/04/24
- [PATCH v2 33/48] bsd-user: style tweak: Use preferred block comments, imp, 2021/04/24
- [PATCH v2 37/48] bsd-user: style tweak: don't assign in if statements, imp, 2021/04/24