summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-12 00:32:05 +0000
committerDenis Vlasenko2007-04-12 00:32:05 +0000
commit51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (patch)
tree7a912fc65ff43bdb09078d75bfc02ad8f5380b47 /modutils
parent50f7f446ecaadef6895a4ee601567e0b68330637 (diff)
downloadbusybox-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.zip
busybox-51742f4bb0c57a4d5063ece9437a2f34a42e52c8.tar.gz
style fixes. No code changes
Diffstat (limited to 'modutils')
-rw-r--r--modutils/insmod.c8
-rw-r--r--modutils/rmmod.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 50b5dd1..adfbd33 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -3410,7 +3410,7 @@ static struct obj_file *obj_load(FILE * fp, int loadprogbits)
sec->header = section_headers[i];
sec->idx = i;
- if(sec->header.sh_size) {
+ if (sec->header.sh_size) {
switch (sec->header.sh_type) {
case SHT_NULL:
case SHT_NOTE:
@@ -4219,17 +4219,17 @@ int insmod_main( int argc, char **argv)
goto out;
}
- if(flag_print_load_map)
+ if (flag_print_load_map)
print_load_map(f);
exit_status = EXIT_SUCCESS;
out:
#if ENABLE_FEATURE_CLEAN_UP
- if(fp)
+ if (fp)
fclose(fp);
free(tmp1);
- if(!tmp1)
+ if (!tmp1)
free(m_name);
free(m_filename);
#endif
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 0a67b89..67cf58c 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -46,11 +46,11 @@ int rmmod_main(int argc, char **argv)
/* Parse command line. */
n = getopt32(argc, argv, "wfa");
- if((n & 1)) // --wait
+ if (n & 1) // --wait
flags &= ~O_NONBLOCK;
- if((n & 2)) // --force
+ if (n & 2) // --force
flags |= O_TRUNC;
- if((n & 4)) {
+ if (n & 4) {
/* Unload _all_ unused modules via NULL delete_module() call */
/* until the number of modules does not change */
size_t nmod = 0; /* number of modules */