From: Davidlohr Bueso <dave@gnu.org>
To: Karel Zak <kzak@redhat.com>, Petr Uzel <petr.uzel@suse.cz>
Cc: util-linux <util-linux@vger.kernel.org>
Subject: [PATCH 6/7] fdisk: sgi: use sector_t
Date: Sun, 27 May 2012 21:44:20 +0200 [thread overview]
Message-ID: <1338147860.22474.5.camel@offbook> (raw)
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
reply other threads:[~2012-05-27 19:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1338147860.22474.5.camel@offbook \
--to=dave@gnu.org \
--cc=kzak@redhat.com \
--cc=petr.uzel@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox