whitespace and comment cleanup.

This commit is contained in:
grant 2002-07-29 01:30:25 +00:00
parent fbbf252d3c
commit 39427aa237

View File

@ -1,4 +1,4 @@
/* $NetBSD: label.c,v 1.20 2002/07/26 01:00:41 wiz Exp $ */ /* $NetBSD: label.c,v 1.21 2002/07/29 01:30:25 grant Exp $ */
/* /*
* Copyright 1997 Jonathan Stone * Copyright 1997 Jonathan Stone
@ -36,7 +36,7 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint) #if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: label.c,v 1.20 2002/07/26 01:00:41 wiz Exp $"); __RCSID("$NetBSD: label.c,v 1.21 2002/07/29 01:30:25 grant Exp $");
#endif #endif
#include <sys/types.h> #include <sys/types.h>
@ -64,7 +64,7 @@ void atofsb (const char *, int *, int *);
/* /*
* Return 1 iff partition i in lp should be ignored when checking * Return 1 if partition i in lp should be ignored when checking
* for overlapping partitions. * for overlapping partitions.
*/ */
static int static int
@ -162,13 +162,13 @@ edit_and_check_label(lp, nparts, rawpart, bsdpart)
/* first give the user the option to edit the label... */ /* first give the user the option to edit the label... */
process_menu(MENU_fspartok); process_menu(MENU_fspartok);
/* User thinks the label is OK. check for overlaps.*/ /* User thinks the label is OK. check for overlaps */
if (checklabel(lp, nparts, rawpart, bsdpart, &i, &j) == 0) { if (checklabel(lp, nparts, rawpart, bsdpart, &i, &j) == 0) {
/* partitions are OK. */ /* partitions are OK */
return (1); return (1);
} }
/* partitions overlap. */ /* partitions overlap */
msg_display(MSG_partitions_overlap, 'a' + i, 'a' + j); msg_display(MSG_partitions_overlap, 'a' + i, 'a' + j);
/*XXX*/ /*XXX*/
msg_display_add(MSG_edit_partitions_again); msg_display_add(MSG_edit_partitions_again);
@ -324,7 +324,7 @@ incorelabel(dkname, lp)
return (0); return (0);
} }
/* Ask for a partition offset, check bounds and do the needed roudups */ /* Ask for a partition offset, check bounds and do the needed roundups */
int int
getpartoff(msg_no, defpartstart) getpartoff(msg_no, defpartstart)
msg msg_no; msg msg_no;
@ -368,7 +368,7 @@ getpartoff(msg_no, defpartstart)
} }
/* Ask for a partition size, check bounds and does the needed roudups */ /* Ask for a partition size, check bounds and does the needed roundups */
int int
getpartsize(msg_no, partstart, defpartsize) getpartsize(msg_no, partstart, defpartsize)
msg msg_no; msg msg_no;
@ -428,7 +428,7 @@ getpartsize(msg_no, partstart, defpartsize)
* 2000c = 2000 cylinders * 2000c = 2000 cylinders
* 150256s = 150256 sectors * 150256s = 150256 sectors
* Without units, use the default (sizemult) * Without units, use the default (sizemult)
* returns the number of sectors, and the unit used (for roudups). * returns the number of sectors, and the unit used (for roundups).
*/ */
void void