fdisk: sgi: use sector_t
PATCH 6/7 fdisk: sgi: use sector_t
From: Davidlohr Bueso <[email protected]>
Signed-off-by Davidlohr Bueso <[email protected]>
--- fdisk/fdisksgilabel.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
fdisk/fdisksgilabel.c +2 -2
@@ -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? */
Signature · 1 line
1.7.4.1