whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2011-02-03 00:05:48 +01:00
parent 6307357eff
commit b7c9fb27cb
13 changed files with 21 additions and 21 deletions

View File

@ -31,8 +31,8 @@
#include "usage.h"
#define MAKE_USAGE(aname, usage) { aname, usage },
static struct usage_data {
const char *aname;
const char *usage;
const char *aname;
const char *usage;
} usage_array[] = {
#include "applets.h"
};

View File

@ -401,7 +401,7 @@ struct globals {
#define INIT_G() do { } while (0)
//#define G (*ptr_to_globals)
//#define INIT_G() do {
// SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
// SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
//} while (0)

View File

@ -155,8 +155,8 @@ int ext2fs_group_of_ino(ext2_filsys fs, ext2_ino_t ino)
blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
struct ext2_inode *inode)
{
return inode->i_blocks -
(inode->i_file_acl ? fs->blocksize >> 9 : 0);
return inode->i_blocks -
(inode->i_file_acl ? fs->blocksize >> 9 : 0);
}

View File

@ -124,7 +124,7 @@ struct globals {
} FIX_ALIASING;
#define G (*(struct globals*)&bb_common_bufsiz1)
struct BUG_G_too_big {
char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
};
#define INIT_G() do { \
G.sed_cmd_tail = &G.sed_cmd_head; \

View File

@ -59,7 +59,7 @@ uint32_t FAST_FUNC crc32_block_endian0(uint32_t val, const void *buf, unsigned l
const void *end = (uint8_t*)buf + len;
while (buf != end) {
val = crc_table[(uint8_t)val ^ *(uint8_t*)buf] ^ (val >> 8);
val = crc_table[(uint8_t)val ^ *(uint8_t*)buf] ^ (val >> 8);
buf = (uint8_t*)buf + 1;
}
return val;

View File

@ -80,9 +80,9 @@ const char *applet_long_options
This struct allows you to define long options:
static const char applet_longopts[] ALIGN1 =
//"name\0" has_arg val
"verbose\0" No_argument "v"
;
//"name\0" has_arg val
"verbose\0" No_argument "v"
;
applet_long_options = applet_longopts;
The last member of struct option (val) typically is set to
@ -226,7 +226,7 @@ Special characters:
if specified together. In this case you must set
opt_complementary = "b--cf:c--bf:f--bc". If two of the
mutually exclusive options are found, getopt32 will call
bb_show_usage() and die.
bb_show_usage() and die.
"x--x" Variation of the above, it means that -x option should occur
at most once.

View File

@ -334,7 +334,7 @@ static void termios_final(void)
* IMAXBEL Echo BEL on input line too long
* IUTF8 Appears to affect tty's idea of char widths,
* observed to improve backspacing through Unicode chars
*/
*/
/* line buffered input (NL or EOL or EOF chars end a line);
* recognize INT/QUIT/SUSP chars;

View File

@ -170,7 +170,7 @@ struct globals {
#define G (*(struct globals*)&bb_common_bufsiz1)
#define INIT_G() do { } while (0)
struct BUG_G_too_big {
char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
char BUG_G_too_big[sizeof(G) <= COMMON_BUFSIZE ? 1 : -1];
};

View File

@ -52,9 +52,9 @@ httpd_ssi.c -o httpd_ssi
static char* skip_whitespace(char *s)
{
while (*s == ' ' || *s == '\t') ++s;
while (*s == ' ' || *s == '\t') ++s;
return s;
return s;
}
static char line[64 * 1024];

View File

@ -882,7 +882,7 @@ fit(peer_t *p, double rd)
// /* Do we have a loop? */
// if (p->refid == p->dstaddr || p->refid == s.refid)
// return 0;
return 1;
return 1;
}
static peer_t*
select_and_cluster(void)

View File

@ -76,7 +76,7 @@ struct globals {
};
#define G (*ptr_to_globals)
#define INIT_G() do { \
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
} while (0)

View File

@ -368,9 +368,9 @@ shell_builtin_ulimit(char **argv)
#endif
/* optarg = NULL; opterr = 0; optopt = 0; - do we need this?? */
argc = 1;
while (argv[argc])
argc++;
argc = 1;
while (argv[argc])
argc++;
opts = 0;
while (1) {

View File

@ -19,7 +19,7 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
};
#if ENABLE_LONG_OPTS
static const char getopt_longopts[] ALIGN1 =
static const char getopt_longopts[] ALIGN1 =
"shared\0" No_argument "s"
"exclusive\0" No_argument "x"
"unlock\0" No_argument "u"