summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/disklabel.c
diff options
context:
space:
mode:
authorisaki <isaki@NetBSD.org>2007-11-24 13:20:53 +0000
committerisaki <isaki@NetBSD.org>2007-11-24 13:20:53 +0000
commit1c038e6834cae6806ebb97ae00a41d67e4d72ae1 (patch)
treeeab430c54f7ca1bc68225b960a8f82356c93bf2f /sys/lib/libsa/disklabel.c
parent9ce1f92af748ec8139d3601fdf3b136b600eb57f (diff)
style, indent, and ANSI-fy.
Diffstat (limited to 'sys/lib/libsa/disklabel.c')
-rw-r--r--sys/lib/libsa/disklabel.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/lib/libsa/disklabel.c b/sys/lib/libsa/disklabel.c
index 6b6bf69e0e4..f6aca5a7c68 100644
--- a/sys/lib/libsa/disklabel.c
+++ b/sys/lib/libsa/disklabel.c
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.9 2005/12/11 12:24:46 christos Exp $ */
+/* $NetBSD: disklabel.c,v 1.10 2007/11/24 13:20:54 isaki Exp $ */
/*-
* Copyright (c) 1993
@@ -43,10 +43,9 @@
static char nolabel[] = "no disk label";
static char corruptedlabel[] = "disk label corrupted";
#endif
+
char *
-getdisklabel(buf, lp)
- const char *buf;
- struct disklabel *lp;
+getdisklabel(const char *buf, struct disklabel *lp)
{
const struct disklabel *dlp, *elp;
char *msg = NULL;
@@ -58,9 +57,9 @@ getdisklabel(buf, lp)
if (msg == NULL)
msg = nolabel;
} else if (dlp->d_npartitions > MAXPARTITIONS ||
- dkcksum(dlp) != 0)
+ dkcksum(dlp) != 0) {
msg = corruptedlabel;
- else {
+ } else {
(void)memcpy(lp, dlp, sizeof *lp);
msg = NULL;
break;