diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-01 19:48:05 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-01 19:48:05 +0000 |
commit | 551ffdccea39a9223ad451954db40fd7a6e20e79 (patch) | |
tree | 0c5761879447442b166d3e7f4f414c1806a97852 | |
parent | bd79c3d337304a96dcce4ae4f97b36143919af10 (diff) | |
download | busybox-w32-551ffdccea39a9223ad451954db40fd7a6e20e79.tar.gz busybox-w32-551ffdccea39a9223ad451954db40fd7a6e20e79.tar.bz2 busybox-w32-551ffdccea39a9223ad451954db40fd7a6e20e79.zip |
more of pointless whitespace fixes
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/probe.h | 12 | ||||
-rw-r--r-- | include/platform.h | 2 | ||||
-rw-r--r-- | include/rtc_.h | 37 | ||||
-rw-r--r-- | miscutils/crond.c | 2 | ||||
-rw-r--r-- | miscutils/hdparm.c | 4 | ||||
-rw-r--r-- | networking/udhcp/leases.c | 2 | ||||
-rw-r--r-- | shell/ash.c | 2 | ||||
-rw-r--r-- | util-linux/fbset.c | 2 |
8 files changed, 31 insertions, 32 deletions
diff --git a/e2fsprogs/old_e2fsprogs/blkid/probe.h b/e2fsprogs/old_e2fsprogs/blkid/probe.h index 0fd16a771..ef289f505 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/probe.h +++ b/e2fsprogs/old_e2fsprogs/blkid/probe.h | |||
@@ -308,9 +308,9 @@ _INLINE_ __u32 blkid_swab32(__u32 val) | |||
308 | #ifdef EXT2FS_REQUIRE_486 | 308 | #ifdef EXT2FS_REQUIRE_486 |
309 | __asm__("bswap %0" : "=r" (val) : "0" (val)); | 309 | __asm__("bswap %0" : "=r" (val) : "0" (val)); |
310 | #else | 310 | #else |
311 | __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ | 311 | __asm__("xchgb %b0,%h0\n\t" /* swap lower bytes */ |
312 | "rorl $16,%0\n\t" /* swap words */ | 312 | "rorl $16,%0\n\t" /* swap words */ |
313 | "xchgb %b0,%h0" /* swap higher bytes */ | 313 | "xchgb %b0,%h0" /* swap higher bytes */ |
314 | :"=q" (val) | 314 | :"=q" (val) |
315 | : "0" (val)); | 315 | : "0" (val)); |
316 | #endif | 316 | #endif |
@@ -319,9 +319,9 @@ _INLINE_ __u32 blkid_swab32(__u32 val) | |||
319 | 319 | ||
320 | _INLINE_ __u16 blkid_swab16(__u16 val) | 320 | _INLINE_ __u16 blkid_swab16(__u16 val) |
321 | { | 321 | { |
322 | __asm__("xchgb %b0,%h0" /* swap bytes */ \ | 322 | __asm__("xchgb %b0,%h0" /* swap bytes */ |
323 | : "=q" (val) \ | 323 | : "=q" (val) |
324 | : "0" (val)); \ | 324 | : "0" (val)); |
325 | return val; | 325 | return val; |
326 | } | 326 | } |
327 | 327 | ||
diff --git a/include/platform.h b/include/platform.h index 5d6a18107..13dfcbd32 100644 --- a/include/platform.h +++ b/include/platform.h | |||
@@ -371,4 +371,4 @@ static ALWAYS_INLINE char* strchrnul(const char *s, char c) | |||
371 | #endif | 371 | #endif |
372 | #endif | 372 | #endif |
373 | 373 | ||
374 | #endif /* platform.h */ | 374 | #endif /* platform.h */ |
diff --git a/include/rtc_.h b/include/rtc_.h index 867edb3db..ae17ee7d4 100644 --- a/include/rtc_.h +++ b/include/rtc_.h | |||
@@ -44,27 +44,26 @@ struct linux_rtc_wkalrm { | |||
44 | * ioctl calls that are permitted to the /dev/rtc interface, if | 44 | * ioctl calls that are permitted to the /dev/rtc interface, if |
45 | * any of the RTC drivers are enabled. | 45 | * any of the RTC drivers are enabled. |
46 | */ | 46 | */ |
47 | #define RTC_AIE_ON _IO('p', 0x01) /* Alarm int. enable on */ | ||
48 | #define RTC_AIE_OFF _IO('p', 0x02) /* ... off */ | ||
49 | #define RTC_UIE_ON _IO('p', 0x03) /* Update int. enable on */ | ||
50 | #define RTC_UIE_OFF _IO('p', 0x04) /* ... off */ | ||
51 | #define RTC_PIE_ON _IO('p', 0x05) /* Periodic int. enable on */ | ||
52 | #define RTC_PIE_OFF _IO('p', 0x06) /* ... off */ | ||
53 | #define RTC_WIE_ON _IO('p', 0x0f) /* Watchdog int. enable on */ | ||
54 | #define RTC_WIE_OFF _IO('p', 0x10) /* ... off */ | ||
47 | 55 | ||
48 | #define RTC_AIE_ON _IO('p', 0x01) /* Alarm int. enable on */ | 56 | #define RTC_ALM_SET _IOW('p', 0x07, struct linux_rtc_time) /* Set alarm time */ |
49 | #define RTC_AIE_OFF _IO('p', 0x02) /* ... off */ | 57 | #define RTC_ALM_READ _IOR('p', 0x08, struct linux_rtc_time) /* Read alarm time */ |
50 | #define RTC_UIE_ON _IO('p', 0x03) /* Update int. enable on */ | 58 | #define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */ |
51 | #define RTC_UIE_OFF _IO('p', 0x04) /* ... off */ | 59 | #define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */ |
52 | #define RTC_PIE_ON _IO('p', 0x05) /* Periodic int. enable on */ | 60 | #define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) /* Read IRQ rate */ |
53 | #define RTC_PIE_OFF _IO('p', 0x06) /* ... off */ | 61 | #define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */ |
54 | #define RTC_WIE_ON _IO('p', 0x0f) /* Watchdog int. enable on */ | 62 | #define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) /* Read epoch */ |
55 | #define RTC_WIE_OFF _IO('p', 0x10) /* ... off */ | 63 | #define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) /* Set epoch */ |
56 | 64 | ||
57 | #define RTC_ALM_SET _IOW('p', 0x07, struct linux_rtc_time) /* Set alarm time */ | 65 | #define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/ |
58 | #define RTC_ALM_READ _IOR('p', 0x08, struct linux_rtc_time) /* Read alarm time */ | 66 | #define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/ |
59 | #define RTC_RD_TIME _IOR('p', 0x09, struct linux_rtc_time) /* Read RTC time */ | ||
60 | #define RTC_SET_TIME _IOW('p', 0x0a, struct linux_rtc_time) /* Set RTC time */ | ||
61 | #define RTC_IRQP_READ _IOR('p', 0x0b, unsigned long) /* Read IRQ rate */ | ||
62 | #define RTC_IRQP_SET _IOW('p', 0x0c, unsigned long) /* Set IRQ rate */ | ||
63 | #define RTC_EPOCH_READ _IOR('p', 0x0d, unsigned long) /* Read epoch */ | ||
64 | #define RTC_EPOCH_SET _IOW('p', 0x0e, unsigned long) /* Set epoch */ | ||
65 | |||
66 | #define RTC_WKALM_SET _IOW('p', 0x0f, struct linux_rtc_wkalrm)/* Set wakeup alarm*/ | ||
67 | #define RTC_WKALM_RD _IOR('p', 0x10, struct linux_rtc_wkalrm)/* Get wakeup alarm*/ | ||
68 | 67 | ||
69 | /* interrupt flags */ | 68 | /* interrupt flags */ |
70 | #define RTC_IRQF 0x80 /* any of the following is active */ | 69 | #define RTC_IRQF 0x80 /* any of the following is active */ |
diff --git a/miscutils/crond.c b/miscutils/crond.c index 2e158bcf0..804fe0b29 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -55,7 +55,7 @@ typedef struct CronLine { | |||
55 | #if ENABLE_FEATURE_CROND_CALL_SENDMAIL | 55 | #if ENABLE_FEATURE_CROND_CALL_SENDMAIL |
56 | int cl_MailPos; /* 'empty file' size */ | 56 | int cl_MailPos; /* 'empty file' size */ |
57 | smallint cl_MailFlag; /* running pid is for mail */ | 57 | smallint cl_MailFlag; /* running pid is for mail */ |
58 | char *cl_MailTo; /* whom to mail results */ | 58 | char *cl_MailTo; /* whom to mail results */ |
59 | #endif | 59 | #endif |
60 | /* ordered by size, not in natural order. makes code smaller: */ | 60 | /* ordered by size, not in natural order. makes code smaller: */ |
61 | char cl_Dow[7]; /* 0-6, beginning sunday */ | 61 | char cl_Dow[7]; /* 0-6, beginning sunday */ |
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index 5c1f6d54a..de5d68a04 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -59,7 +59,7 @@ | |||
59 | #define ADV_PIO_MODES 64 /* advanced PIO modes supported */ | 59 | #define ADV_PIO_MODES 64 /* advanced PIO modes supported */ |
60 | /* multiword DMA xfer cycle time: */ | 60 | /* multiword DMA xfer cycle time: */ |
61 | #define DMA_TIME_MIN 65 /* - minimum */ | 61 | #define DMA_TIME_MIN 65 /* - minimum */ |
62 | #define DMA_TIME_NORM 66 /* - manufacturer's recommended */ | 62 | #define DMA_TIME_NORM 66 /* - manufacturer's recommended */ |
63 | /* minimum PIO xfer cycle time: */ | 63 | /* minimum PIO xfer cycle time: */ |
64 | #define PIO_NO_FLOW 67 /* - without flow control */ | 64 | #define PIO_NO_FLOW 67 /* - without flow control */ |
65 | #define PIO_FLOW 68 /* - with IORDY flow control */ | 65 | #define PIO_FLOW 68 /* - with IORDY flow control */ |
@@ -82,7 +82,7 @@ | |||
82 | #define ENH_ERASE_TIME 90 /* - enhanced */ | 82 | #define ENH_ERASE_TIME 90 /* - enhanced */ |
83 | #define ADV_PWR 91 /* current advanced power management level | 83 | #define ADV_PWR 91 /* current advanced power management level |
84 | in low byte, 0x40 in high byte. */ | 84 | in low byte, 0x40 in high byte. */ |
85 | #define PSWD_CODE 92 /* master password revision code */ | 85 | #define PSWD_CODE 92 /* master password revision code */ |
86 | #define HWRST_RSLT 93 /* hardware reset result */ | 86 | #define HWRST_RSLT 93 /* hardware reset result */ |
87 | #define ACOUSTIC 94 /* acoustic mgmt values ( >= ATA-6) */ | 87 | #define ACOUSTIC 94 /* acoustic mgmt values ( >= ATA-6) */ |
88 | #define LBA_LSB 100 /* LBA: maximum. Currently only 48 */ | 88 | #define LBA_LSB 100 /* LBA: maximum. Currently only 48 */ |
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c index d62f32471..6e1398d2f 100644 --- a/networking/udhcp/leases.c +++ b/networking/udhcp/leases.c | |||
@@ -67,7 +67,7 @@ struct dhcpOfferedAddr* FAST_FUNC add_lease( | |||
67 | if (hostname_length > sizeof(oldest->hostname)) | 67 | if (hostname_length > sizeof(oldest->hostname)) |
68 | hostname_length = sizeof(oldest->hostname); | 68 | hostname_length = sizeof(oldest->hostname); |
69 | hostname = (uint8_t*) safe_strncpy((char*)oldest->hostname, (char*)hostname, hostname_length); | 69 | hostname = (uint8_t*) safe_strncpy((char*)oldest->hostname, (char*)hostname, hostname_length); |
70 | /* sanitization (s/non-ACSII/^/g) */ | 70 | /* sanitization (s/non-ASCII/^/g) */ |
71 | while (*hostname) { | 71 | while (*hostname) { |
72 | if (*hostname < ' ' || *hostname > 126) | 72 | if (*hostname < ' ' || *hostname > 126) |
73 | *hostname = '^'; | 73 | *hostname = '^'; |
diff --git a/shell/ash.c b/shell/ash.c index b63a243c9..4f7f38f6d 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -12619,7 +12619,7 @@ readcmd(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) | |||
12619 | if (c == '\n') | 12619 | if (c == '\n') |
12620 | break; | 12620 | break; |
12621 | /* $IFS splitting */ | 12621 | /* $IFS splitting */ |
12622 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05 */ | 12622 | /* http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05 */ |
12623 | is_ifs = strchr(ifs, c); | 12623 | is_ifs = strchr(ifs, c); |
12624 | if (startword && is_ifs) { | 12624 | if (startword && is_ifs) { |
12625 | if (isspace(c)) | 12625 | if (isspace(c)) |
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index e0081667f..affeab061 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -91,7 +91,7 @@ struct fb_var_screeninfo { | |||
91 | uint32_t height; /* height of picture in mm */ | 91 | uint32_t height; /* height of picture in mm */ |
92 | uint32_t width; /* width of picture in mm */ | 92 | uint32_t width; /* width of picture in mm */ |
93 | 93 | ||
94 | uint32_t accel_flags; /* acceleration flags (hints) */ | 94 | uint32_t accel_flags; /* acceleration flags (hints) */ |
95 | 95 | ||
96 | /* Timing: All values in pixclocks, except pixclock (of course) */ | 96 | /* Timing: All values in pixclocks, except pixclock (of course) */ |
97 | uint32_t pixclock; /* pixel clock in ps (pico seconds) */ | 97 | uint32_t pixclock; /* pixel clock in ps (pico seconds) */ |