whitespace fixes
authorDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Mar 2008 01:00:09 +0000 (01:00 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Fri, 28 Mar 2008 01:00:09 +0000 (01:00 -0000)
archival/rpm2cpio.c
libbb/md5.c
miscutils/devfsd.c
networking/ifenslave.c
networking/ip.c
util-linux/getopt.c
util-linux/volume_id/hfs.c

index 329f8f71d21e5df1e010bd7340a9bd5e9a9b1723..ee938716f1437c3d1dbdb7a7c6b17229aeb49e8c 100644 (file)
 #define RPM_HEADER_MAGIC "\216\255\350"
 
 struct rpm_lead {
-    unsigned char magic[4];
-    uint8_t major, minor;
-    uint16_t type;
-    uint16_t archnum;
-    char name[66];
-    uint16_t osnum;
-    uint16_t signature_type;
-    char reserved[16];
+       unsigned char magic[4];
+       uint8_t major, minor;
+       uint16_t type;
+       uint16_t archnum;
+       char name[66];
+       uint16_t osnum;
+       uint16_t signature_type;
+       char reserved[16];
 };
 
 struct rpm_header {
index 9de37b9e4b294b2c809f3d4f8e9ceee072ecc2dd..56f97270d008e8459a4783c869abfd9e191b1a44 100644 (file)
@@ -206,15 +206,13 @@ static void md5_hash_block(const void *buffer, md5_ctx_t *ctx)
                   before the computation.  To reduce the work for the next steps
                   we store the swapped words in the array CORRECT_WORDS.  */
 
-#  define OP(a, b, c, d, s, T) \
-      do       \
-       {       \
-         a += FF (b, c, d) + (*cwp++ = SWAP_LE32(*words)) + T; \
-         ++words;      \
-         CYCLIC (a, s);        \
-         a += b;       \
-       }       \
-      while (0)
+#  define OP(a, b, c, d, s, T) \
+       do { \
+               a += FF (b, c, d) + (*cwp++ = SWAP_LE32(*words)) + T; \
+               ++words; \
+               CYCLIC (a, s); \
+               a += b; \
+       } while (0)
 
                /* It is unfortunate that C does not provide an operator for
                   cyclic rotation.  Hope the C compiler is smart enough.  */
@@ -265,14 +263,12 @@ static void md5_hash_block(const void *buffer, md5_ctx_t *ctx)
                   in CORRECT_WORDS.  Redefine the macro to take an additional first
                   argument specifying the function to use.  */
 #  undef OP
-#  define OP(f, a, b, c, d, k, s, T)   \
-      do       \
-       {       \
-         a += f (b, c, d) + correct_words[k] + T;      \
-         CYCLIC (a, s);        \
-         a += b;       \
-       }       \
-      while (0)
+#  define OP(f, a, b, c, d, k, s, T) \
+       do { \
+               a += f (b, c, d) + correct_words[k] + T; \
+               CYCLIC (a, s); \
+               a += b; \
+       } while (0)
 
                /* Round 2.  */
 #  if MD5_SIZE_VS_SPEED == 1
index 1b88f050e85cc1d0f0d6b0181e345875970503c0..bb6b679b9cfdf3919034bda0a04153a1e6dbe67d 100644 (file)
 /*  Never change this otherwise the binary interface will change   */
 
 struct devfsd_notify_struct
-{   /*  Use native C types to ensure same types in kernel and user space     */
-    unsigned int type;           /*  DEVFSD_NOTIFY_* value                   */
-    unsigned int mode;           /*  Mode of the inode or device entry       */
-    unsigned int major;          /*  Major number of device entry            */
-    unsigned int minor;          /*  Minor number of device entry            */
-    unsigned int uid;            /*  Uid of process, inode or device entry   */
-    unsigned int gid;            /*  Gid of process, inode or device entry   */
-    unsigned int overrun_count;  /*  Number of lost events                   */
-    unsigned int namelen;        /*  Number of characters not including '\0' */
-    /*  The device name MUST come last                                       */
-    char devname[DEVFS_PATHLEN]; /*  This will be '\0' terminated            */
+{      /*  Use native C types to ensure same types in kernel and user space     */
+       unsigned int type;           /*  DEVFSD_NOTIFY_* value                   */
+       unsigned int mode;           /*  Mode of the inode or device entry       */
+       unsigned int major;          /*  Major number of device entry            */
+       unsigned int minor;          /*  Minor number of device entry            */
+       unsigned int uid;            /*  Uid of process, inode or device entry   */
+       unsigned int gid;            /*  Gid of process, inode or device entry   */
+       unsigned int overrun_count;  /*  Number of lost events                   */
+       unsigned int namelen;        /*  Number of characters not including '\0' */
+       /*  The device name MUST come last                                       */
+       char devname[DEVFS_PATHLEN]; /*  This will be '\0' terminated            */
 };
 
 #define BUFFER_SIZE 16384
index 875e835e7ee0047ccdd0c2e499f61f118e89d9de..b11951758415fbee1e2072a762af06698dacecaf 100644 (file)
@@ -129,7 +129,7 @@ struct globals {
 #define master     (G.master    )
 #define slave      (G.slave     )
 #define INIT_G() do { \
-        SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
+       SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \
 } while (0)
 
 
index bb409c5ce4725c75b74666d6cb9565f2ddd6def7..5249217eb37a8bcc15fc2bb18d52e788a5afc69a 100644 (file)
@@ -39,35 +39,35 @@ static int ip_do(int (*ip_func)(char **argv), char **argv)
 int ipaddr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int ipaddr_main(int argc ATTRIBUTE_UNUSED, char **argv)
 {
-    return ip_do(do_ipaddr, argv);
+       return ip_do(do_ipaddr, argv);
 }
 #endif
 #if ENABLE_FEATURE_IP_LINK
 int iplink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int iplink_main(int argc ATTRIBUTE_UNUSED, char **argv)
 {
-    return ip_do(do_iplink, argv);
+       return ip_do(do_iplink, argv);
 }
 #endif
 #if ENABLE_FEATURE_IP_ROUTE
 int iproute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int iproute_main(int argc ATTRIBUTE_UNUSED, char **argv)
 {
-    return ip_do(do_iproute, argv);
+       return ip_do(do_iproute, argv);
 }
 #endif
 #if ENABLE_FEATURE_IP_RULE
 int iprule_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int iprule_main(int argc ATTRIBUTE_UNUSED, char **argv)
 {
-    return ip_do(do_iprule, argv);
+       return ip_do(do_iprule, argv);
 }
 #endif
 #if ENABLE_FEATURE_IP_TUNNEL
 int iptunnel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int iptunnel_main(int argc ATTRIBUTE_UNUSED, char **argv)
 {
-    return ip_do(do_iptunnel, argv);
+       return ip_do(do_iptunnel, argv);
 }
 #endif
 
index 6ec5cb0cd62d40ec3db5ffb1c743b25a9b2234ed..2da348176abf65eaf9e19681a6a240ca25e04e5b 100644 (file)
@@ -158,10 +158,10 @@ static int generate_output(char **argv, int argc, const char *optstr, const stru
 
        /* Reset getopt(3) (see libbb/getopt32.c for long rant) */
 #ifdef __GLIBC__
-        optind = 0;
+       optind = 0;
 #else /* BSD style */
-        optind = 1;
-        /* optreset = 1; */
+       optind = 1;
+       /* optreset = 1; */
 #endif
 
        while (1) {
index a7667f72579ae6a559655446ba80bc9921f4885b..79658e4fa1cc1ce2419fabb83b94f0468d3f490c 100644 (file)
@@ -160,7 +160,7 @@ int volume_id_probe_hfs_hfsplus(struct volume_id *id, uint64_t off)
 
        buf = volume_id_get_buffer(id, off + HFS_SUPERBLOCK_OFFSET, 0x200);
        if (buf == NULL)
-                return -1;
+               return -1;
 
        hfs = (struct hfs_mdb *) buf;
        if (hfs->signature[0] != 'B' || hfs->signature[1] != 'D')