Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst minor KNF.
details: https://anonhg.NetBSD.org/src/rev/c4f2971d48f8
branches: trunk
changeset: 500131:c4f2971d48f8
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Dec 06 04:53:37 2000 +0000
description:
minor KNF.
diffstat:
distrib/utils/sysinst/disks.c | 27 +++++++++++++--------------
1 files changed, 13 insertions(+), 14 deletions(-)
diffs (97 lines):
diff -r 4e22c8f2e7f8 -r c4f2971d48f8 distrib/utils/sysinst/disks.c
--- a/distrib/utils/sysinst/disks.c Wed Dec 06 03:37:30 2000 +0000
+++ b/distrib/utils/sysinst/disks.c Wed Dec 06 04:53:37 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disks.c,v 1.37 2000/11/14 13:27:49 fvdl Exp $ */
+/* $NetBSD: disks.c,v 1.38 2000/12/06 04:53:37 mrg Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -71,7 +71,8 @@
const char *mntpt);
-static void get_disks(void)
+static void
+get_disks(void)
{
char **xd = disk_names;
char d_name[SSTRSIZE];
@@ -101,7 +102,8 @@
}
-int find_disks(void)
+int
+find_disks(void)
{
char *tp;
char defname[STRSIZE];
@@ -173,7 +175,8 @@
}
-void disp_cur_fspart(int disp, int showall)
+void
+disp_cur_fspart(int disp, int showall)
{
int i;
int start, stop;
@@ -215,7 +218,6 @@
msg_display_add(MSG_newline);
}
-
/*
* Label a disk using an MD-specific string DISKLABEL_CMD for
* to invoke disklabel.
@@ -227,7 +229,8 @@
* Sun ports should use DISKLABEL_CMD "/sbin/disklabel -w"
* to get incore to ondisk inode translation for the Sun proms.
*/
-int write_disklabel (void)
+int
+write_disklabel (void)
{
#ifdef DISKLABEL_CMD
@@ -238,9 +241,8 @@
return 0;
}
-
-
-int make_filesystems(void)
+int
+make_filesystems(void)
{
int i;
char partname[STRSIZE];
@@ -263,7 +265,6 @@
return 0;
}
-
/* newfs and mount an ffs filesystem. */
static int
do_ffs_newfs(const char *partname, int partno, const char *mountpoint)
@@ -290,7 +291,8 @@
return error;
}
-int make_fstab(void)
+int
+make_fstab(void)
{
FILE *f;
int i;
@@ -502,9 +504,6 @@
return error;
}
-
-
-
/*
* fsck and mount the root partition.
*/
Home |
Main Index |
Thread Index |
Old Index