aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-02 22:46:44 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-02 22:46:44 +0000
commit204ae37859853c3affc5339120837a24459e7cbd (patch)
tree6d33b4d01ae461ca3a9f37b185d99fe6bcff3b98
parent56dde750d593763c5218cf06f710ec60b50a910a (diff)
downloadsrc-204ae37859853c3affc5339120837a24459e7cbd.tar.gz
src-204ae37859853c3affc5339120837a24459e7cbd.zip
bsd_disklabel_le_dec() takes an extra argument now.
Notes
Notes: svn path=/head/; revision=114557
-rw-r--r--sbin/bsdlabel/bsdlabel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index 2881a4d39139..50fb76d1cbcb 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -413,7 +413,8 @@ readlabel(int f)
(void)lseek(f, (off_t)0, SEEK_SET);
if (read(f, bootarea, BBSIZE) < BBSIZE)
err(4, "%s", specname);
- bsd_disklabel_le_dec((u_char *)bootarea + labeloffset, &lab);
+ bsd_disklabel_le_dec((u_char *)bootarea + labeloffset, &lab,
+ MAXPARTITIONS);
return (&lab);
}