diff options
author | Denis Vlasenko | 2007-04-11 17:04:29 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-04-11 17:04:29 +0000 |
commit | 6398cf477d96cea03459835ed7462d2e8d5b2a71 (patch) | |
tree | b1ffb40817fcb6a50e970ca9ef33624c56bd3a2a | |
parent | e4f2d064b0fcffc8897089e1c80e6e2d61b6805d (diff) | |
download | busybox-6398cf477d96cea03459835ed7462d2e8d5b2a71.zip busybox-6398cf477d96cea03459835ed7462d2e8d5b2a71.tar.gz |
style fixes, no code changes.
-rw-r--r-- | e2fsprogs/old_e2fsprogs/e2fsck.c | 2 | ||||
-rw-r--r-- | modutils/insmod.c | 58 | ||||
-rw-r--r-- | modutils/modprobe.c | 4 | ||||
-rw-r--r-- | networking/traceroute.c | 2 | ||||
-rw-r--r-- | shell/hush.c | 2 | ||||
-rw-r--r-- | shell/lash.c | 2 |
6 files changed, 37 insertions, 33 deletions
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c index bb9f42a..44ae117 100644 --- a/e2fsprogs/old_e2fsprogs/e2fsck.c +++ b/e2fsprogs/old_e2fsprogs/e2fsck.c @@ -12660,7 +12660,7 @@ static void check_mount(e2fsck_t ctx) cont = ask_yn(_("Do you really want to continue"), -1); if (!cont) { printf(_("check aborted.\n")); - exit (0); + exit(0); } } diff --git a/modutils/insmod.c b/modutils/insmod.c index 7d5cf47..50b5dd1 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -598,7 +598,7 @@ static unsigned long obj_elf_hash(const char *); static unsigned long obj_elf_hash_n(const char *, unsigned long len); -static struct obj_symbol *obj_find_symbol (struct obj_file *f, +static struct obj_symbol *obj_find_symbol(struct obj_file *f, const char *name); static ElfW(Addr) obj_symbol_final_value(struct obj_file *f, @@ -610,23 +610,23 @@ static void obj_set_symbol_compare(struct obj_file *f, unsigned long (*hash)(const char *)); #endif -static struct obj_section *obj_find_section (struct obj_file *f, +static struct obj_section *obj_find_section(struct obj_file *f, const char *name); -static void obj_insert_section_load_order (struct obj_file *f, +static void obj_insert_section_load_order(struct obj_file *f, struct obj_section *sec); -static struct obj_section *obj_create_alloced_section (struct obj_file *f, +static struct obj_section *obj_create_alloced_section(struct obj_file *f, const char *name, unsigned long align, unsigned long size); -static struct obj_section *obj_create_alloced_section_first (struct obj_file *f, +static struct obj_section *obj_create_alloced_section_first(struct obj_file *f, const char *name, unsigned long align, unsigned long size); -static void *obj_extend_section (struct obj_section *sec, unsigned long more); +static void *obj_extend_section(struct obj_section *sec, unsigned long more); static int obj_string_patch(struct obj_file *f, int secidx, ElfW(Addr) offset, const char *string); @@ -638,29 +638,29 @@ static int obj_check_undefineds(struct obj_file *f); static void obj_allocate_commons(struct obj_file *f); -static unsigned long obj_load_size (struct obj_file *f); +static unsigned long obj_load_size(struct obj_file *f); -static int obj_relocate (struct obj_file *f, ElfW(Addr) base); +static int obj_relocate(struct obj_file *f, ElfW(Addr) base); static struct obj_file *obj_load(FILE *f, int loadprogbits); -static int obj_create_image (struct obj_file *f, char *image); +static int obj_create_image(struct obj_file *f, char *image); /* Architecture specific manipulation routines. */ -static struct obj_file *arch_new_file (void); +static struct obj_file *arch_new_file(void); -static struct obj_section *arch_new_section (void); +static struct obj_section *arch_new_section(void); -static struct obj_symbol *arch_new_symbol (void); +static struct obj_symbol *arch_new_symbol(void); -static enum obj_reloc arch_apply_relocation (struct obj_file *f, +static enum obj_reloc arch_apply_relocation(struct obj_file *f, struct obj_section *targsec, struct obj_section *symsec, struct obj_symbol *sym, ElfW(RelM) *rel, ElfW(Addr) value); -static void arch_create_got (struct obj_file *f); +static void arch_create_got(struct obj_file *f); #if ENABLE_FEATURE_CHECK_TAINTED_MODULE static int obj_gpl_license(struct obj_file *f, const char **license); #endif /* FEATURE_CHECK_TAINTED_MODULE */ @@ -2313,13 +2313,13 @@ add_symbols_from( struct obj_file *f, kernel exports `C names', but module object files reference `linker names'). */ size_t extra = sizeof SYMBOL_PREFIX; - size_t name_size = strlen (name) + extra; + size_t name_size = strlen(name) + extra; if (name_size > name_alloced_size) { name_alloced_size = name_size * 2; - name_buf = alloca (name_alloced_size); + name_buf = alloca(name_alloced_size); } - strcpy (name_buf, SYMBOL_PREFIX); - strcpy (name_buf + extra - 1, name); + strcpy(name_buf, SYMBOL_PREFIX); + strcpy(name_buf + extra - 1, name); name = name_buf; #endif /* SYMBOL_PREFIX */ @@ -2327,8 +2327,8 @@ add_symbols_from( struct obj_file *f, if (sym && !(ELF_ST_BIND(sym->info) == STB_LOCAL)) { #ifdef SYMBOL_PREFIX /* Put NAME_BUF into more permanent storage. */ - name = xmalloc (name_size); - strcpy (name, name_buf); + name = xmalloc(name_size); + strcpy(name, name_buf); #endif sym = obj_add_symbol(f, name, -1, ELF_ST_INFO(STB_GLOBAL, @@ -2351,10 +2351,14 @@ static void add_kernel_symbols(struct obj_file *f) /* Add module symbols first. */ - for (i = 0, m = ext_modules; i < n_ext_modules; ++i, ++m) + for (i = 0, m = ext_modules; i < n_ext_modules; ++i, ++m) { if (m->nsyms - && add_symbols_from(f, SHN_HIRESERVE + 2 + i, m->syms, - m->nsyms)) m->used = 1, ++nused; + && add_symbols_from(f, SHN_HIRESERVE + 2 + i, m->syms, m->nsyms) + ) { + m->used = 1; + ++nused; + } + } n_ext_modules_used = nused; @@ -2423,9 +2427,9 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv) } #ifdef SYMBOL_PREFIX - sym_name = alloca (strlen (key) + sizeof SYMBOL_PREFIX); - strcpy (sym_name, SYMBOL_PREFIX); - strcat (sym_name, key); + sym_name = alloca(strlen(key) + sizeof SYMBOL_PREFIX); + strcpy(sym_name, SYMBOL_PREFIX); + strcat(sym_name, key); #else sym_name = key; #endif @@ -2549,7 +2553,7 @@ new_process_module_arguments(struct obj_file *f, int argc, char **argv) obj_string_patch(f, sym->secidx, loc - contents, str); loc += tgt_sizeof_char_p; } else { - /* Array of chars (in fact, matrix !) */ + /* Array of chars (in fact, matrix!) */ unsigned long charssize; /* size of each member */ /* Get the size of each member */ diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 09494ca..d6a9553 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -677,8 +677,8 @@ static int check_pattern(const char* pat_src, const char* mod_src) { char* mod; char* p; - pat = xstrdup (pat_src); - mod = xstrdup (mod_src); + pat = xstrdup(pat_src); + mod = xstrdup(mod_src); for (p = pat; (p = strchr(p, '-')); *p++ = '_'); for (p = mod; (p = strchr(p, '-')); *p++ = '_'); diff --git a/networking/traceroute.c b/networking/traceroute.c index 33023e7..cdc48ea 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c @@ -856,7 +856,7 @@ print(unsigned char *buf, int cc, struct sockaddr_in *from) inetname(from); #if ENABLE_FEATURE_TRACEROUTE_VERBOSE if (verbose) - printf(" %d bytes to %s", cc, inet_ntoa (ip->ip_dst)); + printf(" %d bytes to %s", cc, inet_ntoa(ip->ip_dst)); #endif } diff --git a/shell/hush.c b/shell/hush.c index 3048d69..331d591 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -489,7 +489,7 @@ static int builtin_exit(struct child_prog *child) { if (child->argv[1] == NULL) exit(last_return_code); - exit (atoi(child->argv[1])); + exit(atoi(child->argv[1])); } /* built-in 'export VAR=value' handler */ diff --git a/shell/lash.c b/shell/lash.c index f91bec2..aba9c0a 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -243,7 +243,7 @@ static int builtin_exit(struct child_prog *child) if (child->argv[1] == NULL) exit(EXIT_SUCCESS); - exit (atoi(child->argv[1])); + exit(atoi(child->argv[1])); } /* built-in 'fg' and 'bg' handler */ |