fdisk: cosmetics, and removal of dead data
This commit is contained in:
parent
6eaf0a9883
commit
270d5d75f1
@ -86,8 +86,6 @@ struct partition {
|
||||
static const char unable_to_open[] ALIGN1 = "cannot open %s";
|
||||
static const char unable_to_read[] ALIGN1 = "cannot read from %s";
|
||||
static const char unable_to_seek[] ALIGN1 = "cannot seek on %s";
|
||||
static const char unable_to_write[] ALIGN1 = "cannot write to %s";
|
||||
static const char ioctl_error[] ALIGN1 = "BLKGETSIZE ioctl failed on %s";
|
||||
static void fdisk_fatal(const char *why) ATTRIBUTE_NORETURN;
|
||||
|
||||
enum label_type {
|
||||
@ -369,7 +367,7 @@ static ullong bb_BLKGETSIZE_sectors(int fd)
|
||||
unsigned long longsectors;
|
||||
|
||||
if (ioctl(fd, BLKGETSIZE64, &v64) == 0) {
|
||||
/* got bytes, convert to 512 byte sectors */
|
||||
/* Got bytes, convert to 512 byte sectors */
|
||||
return (v64 >> 9);
|
||||
}
|
||||
/* Needs temp of type long */
|
||||
@ -414,7 +412,7 @@ close_dev_fd(void)
|
||||
}
|
||||
|
||||
#if ENABLE_FEATURE_FDISK_WRITABLE
|
||||
/* read line; return 0 or first printable char */
|
||||
/* Read line; return 0 or first printable char */
|
||||
static int
|
||||
read_line(const char *prompt)
|
||||
{
|
||||
@ -435,7 +433,7 @@ read_line(const char *prompt)
|
||||
#endif
|
||||
|
||||
/*
|
||||
* return partition name - uses static storage
|
||||
* Return partition name - uses static storage
|
||||
*/
|
||||
static const char *
|
||||
partname(const char *dev, int pno, int lth)
|
||||
|
Loading…
x
Reference in New Issue
Block a user