whitespace fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 17 Jul 2018 13:04:17 +0000 (15:04 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 17 Jul 2018 13:04:17 +0000 (15:04 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c
libbb/nuke_str.c
shell/hush.c
shell/random.c
util-linux/unshare.c

index f155d09081132c593188cce2563890fcc124e1e7..319bcc2632be25998bc80bce9802300d7d9e270d 100644 (file)
@@ -737,7 +737,7 @@ static void install_links(const char *busybox, int use_symbolic_links,
         * busybox.h::bb_install_loc_t, or else... */
        int (*lf)(const char *, const char *);
        char *fpc;
-        const char *appname = applet_names;
+       const char *appname = applet_names;
        unsigned i;
        int rc;
 
index 240e68004100b589ebc0890cb31de58966be4f3a..b5385e956929da4cb65f4365bafe54f245b7d8ba 100644 (file)
@@ -12,7 +12,7 @@
 
 void FAST_FUNC nuke_str(char *str)
 {
-        if (str) {
+       if (str) {
                while (*str)
                        *str++ = 0;
                /* or: memset(str, 0, strlen(str)); - not as small as above */
index 238f997da2f992eed35ffb7ab58adb2738d1d786..7da8f334c30894c397be5ffbeb8ade3a141beafe 100644 (file)
@@ -2470,7 +2470,7 @@ static void reinit_unicode_for_hush(void)
         */
        if (ENABLE_FEATURE_CHECK_UNICODE_IN_ENV
         || ENABLE_UNICODE_USING_LOCALE
-        ) {
+       ) {
                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("LANG");
@@ -5795,8 +5795,8 @@ static char *encode_then_expand_vararg(const char *str, int handle_squotes, int
         */
 
        setup_string_in_str(&input, str);
-        o_addchr(&dest, '\0');
-        dest.length = 0;
+       o_addchr(&dest, '\0');
+       dest.length = 0;
        exp_str = NULL;
 
        for (;;) {
index 5d3620516a329fad26e45227138f6cb775464fbf..56c7c5a3c88f7fd539fd152c991f09cdc076d892 100644 (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
         * (given by algorithm author)
         */
-        enum {
-                a = 2,
-                b = 7,
-                c = 3,
-        };
+       enum {
+               a = 2,
+               b = 7,
+               c = 3,
+       };
 
        uint32_t t;
 
@@ -154,7 +154,7 @@ int main(int argc, char **argv)
                write(1, buf, sizeof(buf));
        }
 
-        return 0;
+       return 0;
 }
 
 #endif
index 7c295da1f84f05cf5e78be21c914e5da313721d6..fffee28a0972b7913bbcee4a9c1e00abe3580af8 100644 (file)
@@ -73,7 +73,7 @@
 #include "libbb.h"
 
 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)) {
                bb_perror_msg_and_die("can't mount %s on %s (flags:0x%lx)",