style fixes. No code changes

This commit is contained in:
Denis Vlasenko
2007-04-12 00:32:05 +00:00
parent 50f7f446ec
commit 51742f4bb0
30 changed files with 84 additions and 82 deletions

View File

@ -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

View File

@ -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 */