Minor cleanup from Garrett Kajmowicz.
This commit is contained in:
@@ -37,8 +37,6 @@
|
|||||||
|
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
|
|
||||||
#define MAKE_VERSION(p,q,r) (65536*(p) + 256*(q) + (r))
|
|
||||||
|
|
||||||
#define DKTYPENAMES
|
#define DKTYPENAMES
|
||||||
|
|
||||||
#define BLKRRPART _IO(0x12,95) /* re-read partition table */
|
#define BLKRRPART _IO(0x12,95) /* re-read partition table */
|
||||||
@@ -3977,8 +3975,7 @@ create_doslabel(void)
|
|||||||
static void
|
static void
|
||||||
get_sectorsize(void)
|
get_sectorsize(void)
|
||||||
{
|
{
|
||||||
if (!user_set_sector_size
|
if (!user_set_sector_size) {
|
||||||
&& get_kernel_revision() >= MAKE_VERSION(2,3,3)) {
|
|
||||||
int arg;
|
int arg;
|
||||||
if (ioctl(fd, BLKSSZGET, &arg) == 0)
|
if (ioctl(fd, BLKSSZGET, &arg) == 0)
|
||||||
sector_size = arg;
|
sector_size = arg;
|
||||||
|
Reference in New Issue
Block a user