whitespace fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-07-17 15:04:17 +02:00
parent 0d2e0de42b
commit 4c201c00a3
5 changed files with 12 additions and 12 deletions

View File

@ -737,7 +737,7 @@ static void install_links(const char *busybox, int use_symbolic_links,
* busybox.h::bb_install_loc_t, or else... */ * busybox.h::bb_install_loc_t, or else... */
int (*lf)(const char *, const char *); int (*lf)(const char *, const char *);
char *fpc; char *fpc;
const char *appname = applet_names; const char *appname = applet_names;
unsigned i; unsigned i;
int rc; int rc;

View File

@ -12,7 +12,7 @@
void FAST_FUNC nuke_str(char *str) void FAST_FUNC nuke_str(char *str)
{ {
if (str) { if (str) {
while (*str) while (*str)
*str++ = 0; *str++ = 0;
/* or: memset(str, 0, strlen(str)); - not as small as above */ /* or: memset(str, 0, strlen(str)); - not as small as above */

View File

@ -2470,7 +2470,7 @@ static void reinit_unicode_for_hush(void)
*/ */
if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
|| ENABLE_UNICODE_USING_LOCALE || ENABLE_UNICODE_USING_LOCALE
) { ) {
const char *s = get_local_var_value("LC_ALL"); const char *s = get_local_var_value("LC_ALL");
if (!s) s = get_local_var_value("LC_CTYPE"); if (!s) s = get_local_var_value("LC_CTYPE");
if (!s) s = get_local_var_value("LANG"); if (!s) s = get_local_var_value("LANG");
@ -5795,8 +5795,8 @@ static char *encode_then_expand_vararg(const char *str, int handle_squotes, int
*/ */
setup_string_in_str(&input, str); setup_string_in_str(&input, str);
o_addchr(&dest, '\0'); o_addchr(&dest, '\0');
dest.length = 0; dest.length = 0;
exp_str = NULL; exp_str = NULL;
for (;;) { for (;;) {

View File

@ -46,11 +46,11 @@ next_random(random_t *rnd)
* Choices for a,b,c: 10,13,10; 8,9,22; 2,7,3; 23,3,24 * Choices for a,b,c: 10,13,10; 8,9,22; 2,7,3; 23,3,24
* (given by algorithm author) * (given by algorithm author)
*/ */
enum { enum {
a = 2, a = 2,
b = 7, b = 7,
c = 3, c = 3,
}; };
uint32_t t; uint32_t t;
@ -154,7 +154,7 @@ int main(int argc, char **argv)
write(1, buf, sizeof(buf)); write(1, buf, sizeof(buf));
} }
return 0; return 0;
} }
#endif #endif

View File

@ -73,7 +73,7 @@
#include "libbb.h" #include "libbb.h"
static void mount_or_die(const char *source, const char *target, static void mount_or_die(const char *source, const char *target,
const char *fstype, unsigned long mountflags) const char *fstype, unsigned long mountflags)
{ {
if (mount(source, target, fstype, mountflags, NULL)) { if (mount(source, target, fstype, mountflags, NULL)) {
bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)", bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)",