aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpt.c')
-rw-r--r--src/gpt.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gpt.c b/src/gpt.c
index af68525..3759614 100644
--- a/src/gpt.c
+++ b/src/gpt.c
@@ -6,10 +6,13 @@
*
*/
-static char rcsid[] = "$Id: gpt.c,v 1.7 2007/10/16 10:07:49 james Exp $";
+static char rcsid[] = "$Id: gpt.c,v 1.8 2007/10/16 10:20:57 james Exp $";
/*
* $Log: gpt.c,v $
+ * Revision 1.8 2007/10/16 10:20:57 james
+ * *** empty log message ***
+ *
* Revision 1.7 2007/10/16 10:07:49 james
* *** empty log message ***
*
@@ -85,7 +88,8 @@ main (int argc, char *argv[])
break;
case 'e':
if (!d) usage();
- printf("%lld\n",(long long) disk_lbas(d));
+ h=headers_get(d);
+ printf("%lld\n",(long long) h.header.last_usable_lba);
return 0;
case 's':
if (!d) usage();