svn commit: trunk/busybox: archival libbb miscutils networking util etc...
vda at busybox.net
vda at busybox.net
Fri Mar 28 01:00:10 UTC 2008
Author: vda
Date: 2008-03-27 18:00:09 -0700 (Thu, 27 Mar 2008)
New Revision: 21523
Log:
whitespace fixes
Modified:
trunk/busybox/archival/rpm2cpio.c
trunk/busybox/libbb/md5.c
trunk/busybox/miscutils/devfsd.c
trunk/busybox/networking/ifenslave.c
trunk/busybox/networking/ip.c
trunk/busybox/util-linux/getopt.c
trunk/busybox/util-linux/volume_id/hfs.c
Changeset:
Modified: trunk/busybox/archival/rpm2cpio.c
===================================================================
--- trunk/busybox/archival/rpm2cpio.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/archival/rpm2cpio.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -13,14 +13,14 @@
#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 {
Modified: trunk/busybox/libbb/md5.c
===================================================================
--- trunk/busybox/libbb/md5.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/libbb/md5.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -206,15 +206,13 @@
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 @@
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
Modified: trunk/busybox/miscutils/devfsd.c
===================================================================
--- trunk/busybox/miscutils/devfsd.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/miscutils/devfsd.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -93,17 +93,17 @@
/* 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
Modified: trunk/busybox/networking/ifenslave.c
===================================================================
--- trunk/busybox/networking/ifenslave.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/networking/ifenslave.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -129,7 +129,7 @@
#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)
Modified: trunk/busybox/networking/ip.c
===================================================================
--- trunk/busybox/networking/ip.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/networking/ip.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -39,35 +39,35 @@
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
Modified: trunk/busybox/util-linux/getopt.c
===================================================================
--- trunk/busybox/util-linux/getopt.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/util-linux/getopt.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -158,10 +158,10 @@
/* 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) {
Modified: trunk/busybox/util-linux/volume_id/hfs.c
===================================================================
--- trunk/busybox/util-linux/volume_id/hfs.c 2008-03-27 22:45:44 UTC (rev 21522)
+++ trunk/busybox/util-linux/volume_id/hfs.c 2008-03-28 01:00:09 UTC (rev 21523)
@@ -160,7 +160,7 @@
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')
More information about the busybox-cvs
mailing list