Whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
bfa6ed1bf4
commit
982e87f2fb
@ -29,7 +29,7 @@ int catv_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
#define CATV_OPT_e (1<<0)
|
#define CATV_OPT_e (1<<0)
|
||||||
#define CATV_OPT_t (1<<1)
|
#define CATV_OPT_t (1<<1)
|
||||||
#define CATV_OPT_v (1<<2)
|
#define CATV_OPT_v (1<<2)
|
||||||
typedef char BUG_const_mismatch[
|
typedef char BUG_const_mismatch[
|
||||||
CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS
|
CATV_OPT_e == VISIBLE_ENDLINE && CATV_OPT_t == VISIBLE_SHOW_TABS
|
||||||
? 1 : -1
|
? 1 : -1
|
||||||
];
|
];
|
||||||
|
@ -31,7 +31,7 @@ Solution #1: block until sending is done:
|
|||||||
*/
|
*/
|
||||||
struct linger {
|
struct linger {
|
||||||
int l_onoff; /* linger active */
|
int l_onoff; /* linger active */
|
||||||
int l_linger; /* how many seconds to linger for */
|
int l_linger; /* how many seconds to linger for */
|
||||||
} linger;
|
} linger;
|
||||||
linger.l_onoff = 1;
|
linger.l_onoff = 1;
|
||||||
linger.l_linger = SOME_NUM;
|
linger.l_linger = SOME_NUM;
|
||||||
|
@ -985,8 +985,8 @@ static action*** parse_params(char **argv)
|
|||||||
*/
|
*/
|
||||||
/* Options */
|
/* Options */
|
||||||
if (parm == OPT_FOLLOW) {
|
if (parm == OPT_FOLLOW) {
|
||||||
dbg("follow enabled: %d", __LINE__);
|
dbg("follow enabled: %d", __LINE__);
|
||||||
G.recurse_flags |= ACTION_FOLLOWLINKS | ACTION_DANGLING_OK;
|
G.recurse_flags |= ACTION_FOLLOWLINKS | ACTION_DANGLING_OK;
|
||||||
}
|
}
|
||||||
#if ENABLE_FEATURE_FIND_XDEV
|
#if ENABLE_FEATURE_FIND_XDEV
|
||||||
else if (parm == OPT_XDEV) {
|
else if (parm == OPT_XDEV) {
|
||||||
|
@ -442,7 +442,7 @@ struct ext2_super_block {
|
|||||||
uint32_t s_reserved[162]; /* Padding to the end of the block */
|
uint32_t s_reserved[162]; /* Padding to the end of the block */
|
||||||
};
|
};
|
||||||
struct BUG_ext2_super_block {
|
struct BUG_ext2_super_block {
|
||||||
char bug[sizeof(struct ext2_super_block) == 1024 ? 1 : -1];
|
char bug[sizeof(struct ext2_super_block) == 1024 ? 1 : -1];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -483,9 +483,9 @@ int xmkstemp(char *template) FAST_FUNC;
|
|||||||
off_t fdlength(int fd) FAST_FUNC;
|
off_t fdlength(int fd) FAST_FUNC;
|
||||||
|
|
||||||
uoff_t FAST_FUNC get_volume_size_in_bytes(int fd,
|
uoff_t FAST_FUNC get_volume_size_in_bytes(int fd,
|
||||||
const char *override,
|
const char *override,
|
||||||
unsigned override_units,
|
unsigned override_units,
|
||||||
int extend);
|
int extend);
|
||||||
|
|
||||||
void xpipe(int filedes[2]) FAST_FUNC;
|
void xpipe(int filedes[2]) FAST_FUNC;
|
||||||
/* In this form code with pipes is much more readable */
|
/* In this form code with pipes is much more readable */
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
/*
|
/*
|
||||||
static void die_at(int line)
|
static void die_at(int line)
|
||||||
{
|
{
|
||||||
bb_error_msg_and_die("internal error at %d", line);
|
bb_error_msg_and_die("internal error at %d", line);
|
||||||
}
|
}
|
||||||
#define assert(v) if (!(v)) die_at(__LINE__)
|
#define assert(v) if (!(v)) die_at(__LINE__)
|
||||||
*/
|
*/
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
|
|
||||||
#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|
#if !(defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) \
|
||||||
|| defined(__APPLE__) \
|
|| defined(__APPLE__) \
|
||||||
)
|
)
|
||||||
# include <malloc.h> /* for mallopt */
|
# include <malloc.h> /* for mallopt */
|
||||||
#endif
|
#endif
|
||||||
|
@ -171,7 +171,7 @@ struct globals {
|
|||||||
} FIX_ALIASING;
|
} FIX_ALIASING;
|
||||||
#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)
|
||||||
|
|
||||||
|
|
||||||
|
@ -1709,8 +1709,8 @@ static int pam_talker(int num_msg,
|
|||||||
s = userinfo->pw;
|
s = userinfo->pw;
|
||||||
break;
|
break;
|
||||||
case PAM_ERROR_MSG:
|
case PAM_ERROR_MSG:
|
||||||
case PAM_TEXT_INFO:
|
case PAM_TEXT_INFO:
|
||||||
s = "";
|
s = "";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
free(response);
|
free(response);
|
||||||
|
@ -228,8 +228,8 @@ typedef struct {
|
|||||||
uint8_t lastpkt_status;
|
uint8_t lastpkt_status;
|
||||||
uint8_t lastpkt_stratum;
|
uint8_t lastpkt_stratum;
|
||||||
uint8_t reachable_bits;
|
uint8_t reachable_bits;
|
||||||
/* when to send new query (if p_fd == -1)
|
/* when to send new query (if p_fd == -1)
|
||||||
* or when receive times out (if p_fd >= 0): */
|
* or when receive times out (if p_fd >= 0): */
|
||||||
double next_action_time;
|
double next_action_time;
|
||||||
double p_xmttime;
|
double p_xmttime;
|
||||||
double lastpkt_recv_time;
|
double lastpkt_recv_time;
|
||||||
|
@ -65,7 +65,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 filter_ifindex (G.filter_ifindex)
|
#define filter_ifindex (G.filter_ifindex)
|
||||||
#define filter_qdisc (G.filter_qdisc)
|
#define filter_qdisc (G.filter_qdisc)
|
||||||
|
@ -62,14 +62,14 @@ struct globals {
|
|||||||
const char *curfile; /* Name of current file being transferred */
|
const char *curfile; /* Name of current file being transferred */
|
||||||
bb_progress_t pmt;
|
bb_progress_t pmt;
|
||||||
#endif
|
#endif
|
||||||
char *dir_prefix;
|
char *dir_prefix;
|
||||||
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
|
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
|
||||||
char *post_data;
|
char *post_data;
|
||||||
char *extra_headers;
|
char *extra_headers;
|
||||||
#endif
|
#endif
|
||||||
char *fname_out; /* where to direct output (-O) */
|
char *fname_out; /* where to direct output (-O) */
|
||||||
const char *proxy_flag; /* Use proxies if env vars are set */
|
const char *proxy_flag; /* Use proxies if env vars are set */
|
||||||
const char *user_agent; /* "User-Agent" header field */
|
const char *user_agent; /* "User-Agent" header field */
|
||||||
#if ENABLE_FEATURE_WGET_TIMEOUT
|
#if ENABLE_FEATURE_WGET_TIMEOUT
|
||||||
unsigned timeout_seconds;
|
unsigned timeout_seconds;
|
||||||
#endif
|
#endif
|
||||||
@ -86,7 +86,7 @@ struct globals {
|
|||||||
} FIX_ALIASING;
|
} FIX_ALIASING;
|
||||||
#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))); \
|
||||||
IF_FEATURE_WGET_TIMEOUT(G.timeout_seconds = 900;) \
|
IF_FEATURE_WGET_TIMEOUT(G.timeout_seconds = 900;) \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user