diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-17 15:04:17 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-07-17 15:04:17 +0200 |
| commit | 4c201c00a3650cdacad5fc098ca255416687fb0f (patch) | |
| tree | fdebcdd9a9a39eee729c45f17d92d042c2adf3f7 | |
| parent | 0d2e0de42bab54c31ba37f1c6fd10dcdc7008ccf (diff) | |
| download | busybox-w32-4c201c00a3650cdacad5fc098ca255416687fb0f.tar.gz busybox-w32-4c201c00a3650cdacad5fc098ca255416687fb0f.tar.bz2 busybox-w32-4c201c00a3650cdacad5fc098ca255416687fb0f.zip | |
whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | libbb/appletlib.c | 2 | ||||
| -rw-r--r-- | libbb/nuke_str.c | 2 | ||||
| -rw-r--r-- | shell/hush.c | 6 | ||||
| -rw-r--r-- | shell/random.c | 12 | ||||
| -rw-r--r-- | util-linux/unshare.c | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index f155d0908..319bcc263 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
| @@ -737,7 +737,7 @@ static void install_links(const char *busybox, int use_symbolic_links, | |||
| 737 | * busybox.h::bb_install_loc_t, or else... */ | 737 | * busybox.h::bb_install_loc_t, or else... */ |
| 738 | int (*lf)(const char *, const char *); | 738 | int (*lf)(const char *, const char *); |
| 739 | char *fpc; | 739 | char *fpc; |
| 740 | const char *appname = applet_names; | 740 | const char *appname = applet_names; |
| 741 | unsigned i; | 741 | unsigned i; |
| 742 | int rc; | 742 | int rc; |
| 743 | 743 | ||
diff --git a/libbb/nuke_str.c b/libbb/nuke_str.c index 240e68004..b5385e956 100644 --- a/libbb/nuke_str.c +++ b/libbb/nuke_str.c | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | 12 | ||
| 13 | void FAST_FUNC nuke_str(char *str) | 13 | void FAST_FUNC nuke_str(char *str) |
| 14 | { | 14 | { |
| 15 | if (str) { | 15 | if (str) { |
| 16 | while (*str) | 16 | while (*str) |
| 17 | *str++ = 0; | 17 | *str++ = 0; |
| 18 | /* or: memset(str, 0, strlen(str)); - not as small as above */ | 18 | /* or: memset(str, 0, strlen(str)); - not as small as above */ |
diff --git a/shell/hush.c b/shell/hush.c index 238f997da..7da8f334c 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
| @@ -2470,7 +2470,7 @@ static void reinit_unicode_for_hush(void) | |||
| 2470 | */ | 2470 | */ |
| 2471 | if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV | 2471 | if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV |
| 2472 | || ENABLE_UNICODE_USING_LOCALE | 2472 | || ENABLE_UNICODE_USING_LOCALE |
| 2473 | ) { | 2473 | ) { |
| 2474 | const char *s = get_local_var_value("LC_ALL"); | 2474 | const char *s = get_local_var_value("LC_ALL"); |
| 2475 | if (!s) s = get_local_var_value("LC_CTYPE"); | 2475 | if (!s) s = get_local_var_value("LC_CTYPE"); |
| 2476 | if (!s) s = get_local_var_value("LANG"); | 2476 | 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 | |||
| 5795 | */ | 5795 | */ |
| 5796 | 5796 | ||
| 5797 | setup_string_in_str(&input, str); | 5797 | setup_string_in_str(&input, str); |
| 5798 | o_addchr(&dest, '\0'); | 5798 | o_addchr(&dest, '\0'); |
| 5799 | dest.length = 0; | 5799 | dest.length = 0; |
| 5800 | exp_str = NULL; | 5800 | exp_str = NULL; |
| 5801 | 5801 | ||
| 5802 | for (;;) { | 5802 | for (;;) { |
diff --git a/shell/random.c b/shell/random.c index 5d3620516..56c7c5a3c 100644 --- a/shell/random.c +++ b/shell/random.c | |||
| @@ -46,11 +46,11 @@ next_random(random_t *rnd) | |||
| 46 | * Choices for a,b,c: 10,13,10; 8,9,22; 2,7,3; 23,3,24 | 46 | * Choices for a,b,c: 10,13,10; 8,9,22; 2,7,3; 23,3,24 |
| 47 | * (given by algorithm author) | 47 | * (given by algorithm author) |
| 48 | */ | 48 | */ |
| 49 | enum { | 49 | enum { |
| 50 | a = 2, | 50 | a = 2, |
| 51 | b = 7, | 51 | b = 7, |
| 52 | c = 3, | 52 | c = 3, |
| 53 | }; | 53 | }; |
| 54 | 54 | ||
| 55 | uint32_t t; | 55 | uint32_t t; |
| 56 | 56 | ||
| @@ -154,7 +154,7 @@ int main(int argc, char **argv) | |||
| 154 | write(1, buf, sizeof(buf)); | 154 | write(1, buf, sizeof(buf)); |
| 155 | } | 155 | } |
| 156 | 156 | ||
| 157 | return 0; | 157 | return 0; |
| 158 | } | 158 | } |
| 159 | 159 | ||
| 160 | #endif | 160 | #endif |
diff --git a/util-linux/unshare.c b/util-linux/unshare.c index 7c295da1f..fffee28a0 100644 --- a/util-linux/unshare.c +++ b/util-linux/unshare.c | |||
| @@ -73,7 +73,7 @@ | |||
| 73 | #include "libbb.h" | 73 | #include "libbb.h" |
| 74 | 74 | ||
| 75 | static void mount_or_die(const char *source, const char *target, | 75 | static void mount_or_die(const char *source, const char *target, |
| 76 | const char *fstype, unsigned long mountflags) | 76 | const char *fstype, unsigned long mountflags) |
| 77 | { | 77 | { |
| 78 | if (mount(source, target, fstype, mountflags, NULL)) { | 78 | if (mount(source, target, fstype, mountflags, NULL)) { |
| 79 | bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)", | 79 | bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)", |
