From 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 12 Apr 2007 00:32:05 +0000 Subject: style fixes. No code changes --- modutils/insmod.c | 8 ++++---- modutils/rmmod.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'modutils') diff --git a/modutils/insmod.c b/modutils/insmod.c index 50b5dd18e..adfbd33fe 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 0a67b8965..67cf58c3b 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 */ -- cgit v1.2.3