summaryrefslogtreecommitdiffstats
path: root/fdisk/fdisksgilabel.c
diff options
context:
space:
mode:
authorDavidlohr Bueso2012-05-27 21:44:20 +0200
committerKarel Zak2012-06-06 10:12:01 +0200
commitc9d7e0140f26bf5093b086bb365f36946bf38c49 (patch)
tree07a96171620b0abd44d658cd58f82d527048373f /fdisk/fdisksgilabel.c
parentfdisk: dos: use sector_t (diff)
downloadkernel-qcow2-util-linux-c9d7e0140f26bf5093b086bb365f36946bf38c49.tar.gz
kernel-qcow2-util-linux-c9d7e0140f26bf5093b086bb365f36946bf38c49.tar.xz
kernel-qcow2-util-linux-c9d7e0140f26bf5093b086bb365f36946bf38c49.zip
fdisk: sgi: use sector_t
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Diffstat (limited to 'fdisk/fdisksgilabel.c')
-rw-r--r--fdisk/fdisksgilabel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c
index 3ef9d69c2..14e3443cf 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? */