Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib/utils/sysinst whitespace and comment cleanup.



details:   https://anonhg.NetBSD.org/src/rev/265645e0c483
branches:  trunk
changeset: 534527:265645e0c483
user:      grant <grant%NetBSD.org@localhost>
date:      Mon Jul 29 01:30:25 2002 +0000

description:
whitespace and comment cleanup.

diffstat:

 distrib/utils/sysinst/label.c |  48 +++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diffs (100 lines):

diff -r 19d8c71eb872 -r 265645e0c483 distrib/utils/sysinst/label.c
--- a/distrib/utils/sysinst/label.c     Mon Jul 29 01:08:29 2002 +0000
+++ b/distrib/utils/sysinst/label.c     Mon Jul 29 01:30:25 2002 +0000
@@ -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
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #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
 
 #include <sys/types.h>
@@ -64,8 +64,8 @@
 
 
 /*
- * Return 1 iff partition i in lp should be ignored when checking
- * for  overlapping partitions.
+ * Return 1 if partition i in lp should be ignored when checking
+ * for overlapping partitions.
  */
 static int
 boringpart(lp, i, rawpart, bsdpart)
@@ -156,26 +156,26 @@
        int rawpart;
        int bsdpart;
 {
-        while (1) {
-                int i, j;
+       while (1) {
+               int i, j;
 
-                /* first give the user the option to edit the label... */
-                process_menu(MENU_fspartok);
+               /* first give the user the option to edit the label... */
+               process_menu(MENU_fspartok);
 
-                /* User thinks the label is OK. check for overlaps.*/
-                if (checklabel(lp, nparts, rawpart, bsdpart, &i, &j) == 0) {
-                       /* partitions are OK. */
-                        return (1);
-                }
+               /* User thinks the label is OK. check for overlaps */
+               if (checklabel(lp, nparts, rawpart, bsdpart, &i, &j) == 0) {
+                       /* partitions are OK */
+                       return (1);
+               }
                 
-                /* partitions overlap. */
-                msg_display(MSG_partitions_overlap, 'a' + i, 'a' + j);
-                /*XXX*/
-                msg_display_add(MSG_edit_partitions_again);
-                process_menu(MENU_yesno);
-                if (!yesno)
-                        return(0);
-        }
+               /* partitions overlap */
+               msg_display(MSG_partitions_overlap, 'a' + i, 'a' + j);
+               /*XXX*/
+               msg_display_add(MSG_edit_partitions_again);
+               process_menu(MENU_yesno);
+               if (!yesno)
+                       return(0);
+       }
 
        /*NOTREACHED*/
 }
@@ -324,7 +324,7 @@
        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
 getpartoff(msg_no, defpartstart)
        msg msg_no;
@@ -368,7 +368,7 @@
 }
 
 
-/* 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
 getpartsize(msg_no, partstart, defpartsize)
        msg msg_no;
@@ -428,7 +428,7 @@
  * 2000c = 2000 cylinders
  * 150256s = 150256 sectors
  * 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



Home | Main Index | Thread Index | Old Index