*: whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-10-28 18:57:19 +02:00
parent 7765095441
commit e4dcba1c10
82 changed files with 185 additions and 183 deletions

View File

@ -103,8 +103,8 @@ int env_main(int argc UNUSED_PARAM, char **argv)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
* 3. BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software

View File

@ -18,8 +18,8 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
* 3. BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software

View File

@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
* runlevel Prints out the previous and the current runlevel.
* Prints out the previous and the current runlevel.
*
* Version: @(#)runlevel 1.20 16-Apr-1997 MvS
*

View File

@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
* tc.c "tc" utility frontend.
* "tc" utility frontend.
*
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
*

View File

@ -539,9 +539,9 @@ static void cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx,
}
#endif
#ifdef __i386__
static NOINLINE void print_intel_cstates(void)
{
#ifdef __i386__
int bios_table[8] = { 0 };
int nbios = 0;
DIR *cpudir;
@ -628,13 +628,15 @@ static NOINLINE void print_intel_cstates(void)
/* Print BIOS C-States */
printf("Your BIOS reports the following C-states: ");
for (i = 0; i < 8; i++)
for (i = 0; i < ARRAY_SIZE(bios_table); i++)
if (bios_table[i])
printf("C%u ", i);
bb_putchar('\n');
#endif
}
#else
# define print_intel_cstates(void) ((void)0)
#endif
static void show_timerstats(void)
{

View File

@ -124,7 +124,7 @@ static NOINLINE void edir(const char *directory_name)
bb_perror_msg("warning: %s/%s is a directory",
directory_name, d->d_name);
continue;
} else
}
bb_perror_msg_and_die("open %s/%s",
directory_name, d->d_name);
}

View File

@ -1114,7 +1114,8 @@ int svlogd_main(int argc, char **argv)
/* Search for '\n' (in fact, np already holds the result) */
linelen = stdin_cnt;
if (np) {
print_to_nl: /* NB: starting from here lineptr may point
print_to_nl:
/* NB: starting from here lineptr may point
* farther out into line[] */
linelen = np - lineptr + 1;
}

View File

@ -134,8 +134,8 @@ int logger_main(int argc UNUSED_PARAM, char **argv)
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change>
* 3. BSD Advertising Clause omitted per the July 22, 1999 licensing change
* ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
*
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software

View File

@ -43,7 +43,6 @@ typedef enum type_id {
static int remove_ids(type_id type, int argc, char **argv)
{
unsigned long id;
int ret = 0; /* silence gcc */
int nb_errors = 0;
union semun arg;
@ -55,6 +54,7 @@ static int remove_ids(type_id type, int argc, char **argv)
bb_error_msg("invalid id: %s", argv[0]);
nb_errors++;
} else {
int ret = 0;
if (type == SEM)
ret = semctl(id, 0, IPC_RMID, arg);
else if (type == MSG)
@ -92,14 +92,13 @@ int ipcrm_main(int argc, char **argv)
type_id what = 0; /* silence gcc */
char w;
w=argv[1][0];
w = argv[1][0];
if ( ((w == 'm' && argv[1][1] == 's' && argv[1][2] == 'g')
|| (argv[1][0] == 's'
&& ((w=argv[1][1]) == 'h' || w == 'e')
&& ((w = argv[1][1]) == 'h' || w == 'e')
&& argv[1][2] == 'm')
) && argv[1][3] == '\0'
) {
if (argc < 3)
bb_show_usage();