Module Name:    src
Committed By:   tsutsui
Date:           Sat Jul 16 23:49:10 UTC 2011

Modified Files:
        src/distrib/utils/sysinst/arch/news68k: md.c

Log Message:
Some style nits.


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/distrib/utils/sysinst/arch/news68k/md.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/utils/sysinst/arch/news68k/md.c
diff -u src/distrib/utils/sysinst/arch/news68k/md.c:1.32 src/distrib/utils/sysinst/arch/news68k/md.c:1.33
--- src/distrib/utils/sysinst/arch/news68k/md.c:1.32	Mon Apr  4 08:30:37 2011
+++ src/distrib/utils/sysinst/arch/news68k/md.c	Sat Jul 16 23:49:10 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: md.c,v 1.32 2011/04/04 08:30:37 mbalmer Exp $	*/
+/*	$NetBSD: md.c,v 1.33 2011/07/16 23:49:10 tsutsui Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -57,6 +57,7 @@
 void
 md_init_set_status(int flags)
 {
+
 	(void)flags;
 }
 
@@ -67,17 +68,17 @@
 	int fd;
 	char dev_name[100];
 
-	snprintf (dev_name, 100, "/dev/r%sc", diskdev);
+	snprintf(dev_name, sizeof(dev_name), "/dev/r%sc", diskdev);
 
-	fd = open (dev_name, O_RDONLY, 0);
+	fd = open(dev_name, O_RDONLY, 0);
 	if (fd < 0) {
 		endwin();
-		fprintf (stderr, "Can't open %s\n", dev_name);
+		fprintf(stderr, "Can't open %s\n", dev_name);
 		exit(1);
 	}
 	if (ioctl(fd, DIOCGDINFO, &disklabel) == -1) {
 		endwin();
-		fprintf (stderr, "Can't read disklabel on %s.\n", dev_name);
+		fprintf(stderr, "Can't read disklabel on %s.\n", dev_name);
 		close(fd);
 		exit(1);
 	}
@@ -95,7 +96,7 @@
 	 * (If our new label's RAW_PART size ends up smaller than the
 	 * in-core RAW_PART size  value, updating the label will fail.)
 	 */
-	dlsize = dlcyl*dlhead*dlsec;
+	dlsize = dlcyl * dlhead * dlsec;
 	if (disklabel.d_secperunit > dlsize)
 		dlsize = disklabel.d_secperunit;
 
@@ -108,6 +109,7 @@
 int
 md_make_bsd_partitions(void)
 {
+
 	return make_bsd_partitions();
 }
 
@@ -117,6 +119,7 @@
 int
 md_check_partitions(void)
 {
+
 	return 1;
 }
 
@@ -126,6 +129,7 @@
 int
 md_pre_disklabel(void)
 {
+
 	return 0;
 }
 
@@ -135,6 +139,7 @@
 int
 md_post_disklabel(void)
 {
+
 	return 0;
 }
 
@@ -161,12 +166,14 @@
 int
 md_post_extract(void)
 {
+
 	return 0;
 }
 
 void
 md_cleanup_install(void)
 {
+
 #ifndef DEBUG
 	enable_rc_conf();
 #endif
@@ -175,6 +182,7 @@
 int
 md_pre_update(void)
 {
+
 	return 1;
 }
 
@@ -182,6 +190,7 @@
 int
 md_update(void)
 {
+
 	md_post_newfs();
 	return 1;
 }

Reply via email to