Module Name: src
Committed By: martin
Date: Sat Dec 10 16:13:19 UTC 2022
Modified Files:
src/usr.sbin/sysinst: label.c
Log Message:
Comment and code style (cosmetic) changes, no functional change
To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/usr.sbin/sysinst/label.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/label.c
diff -u src/usr.sbin/sysinst/label.c:1.43 src/usr.sbin/sysinst/label.c:1.44
--- src/usr.sbin/sysinst/label.c:1.43 Wed Nov 30 15:53:35 2022
+++ src/usr.sbin/sysinst/label.c Sat Dec 10 16:13:19 2022
@@ -1,4 +1,4 @@
-/* $NetBSD: label.c,v 1.43 2022/11/30 15:53:35 martin Exp $ */
+/* $NetBSD: label.c,v 1.44 2022/12/10 16:13:19 martin 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.43 2022/11/30 15:53:35 martin Exp $");
+__RCSID("$NetBSD: label.c,v 1.44 2022/12/10 16:13:19 martin Exp $");
#endif
#include <sys/types.h>
@@ -795,7 +795,7 @@ edit_fs_type(menudesc *menu, void *arg)
if (opts == NULL)
return 0;
- /* special case entry 0 and 1: three FFS entries */
+ /* special case entry 0 - 2: three FFS entries */
for (i = 0; i < __arraycount(edit_fs_common_types); i++) {
opts[i+2].opt_name = getfslabelname(edit_fs_common_types[i], 0);
opts[i+2].opt_action = set_fstype;
@@ -1190,16 +1190,17 @@ draw_edit_ptn_line(menudesc *m, int opt,
if (opt < 4) {
switch (opt) {
case 0:
- if (edit->info.fs_type == FS_BSDFFS)
+ if (edit->info.fs_type == FS_BSDFFS) {
if (edit->info.fs_sub_type == 3)
c = msg_string(MSG_fs_type_ffsv2ea);
else if (edit->info.fs_sub_type == 2)
c = msg_string(MSG_fs_type_ffsv2);
else
c = msg_string(MSG_fs_type_ffs);
- else
+ } else {
c = getfslabelname(edit->info.fs_type,
edit->info.fs_sub_type);
+ }
wprintw(m->mw, "%*s : %s", col_width, ptn_type, c);
return;
case 1: