mirror of
https://github.com/sheumann/hush.git
synced 2025-01-12 14:30:54 +00:00
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
6307357eff
commit
b7c9fb27cb
@ -31,8 +31,8 @@
|
|||||||
#include "usage.h"
|
#include "usage.h"
|
||||||
#define MAKE_USAGE(aname, usage) { aname, usage },
|
#define MAKE_USAGE(aname, usage) { aname, usage },
|
||||||
static struct usage_data {
|
static struct usage_data {
|
||||||
const char *aname;
|
const char *aname;
|
||||||
const char *usage;
|
const char *usage;
|
||||||
} usage_array[] = {
|
} usage_array[] = {
|
||||||
#include "applets.h"
|
#include "applets.h"
|
||||||
};
|
};
|
||||||
|
@ -401,7 +401,7 @@ struct globals {
|
|||||||
#define INIT_G() do { } while (0)
|
#define INIT_G() do { } while (0)
|
||||||
//#define G (*ptr_to_globals)
|
//#define G (*ptr_to_globals)
|
||||||
//#define INIT_G() do {
|
//#define INIT_G() do {
|
||||||
// SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
|
// SET_PTR_TO_GLOBALS(xzalloc(sizeof(G)));
|
||||||
//} while (0)
|
//} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -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,
|
blk_t ext2fs_inode_data_blocks(ext2_filsys fs,
|
||||||
struct ext2_inode *inode)
|
struct ext2_inode *inode)
|
||||||
{
|
{
|
||||||
return inode->i_blocks -
|
return inode->i_blocks -
|
||||||
(inode->i_file_acl ? fs->blocksize >> 9 : 0);
|
(inode->i_file_acl ? fs->blocksize >> 9 : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ struct globals {
|
|||||||
} FIX_ALIASING;
|
} FIX_ALIASING;
|
||||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||||
struct BUG_G_too_big {
|
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 { \
|
#define INIT_G() do { \
|
||||||
G.sed_cmd_tail = &G.sed_cmd_head; \
|
G.sed_cmd_tail = &G.sed_cmd_head; \
|
||||||
|
@ -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;
|
const void *end = (uint8_t*)buf + len;
|
||||||
|
|
||||||
while (buf != end) {
|
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;
|
buf = (uint8_t*)buf + 1;
|
||||||
}
|
}
|
||||||
return val;
|
return val;
|
||||||
|
@ -80,9 +80,9 @@ const char *applet_long_options
|
|||||||
This struct allows you to define long options:
|
This struct allows you to define long options:
|
||||||
|
|
||||||
static const char applet_longopts[] ALIGN1 =
|
static const char applet_longopts[] ALIGN1 =
|
||||||
//"name\0" has_arg val
|
//"name\0" has_arg val
|
||||||
"verbose\0" No_argument "v"
|
"verbose\0" No_argument "v"
|
||||||
;
|
;
|
||||||
applet_long_options = applet_longopts;
|
applet_long_options = applet_longopts;
|
||||||
|
|
||||||
The last member of struct option (val) typically is set to
|
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
|
if specified together. In this case you must set
|
||||||
opt_complementary = "b--cf:c--bf:f--bc". If two of the
|
opt_complementary = "b--cf:c--bf:f--bc". If two of the
|
||||||
mutually exclusive options are found, getopt32 will call
|
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
|
"x--x" Variation of the above, it means that -x option should occur
|
||||||
at most once.
|
at most once.
|
||||||
|
@ -334,7 +334,7 @@ static void termios_final(void)
|
|||||||
* IMAXBEL Echo BEL on input line too long
|
* IMAXBEL Echo BEL on input line too long
|
||||||
* IUTF8 Appears to affect tty's idea of char widths,
|
* IUTF8 Appears to affect tty's idea of char widths,
|
||||||
* observed to improve backspacing through Unicode chars
|
* observed to improve backspacing through Unicode chars
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* line buffered input (NL or EOL or EOF chars end a line);
|
/* line buffered input (NL or EOL or EOF chars end a line);
|
||||||
* recognize INT/QUIT/SUSP chars;
|
* recognize INT/QUIT/SUSP chars;
|
||||||
|
@ -170,7 +170,7 @@ struct globals {
|
|||||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||||
#define INIT_G() do { } while (0)
|
#define INIT_G() do { } while (0)
|
||||||
struct BUG_G_too_big {
|
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];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -52,9 +52,9 @@ httpd_ssi.c -o httpd_ssi
|
|||||||
|
|
||||||
static char* skip_whitespace(char *s)
|
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];
|
static char line[64 * 1024];
|
||||||
|
@ -882,7 +882,7 @@ fit(peer_t *p, double rd)
|
|||||||
// /* Do we have a loop? */
|
// /* Do we have a loop? */
|
||||||
// if (p->refid == p->dstaddr || p->refid == s.refid)
|
// if (p->refid == p->dstaddr || p->refid == s.refid)
|
||||||
// return 0;
|
// return 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
static peer_t*
|
static peer_t*
|
||||||
select_and_cluster(void)
|
select_and_cluster(void)
|
||||||
|
@ -76,7 +76,7 @@ struct globals {
|
|||||||
};
|
};
|
||||||
#define G (*ptr_to_globals)
|
#define G (*ptr_to_globals)
|
||||||
#define INIT_G() do { \
|
#define INIT_G() do { \
|
||||||
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
|
@ -368,9 +368,9 @@ shell_builtin_ulimit(char **argv)
|
|||||||
#endif
|
#endif
|
||||||
/* optarg = NULL; opterr = 0; optopt = 0; - do we need this?? */
|
/* optarg = NULL; opterr = 0; optopt = 0; - do we need this?? */
|
||||||
|
|
||||||
argc = 1;
|
argc = 1;
|
||||||
while (argv[argc])
|
while (argv[argc])
|
||||||
argc++;
|
argc++;
|
||||||
|
|
||||||
opts = 0;
|
opts = 0;
|
||||||
while (1) {
|
while (1) {
|
||||||
|
@ -19,7 +19,7 @@ int flock_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
};
|
};
|
||||||
|
|
||||||
#if ENABLE_LONG_OPTS
|
#if ENABLE_LONG_OPTS
|
||||||
static const char getopt_longopts[] ALIGN1 =
|
static const char getopt_longopts[] ALIGN1 =
|
||||||
"shared\0" No_argument "s"
|
"shared\0" No_argument "s"
|
||||||
"exclusive\0" No_argument "x"
|
"exclusive\0" No_argument "x"
|
||||||
"unlock\0" No_argument "u"
|
"unlock\0" No_argument "u"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user