*: whitespace fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ struct globals {
|
||||
int n_evt;
|
||||
} FIX_ALIASING;
|
||||
#define G (*ptr_to_globals)
|
||||
#define act_tab (G.act_tab)
|
||||
#define act_tab (G.act_tab)
|
||||
#define n_act (G.n_act )
|
||||
#define evt_tab (G.evt_tab)
|
||||
#define n_evt (G.n_evt )
|
||||
|
@@ -36,7 +36,7 @@ struct format_descr {
|
||||
unsigned int device,head,track;
|
||||
};
|
||||
#define FDFMTBEG _IO(2,0x47)
|
||||
#define FDFMTTRK _IOW(2,0x48, struct format_descr)
|
||||
#define FDFMTTRK _IOW(2,0x48, struct format_descr)
|
||||
#define FDFMTEND _IO(2,0x49)
|
||||
#define FDGETPRM _IOR(2, 0x04, struct floppy_struct)
|
||||
#define FD_FILL_BYTE 0xF6 /* format fill byte. */
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
#define GPT_MAGIC 0x5452415020494645ULL
|
||||
enum {
|
||||
LEGACY_GPT_TYPE = 0xee,
|
||||
LEGACY_GPT_TYPE = 0xee,
|
||||
GPT_MAX_PARTS = 256,
|
||||
GPT_MAX_PART_ENTRY_LEN = 4096,
|
||||
GUID_LEN = 16,
|
||||
|
@@ -654,7 +654,7 @@ sun_list_table(int xtra)
|
||||
uint32_t start = SUN_SSWAP32(sunlabel->partitions[i].start_cylinder) * g_heads * g_sectors;
|
||||
uint32_t len = SUN_SSWAP32(sunlabel->partitions[i].num_sectors);
|
||||
printf("%s %c%c %9lu %9lu %9lu%c %2x %s\n",
|
||||
partname(disk_device, i+1, w), /* device */
|
||||
partname(disk_device, i+1, w), /* device */
|
||||
(sunlabel->infos[i].flags & 0x01) ? 'u' : ' ', /* flags */
|
||||
(sunlabel->infos[i].flags & 0x10) ? 'r' : ' ',
|
||||
(long) scround(start), /* start */
|
||||
|
@@ -43,7 +43,6 @@ typedef enum type_id {
|
||||
static int remove_ids(type_id type, int argc, char **argv)
|
||||
{
|
||||
unsigned long id;
|
||||
int ret = 0; /* silence gcc */
|
||||
int nb_errors = 0;
|
||||
union semun arg;
|
||||
|
||||
@@ -55,6 +54,7 @@ static int remove_ids(type_id type, int argc, char **argv)
|
||||
bb_error_msg("invalid id: %s", argv[0]);
|
||||
nb_errors++;
|
||||
} else {
|
||||
int ret = 0;
|
||||
if (type == SEM)
|
||||
ret = semctl(id, 0, IPC_RMID, arg);
|
||||
else if (type == MSG)
|
||||
@@ -92,14 +92,13 @@ int ipcrm_main(int argc, char **argv)
|
||||
type_id what = 0; /* silence gcc */
|
||||
char w;
|
||||
|
||||
w=argv[1][0];
|
||||
w = argv[1][0];
|
||||
if ( ((w == 'm' && argv[1][1] == 's' && argv[1][2] == 'g')
|
||||
|| (argv[1][0] == 's'
|
||||
&& ((w=argv[1][1]) == 'h' || w == 'e')
|
||||
&& ((w = argv[1][1]) == 'h' || w == 'e')
|
||||
&& argv[1][2] == 'm')
|
||||
) && argv[1][3] == '\0'
|
||||
) {
|
||||
|
||||
if (argc < 3)
|
||||
bb_show_usage();
|
||||
|
||||
|
@@ -11,8 +11,8 @@
|
||||
#include <linux/fs.h>
|
||||
#include <linux/ext2_fs.h>
|
||||
|
||||
#define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0
|
||||
#define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1
|
||||
#define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0
|
||||
#define ENABLE_FEATURE_MKFS_EXT2_DIR_INDEX 1
|
||||
|
||||
// from e2fsprogs
|
||||
#define s_reserved_gdt_blocks s_padding1
|
||||
|
@@ -28,7 +28,7 @@
|
||||
|
||||
#define ATTR_VOLUME 8
|
||||
|
||||
#define NUM_FATS 2
|
||||
#define NUM_FATS 2
|
||||
|
||||
/* FAT32 filesystem looks like this:
|
||||
* sector -nn...-1: "hidden" sectors, all sectors before this partition
|
||||
|
@@ -97,7 +97,7 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
|
||||
*/
|
||||
to_write = sizeof(int);
|
||||
if (!optMult)
|
||||
to_write = 1; /* sth different from sizeof(int) */
|
||||
to_write = 1; /* sth different from sizeof(int) */
|
||||
|
||||
fd = xopen(defaultpro, O_WRONLY);
|
||||
xwrite(fd, &multiplier, to_write);
|
||||
@@ -179,7 +179,7 @@ int readprofile_main(int argc UNUSED_PARAM, char **argv)
|
||||
if (*mode != 'T' && *mode != 't'
|
||||
&& *mode != 'W' && *mode != 'w'
|
||||
) {
|
||||
break; /* only text is profiled */
|
||||
break; /* only text is profiled */
|
||||
}
|
||||
|
||||
if (indx >= len / sizeof(*buf))
|
||||
|
@@ -50,7 +50,7 @@ static NOINLINE bool may_wakeup(const char *rtcname)
|
||||
static NOINLINE void setup_alarm(int fd, time_t *wakeup, time_t rtc_time)
|
||||
{
|
||||
struct tm *ptm;
|
||||
struct linux_rtc_wkalrm wake;
|
||||
struct linux_rtc_wkalrm wake;
|
||||
|
||||
/* The wakeup time is in POSIX time (more or less UTC).
|
||||
* Ideally RTCs use that same time; but PCs can't do that
|
||||
|
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* Based on code from util-linux v 2.12r
|
||||
* Copyright (c) 1980
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
*
|
||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user