* [PATCH 6/7] fdisk: sgi: use sector_t
@ 2012-05-27 19:44 Davidlohr Bueso
0 siblings, 0 replies; only message in thread
From: Davidlohr Bueso @ 2012-05-27 19:44 UTC (permalink / raw)
To: Karel Zak, Petr Uzel; +Cc: util-linux
From: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
fdisk/fdisksgilabel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c
index 3ef9d69..14e3443 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? */
--
1.7.4.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-27 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-27 19:44 [PATCH 6/7] fdisk: sgi: use sector_t Davidlohr Bueso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox