All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/8] fdisk: kernel/bios sectors and heads need not be global
@ 2012-04-16  9:44 Davidlohr Bueso
  2012-04-23 10:39 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2012-04-16  9:44 UTC (permalink / raw)
  To: Karel Zak; +Cc: util-linux

From: Davidlohr Bueso <dave@gnu.org>

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
---
 fdisk/fdisk.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index 0954028..1c0d7d8 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -225,8 +225,7 @@ int	fd,				/* the disk */
 	partitions = 4;			/* maximum partition + 1 */
 
 unsigned int	user_cylinders, user_heads, user_sectors;
-unsigned int	pt_heads, pt_sectors;
-unsigned int	kern_heads, kern_sectors;
+unsigned int   pt_heads, pt_sectors;
 
 unsigned long long sector_offset = 1, extended_offset = 0, sectors;
 
@@ -998,10 +997,10 @@ update_sector_offset(void)
 void
 get_geometry(int fd, struct geom *g) {
 	unsigned long long llcyls, nsects = 0;
+	unsigned int kern_heads = 0, kern_sectors = 0;
 
 	get_topology(fd);
 	heads = cylinders = sectors = 0;
-	kern_heads = kern_sectors = 0;
 	pt_heads = pt_sectors = 0;
 
 	blkdev_get_geometry(fd, &kern_heads, &kern_sectors);
-- 
1.7.4.1





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/8] fdisk: kernel/bios sectors and heads need not be global
  2012-04-16  9:44 [PATCH 3/8] fdisk: kernel/bios sectors and heads need not be global Davidlohr Bueso
@ 2012-04-23 10:39 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2012-04-23 10:39 UTC (permalink / raw)
  To: Davidlohr Bueso; +Cc: util-linux

On Mon, Apr 16, 2012 at 11:44:39AM +0200, Davidlohr Bueso wrote:
> fdisk/fdisk.c |    5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-23 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-16  9:44 [PATCH 3/8] fdisk: kernel/bios sectors and heads need not be global Davidlohr Bueso
2012-04-23 10:39 ` Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.