line_ptr = line_buffer;
if (!fgets(line_buffer, LINE_LENGTH, stdin)) {
/* error or eof */
- bb_error_msg_and_die("\ngot EOF - exiting...");
+ bb_error_msg_and_die("\ngot EOF, exiting");
}
while (*line_ptr && !isgraph(*line_ptr))
line_ptr++;
{ "\x07" "HPFS/NTFS" }, /* OS/2 IFS, eg, HPFS or NTFS or QNX */
{ "\x0a" "OS/2 Boot Manager" },/* OS/2 Boot Manager */
{ "\x0b" "Win95 FAT32" },
- { "\x0c" "Win95 FAT32 (LBA)" },/* LBA really is `Extended Int 13h' */
+ { "\x0c" "Win95 FAT32 (LBA)" },/* LBA really is 'Extended Int 13h' */
{ "\x0e" "Win95 FAT16 (LBA)" },
{ "\x0f" "Win95 Ext'd (LBA)" },
{ "\x11" "Hidden FAT12" },
if (partitions >= MAXIMUM_PARTS) {
/* This is not a Linux restriction, but
this program uses arrays of size MAXIMUM_PARTS.
- Do not try to `improve' this test. */
+ Do not try to 'improve' this test. */
struct pte *pre = &ptes[partitions-1];
#ifdef CONFIG_FEATURE_FDISK_WRITABLE
printf(_("Warning: deleting partitions after %d\n"),
printf(_("Type 0 means free space to many systems\n"
"(but not to Linux). Having partitions of\n"
"type 0 is probably unwise. You can delete\n"
- "a partition using the `d' command.\n"));
+ "a partition using the 'd' command.\n"));
/* break; */
}
if (start > limit)
break;
if (start >= temp+units_per_sector && num_read) {
- printf(_("Sector %llu is already allocated\n"), (unsigned long long)temp);
+ printf(_("Sector %"OFF_FMT" is already allocated\n"), temp);
temp = start;
num_read = 0;
}
}
else
printf(_("Invalid partition number "
- "for type `%c'\n"), c);
+ "for type '%c'\n"), c);
}
}
}
printf("0x%03X:", i);
printf(" %02X", (unsigned char) pbuffer[i]);
if (l == MAX_PER_LINE - 1) {
- printf("\n");
+ puts("");
l = -1;
}
}
if (l > 0)
- printf("\n");
- printf("\n");
+ puts("");
+ puts("");
}
break;
case 'q':
close(fd);
- printf("\n");
+ puts("");
exit(0);
case 'r':
return;
char line[100], ptname[100], devname[120], *s;
int ma, mi, sz;
- procpt = bb_wfopen("/proc/partitions", "r");
+ procpt = fopen_or_warn("/proc/partitions", "r");
while (fgets(line, sizeof(line), procpt)) {
if (sscanf(line, " %d %d %d %[^\n ]",
break;
case 'q':
close(fd);
- printf("\n");
+ puts("");
return 0;
case 's':
#ifdef CONFIG_FEATURE_SUN_LABEL