diff mbox series

[V4,1/4] bsd-user: "foo * bar" should be "foo *bar"

Message ID 02263a65-7e3a-2d09-d7b1-6d54a19c8454@huawei.com
State New
Headers show
Series bsd-user: Fix some code style problems | expand

Commit Message

shiliyang Jan. 18, 2021, 2:19 a.m. UTC
This patch fixes error style problems found by checkpatch.pl:
ERROR: "foo ** bar" should be "foo **bar".
ERROR: "foo * bar" should be "foo *bar"

Signed-off-by: Liyang Shi <shiliyang@huawei.com>
---
 bsd-user/bsdload.c |  4 ++--
 bsd-user/elfload.c | 16 ++++++++--------
 2 files changed, 10 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index d708a54b03..65a2346bc7 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user/bsdload.c
@@ -36,7 +36,7 @@  abi_long memcpy_to_target(abi_ulong dest, const void *src,
     return 0;
 }

-static int count(char ** vec)
+static int count(char **vec)
 {
     int         i;

@@ -188,7 +188,7 @@  static int find_in_path(char *path, const char *filename, char *retpath,
     return found;
 }

-int loader_exec(const char * filename, char ** argv, char ** envp,
+int loader_exec(const char *filename, char **argv, char **envp,
              struct target_pt_regs *regs, struct image_info *infop,
              struct bsd_binprm *bprm)
 {
diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index 373292e468..4d1a572534 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -66,12 +66,12 @@  static int load_elf_sections(const struct elfhdr *hdr, struct elf_phdr *phdr,
 abi_ulong target_stksiz;
 abi_ulong target_stkbas;

-static inline void memcpy_fromfs(void * to, const void * from, unsigned long n)
+static inline void memcpy_fromfs(void *to, const void *from, unsigned long n)
 {
     memcpy(to, from, n);
 }

-static int load_aout_interp(void * exptr, int interp_fd);
+static int load_aout_interp(void *exptr, int interp_fd);

 #ifdef BSWAP_NEEDED
 static void bswap_ehdr(struct elfhdr *ehdr)
@@ -156,7 +156,7 @@  static void bswap_note(struct elf_note *en) { }
  * to be put directly into the top of new user memory.
  *
  */
-static abi_ulong copy_elf_strings(int argc,char ** argv, void **page,
+static abi_ulong copy_elf_strings(int argc, char **argv, void **page,
                                   abi_ulong p)
 {
     char *tmp, *tmp1, *pag = NULL;
@@ -288,7 +288,7 @@  static void padzero(abi_ulong elf_bss, abi_ulong last_bss)
     }
 }

-static abi_ulong load_elf_interp(struct elfhdr * interp_elf_ex,
+static abi_ulong load_elf_interp(struct elfhdr *interp_elf_ex,
         int interpreter_fd, abi_ulong *interp_load_addr)
 {
     struct elf_phdr *elf_phdata  =  NULL;
@@ -614,11 +614,11 @@  int load_elf_binary(struct bsd_binprm *bprm, struct target_pt_regs *regs,
     unsigned int interpreter_type = INTERPRETER_NONE;
     unsigned char ibcs2_interpreter;
     int i;
-    struct elf_phdr * elf_ppnt;
+    struct elf_phdr *elf_ppnt;
     struct elf_phdr *elf_phdata;
     abi_ulong elf_bss, elf_brk;
     int error, retval;
-    char * elf_interpreter;
+    char *elf_interpreter;
     abi_ulong baddr, elf_entry, et_dyn_addr, interp_load_addr = 0;
     abi_ulong reloc_func_desc = 0;
     char passed_fileno[6];
@@ -785,7 +785,7 @@  int load_elf_binary(struct bsd_binprm *bprm, struct target_pt_regs *regs,
        and then start this sucker up */

     {
-        char * passed_p;
+        char *passed_p;

         if (interpreter_type == INTERPRETER_AOUT) {
             snprintf(passed_fileno, sizeof(passed_fileno), "%d", bprm->fd);
@@ -2254,7 +2254,7 @@  out:

 #endif /* USE_ELF_CORE_DUMP */

-static int load_aout_interp(void * exptr, int interp_fd)
+static int load_aout_interp(void *exptr, int interp_fd)
 {

     printf("a.out interpreter not yet supported\n");