mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
silly switch style fix
This commit is contained in:
parent
94d5d82bd8
commit
c16bd212e3
@ -317,7 +317,7 @@ static int version_compare(const unsigned int ver1, const unsigned int ver2)
|
|||||||
static int test_version(const unsigned int version1, const unsigned int version2, const unsigned int operator)
|
static int test_version(const unsigned int version1, const unsigned int version2, const unsigned int operator)
|
||||||
{
|
{
|
||||||
const int version_result = version_compare(version1, version2);
|
const int version_result = version_compare(version1, version2);
|
||||||
switch(operator) {
|
switch (operator) {
|
||||||
case (VER_ANY):
|
case (VER_ANY):
|
||||||
return(TRUE);
|
return(TRUE);
|
||||||
case (VER_EQUAL):
|
case (VER_EQUAL):
|
||||||
@ -646,7 +646,7 @@ static unsigned int fill_package_struct(char *control_buffer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
field_num = compare_string_array(field_names, field_name);
|
field_num = compare_string_array(field_names, field_name);
|
||||||
switch(field_num) {
|
switch (field_num) {
|
||||||
case 0: /* Package */
|
case 0: /* Package */
|
||||||
new_node->name = search_name_hashtable(field_value);
|
new_node->name = search_name_hashtable(field_value);
|
||||||
break;
|
break;
|
||||||
|
@ -55,7 +55,7 @@ void data_extract_all(archive_handle_t *archive_handle)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Create the filesystem entry */
|
/* Create the filesystem entry */
|
||||||
switch(file_header->mode & S_IFMT) {
|
switch (file_header->mode & S_IFMT) {
|
||||||
case S_IFREG: {
|
case S_IFREG: {
|
||||||
/* Regular file */
|
/* Regular file */
|
||||||
dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL,
|
dst_fd = xopen3(file_header->name, O_WRONLY | O_CREAT | O_EXCL,
|
||||||
|
@ -115,9 +115,9 @@ int unzip_main(int argc, char **argv)
|
|||||||
struct stat stat_buf;
|
struct stat stat_buf;
|
||||||
|
|
||||||
while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) {
|
while((opt = getopt(argc, argv, "-d:lnopqx")) != -1) {
|
||||||
switch(opt_range) {
|
switch (opt_range) {
|
||||||
case 0: /* Options */
|
case 0: /* Options */
|
||||||
switch(opt) {
|
switch (opt) {
|
||||||
case 'l': /* List */
|
case 'l': /* List */
|
||||||
verbosity = v_list;
|
verbosity = v_list;
|
||||||
break;
|
break;
|
||||||
|
@ -62,7 +62,7 @@ int head_main(int argc, char **argv)
|
|||||||
|
|
||||||
/* No size benefit in converting this to bb_getopt_ulflags */
|
/* No size benefit in converting this to bb_getopt_ulflags */
|
||||||
while ((opt = getopt(argc, argv, head_opts)) > 0) {
|
while ((opt = getopt(argc, argv, head_opts)) > 0) {
|
||||||
switch(opt) {
|
switch (opt) {
|
||||||
#if ENABLE_FEATURE_FANCY_HEAD
|
#if ENABLE_FEATURE_FANCY_HEAD
|
||||||
case 'q':
|
case 'q':
|
||||||
header_threshhold = INT_MAX;
|
header_threshhold = INT_MAX;
|
||||||
|
@ -293,7 +293,7 @@ int sort_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#ifdef CONFIG_FEATURE_SORT_BIG
|
#ifdef CONFIG_FEATURE_SORT_BIG
|
||||||
/* if no key, perform alphabetic sort */
|
/* if no key, perform alphabetic sort */
|
||||||
if(!key_list) add_key()->range[0]=1;
|
if(!key_list) add_key()->range[0]=1;
|
||||||
/* handle -c */
|
/* handle -c */
|
||||||
if(global_flags&FLAG_c) {
|
if(global_flags&FLAG_c) {
|
||||||
int j=(global_flags&FLAG_u) ? -1 : 0;
|
int j=(global_flags&FLAG_u) ? -1 : 0;
|
||||||
|
@ -25,7 +25,7 @@ int setsid_main(int argc, char *argv[])
|
|||||||
bb_show_usage();
|
bb_show_usage();
|
||||||
|
|
||||||
if (getpgrp() == getpid()) {
|
if (getpgrp() == getpid()) {
|
||||||
switch(fork()){
|
switch (fork()){
|
||||||
case -1:
|
case -1:
|
||||||
bb_perror_msg_and_die("fork");
|
bb_perror_msg_and_die("fork");
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -820,7 +820,7 @@ int do_iproute(int argc, char **argv)
|
|||||||
if (*argv) {
|
if (*argv) {
|
||||||
command_num = compare_string_array(ip_route_commands, *argv);
|
command_num = compare_string_array(ip_route_commands, *argv);
|
||||||
}
|
}
|
||||||
switch(command_num) {
|
switch (command_num) {
|
||||||
case 0: /* add*/
|
case 0: /* add*/
|
||||||
flags = NLM_F_CREATE|NLM_F_EXCL;
|
flags = NLM_F_CREATE|NLM_F_EXCL;
|
||||||
break;
|
break;
|
||||||
|
@ -388,7 +388,7 @@ read_response:
|
|||||||
s = strchr(target.user, ':');
|
s = strchr(target.user, ':');
|
||||||
if (s)
|
if (s)
|
||||||
*(s++) = '\0';
|
*(s++) = '\0';
|
||||||
switch(ftpcmd("USER ", target.user, sfp, buf)) {
|
switch (ftpcmd("USER ", target.user, sfp, buf)) {
|
||||||
case 230:
|
case 230:
|
||||||
break;
|
break;
|
||||||
case 331:
|
case 331:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user