whitespace fixes
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 25 Jan 2010 12:39:24 +0000 (13:39 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 25 Jan 2010 12:39:24 +0000 (13:39 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
15 files changed:
Config.in
applets/usage_compressed
editors/patch_toybox.c
examples/var_service/dhcp_if/convert2ipconf
mailutils/mime.c
networking/ftpd.c
networking/traceroute.c
networking/udhcp/leases.c
networking/udhcp/script.c
scripts/checkhelp.awk
shell/hush.c
shell/hush_test/hush-misc/func4.tests
shell/msh_test/msh-execution/nested_break.tests
util-linux/mkfs_ext2.c
util-linux/mkfs_vfat.c

index 2ed88892ac77e4bbd11cbdb4f1e5f8eb150f804d..8e751530c037a53705d5698aa0633e8649e75bc8 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -521,7 +521,7 @@ config EFENCE
 endchoice
 
 ### config PARSE
-###    bool "Uniform config file parser debugging applet: parse"
+###    bool "Uniform config file parser debugging applet: parse"
 
 endmenu
 
index a299ecdf1e78f0a24b51aa3a94038e91e359f95d..8d343529d3074a0d40f513621b301c152061d805 100755 (executable)
@@ -21,9 +21,9 @@ echo 'static const char packed_usage[] ALIGN1 = {'
 ##
 ## "$loc/usage" | bzip2 -1 | od -v -x \
 ## | $SED -e 's/^[^ ]*//' \
-##     -e 's/ //g' \
-##     -e '/^$/d' \
-##     -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
+##     -e 's/ //g' \
+##     -e '/^$/d' \
+##     -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
 
 "$loc/usage" | bzip2 -1 | $DD bs=2 skip=1 2>/dev/null | od -v -t x1 \
 | $SED -e 's/^[^ ]*//' \
index f1e0de6cd875acbb23b085953f230795142e12a6..0e5c070e202d0525d7e9b33511440c19a80dafce 100644 (file)
@@ -491,7 +491,7 @@ int patch_main(int argc UNUSED_PARAM, char **argv)
                                int oldsum, newsum, del = 0;
                                char *s, *name;
 
-                               oldsum = oldline + oldlen;
+                               oldsum = oldline + oldlen;
                                newsum = newline + newlen;
 
                                name = reverse ? oldname : newname;
index 114ab0555e3299ea57573aa0b5639e0bf0983dc6..62a288ebf6355955251e5ff53c679faafa750392 100755 (executable)
@@ -28,7 +28,7 @@ test "$ip" || exit 1
 
 {
 echo "let cfg=cfg+1"
-test "$interface"      && echo "if[\$cfg]='$interface'"
+test "$interface"      && echo "if[\$cfg]='$interface'"
 test "$ip"             && echo "ip[\$cfg]='$ip'"
 test "$ip" && test "$mask" \
                        && echo "ipmask[\$cfg]='$ip/$mask'"
index 17d0f9d8066ba5b885473b97a85097df0b18cb6c..125ca01ddff1ce9a8298bbe331c4424f209e6c0d 100644 (file)
@@ -369,7 +369,7 @@ static int parse(const char *boundary, char **argv)
                        }
                }
  next:
-               free(line);
+               free(line);
        }
 
 //bb_info_msg("ENDPARSE[%s]", boundary);
index fdc6f5e452d5dad0fc62781b34ebf57275712d47..b7d5b20b19b2c6c1a69113a140396e004b34ea42 100644 (file)
@@ -716,7 +716,7 @@ handle_dir_common(int opts)
                /* STAT <filename> */
                cmdio_write_raw(STR(FTP_STATFILE_OK)"-File status:\r\n");
                while (1) {
-                       line = xmalloc_fgetline(ls_fp);
+                       line = xmalloc_fgetline(ls_fp);
                        if (!line)
                                break;
                        /* Hack: 0 results in no status at all */
@@ -731,7 +731,7 @@ handle_dir_common(int opts)
                int remote_fd = get_remote_transfer_fd(" Directory listing");
                if (remote_fd >= 0) {
                        while (1) {
-                               line = xmalloc_fgetline(ls_fp);
+                               line = xmalloc_fgetline(ls_fp);
                                if (!line)
                                        break;
                                /* I've seen clients complaining when they
index a30decf10edfac5e1c1d6222c69a44be031e58ee..2d3e770116a849f5836535dcddbe97c628fb0506 100644 (file)
@@ -364,7 +364,7 @@ wait_for_reply(len_and_sockaddr *from_lsa, struct sockaddr *to)
                read_len = recv_from_to(rcvsock,
                                recv_pkt, sizeof(recv_pkt),
                                /*flags:*/ 0,
-                               &from_lsa->u.sa, to, from_lsa->len);
+                               &from_lsa->u.sa, to, from_lsa->len);
        }
 
        return read_len;
index afd41bfd4811ea3275ef109b9737f82e08fe0668..78b0d0ade12ae537833aeb3f882c22a546125411 100644 (file)
@@ -66,7 +66,7 @@ struct dyn_lease* FAST_FUNC add_lease(
                        char *p;
                        if (hostname_len > sizeof(oldest->hostname))
                                hostname_len = sizeof(oldest->hostname);
-                       p = safe_strncpy(oldest->hostname, hostname, hostname_len);
+                       p = safe_strncpy(oldest->hostname, hostname, hostname_len);
                        /* sanitization (s/non-ASCII/^/g) */
                        while (*p) {
                                if (*p < ' ' || *p > 126)
index 065ea0cc7f0c401a4a0a20eea5aaa4151dfc9bda..574c74f45c1dc0b4ed0f645c4ddfd26690924ad0 100644 (file)
@@ -17,7 +17,7 @@
 static const uint8_t len_of_option_as_string[] = {
        [OPTION_IP] =           sizeof("255.255.255.255 "),
        [OPTION_IP_PAIR] =      sizeof("255.255.255.255 ") * 2,
-       [OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "),
+       [OPTION_STATIC_ROUTES]= sizeof("255.255.255.255/32 255.255.255.255 "),
        [OPTION_STRING] =       1,
 #if ENABLE_FEATURE_UDHCP_RFC3397
        [OPTION_STR1035] =      1,
index 2468db2dae64ed9167c7585f0e097b3126969cdf..94843d6ffd985ba5cc1c08a7782afea5dbd6189f 100755 (executable)
@@ -32,7 +32,7 @@ BEGIN {
 }
 END {
        for (i = 0; i <= pos; i++) {
-#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
+#      printf("%s: help for #%i '%s' == %i\n", file[i], i, conf[i], help[i]);
                if (help[i] == 0) {
                        printf("%s: No helptext for '%s'\n", file[i], conf[i]);
                }
index 9a9b5bb91c2a8a2acb5d908f08ad1cd2e006e291..e0c56262132f11122a28ecd8f4c2fd634a6c958e 100644 (file)
@@ -2037,7 +2037,7 @@ static const char *next_brace_sub(const char *cp)
                                break;
                        cp++;
                        continue;
-               }
+               }
                 /*{*/ if ((*cp == '}' && depth-- == 0) || (*cp == ',' && depth == 0))
                        break;
                if (*cp++ == '{') /*}*/
index 33b1663f3cd3bd01893191e055f9a0d771dd69df..74c1b9a469b3cf4207ff464060be41259f0e42ca 100755 (executable)
@@ -2,6 +2,6 @@ func() {
        eval "echo \"\${val_${1}}\""
 }
 
-val_x=24 
+val_x=24
 (func x)
 echo Done
index f2e6f81ae8461b9253f666b8c54e78531b9619e1..1a954d22728363a2c8b10fc2c497383999595035 100755 (executable)
@@ -3,15 +3,15 @@
 n=0
 while :
 do
-        echo A
-        while :
-        do
-               echo B
-                break
-        done
-        echo iteration
-        [ $n = 1 ] && break
+       echo A
+       while :
+       do
+               echo B
+               break
+       done
+       echo iteration
+       [ $n = 1 ] && break
        echo C
-        n=`expr $n + 1`
+       n=`expr $n + 1`
 done
 echo D
index 8b435c12041e0ff14397febb88a32df6a9217a6d..19c3c673e8db6abd58c0a8784c840306238ef0a2 100644 (file)
@@ -145,12 +145,12 @@ static void PUT(uint64_t off, void *buf, uint32_t size)
 
 // Standard mke2fs 1.41.9:
 // Usage: mke2fs [-c|-l filename] [-b block-size] [-f fragment-size]
-//     [-i bytes-per-inode] [-I inode-size] [-J journal-options]
-//     [-G meta group size] [-N number-of-inodes]
-//     [-m reserved-blocks-percentage] [-o creator-os]
-//     [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
-//     [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
-//     [-T fs-type] [-U UUID] [-jnqvFSV] device [blocks-count]
+//     [-i bytes-per-inode] [-I inode-size] [-J journal-options]
+//     [-G meta group size] [-N number-of-inodes]
+//     [-m reserved-blocks-percentage] [-o creator-os]
+//     [-g blocks-per-group] [-L volume-label] [-M last-mounted-directory]
+//     [-O feature[,...]] [-r fs-revision] [-E extended-option[,...]]
+//     [-T fs-type] [-U UUID] [-jnqvFSV] device [blocks-count]
 //
 // Options not commented below are taken but silently ignored:
 enum {
@@ -311,7 +311,7 @@ int mkfs_ext2_main(int argc UNUSED_PARAM, char **argv)
        nreserved = (uint64_t)nblocks * reserved_percent / 100;
 
        // N.B. killing e2fsprogs feature! Unused blocks don't account in calculations
-       nblocks_full = nblocks;
+       nblocks_full = nblocks;
 
        // If last block group is too small, nblocks may be decreased in order
        // to discard it, and control returns here to recalculate some
index 54c068d0be5a2afa9daaa400b6e0fe4d5e171ea7..a9a65aa0747177b4256278baf9e6e1997ddbb744 100644 (file)
@@ -208,7 +208,7 @@ int mkfs_vfat_main(int argc UNUSED_PARAM, char **argv)
        int dev;
        unsigned bytes_per_sect;
        unsigned sect_per_fat;
-       unsigned opts;
+       unsigned opts;
        uint16_t sect_per_track;
        uint8_t media_byte;
        uint8_t sect_per_clust;