From: Davidlohr Bueso Date: Sun, 27 May 2012 19:44:20 +0000 (+0200) Subject: fdisk: sgi: use sector_t X-Git-Tag: v2.22-rc1~307 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9d7e0140f26bf5093b086bb365f36946bf38c49;p=thirdparty%2Futil-linux.git fdisk: sgi: use sector_t Signed-off-by: Davidlohr Bueso --- diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c index 3ef9d69c24..14e3443cfb 100644 --- a/fdisk/fdisksgilabel.c +++ b/fdisk/fdisksgilabel.c @@ -691,7 +691,7 @@ create_sgilabel(struct fdisk_context *cxt) int sysid; } old[4]; int i=0; - unsigned long long llsectors; + sector_t llsectors; int res; /* the result from the ioctl */ int sec_fac; /* the sector factor */ @@ -712,7 +712,7 @@ create_sgilabel(struct fdisk_context *cxt) sectors = geometry.sectors; if (res == 0) { /* the get device size ioctl was successful */ - unsigned long long llcyls; + sector_t llcyls; llcyls = llsectors / (heads * sectors * sec_fac); cylinders = llcyls; if (cylinders != llcyls) /* truncated? */