Some KNF adn ANSIfy.

This commit is contained in:
tsutsui 2006-03-21 02:06:31 +00:00
parent dc8b8e8df8
commit f543e0f10e
1 changed files with 16 additions and 12 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: md.c,v 1.24 2006/02/26 10:25:53 dsl Exp $ */ /* $NetBSD: md.c,v 1.25 2006/03/21 02:06:31 tsutsui Exp $ */
/* /*
* Copyright 1997 Piermont Information Systems Inc. * Copyright 1997 Piermont Information Systems Inc.
@ -60,7 +60,7 @@
void get_labelname(void); void get_labelname(void);
void void
get_labelname() get_labelname(void)
{ {
/* Disk name */ /* Disk name */
@ -68,7 +68,7 @@ get_labelname()
} }
int int
md_get_info() md_get_info(void)
{ {
struct disklabel disklabel; struct disklabel disklabel;
int fd; int fd;
@ -113,8 +113,9 @@ md_get_info()
* hook called before writing new disklabel. * hook called before writing new disklabel.
*/ */
int int
md_pre_disklabel() md_pre_disklabel(void)
{ {
return 0; return 0;
} }
@ -124,6 +125,7 @@ md_pre_disklabel()
int int
md_post_disklabel(void) md_post_disklabel(void)
{ {
return 0; return 0;
} }
@ -137,7 +139,7 @@ md_post_disklabel(void)
* On the news68k, we use this opportunity to install the boot blocks. * On the news68k, we use this opportunity to install the boot blocks.
*/ */
int int
md_post_newfs() md_post_newfs(void)
{ {
const char *bootfile = "/boot"; const char *bootfile = "/boot";
@ -153,16 +155,17 @@ md_post_newfs()
* some ports use this to copy the MD filesystem, we do not. * some ports use this to copy the MD filesystem, we do not.
*/ */
int int
md_copy_filesystem() md_copy_filesystem(void)
{ {
return 0; return 0;
} }
int int
md_make_bsd_partitions() md_make_bsd_partitions(void)
{ {
return(make_bsd_partitions()); return make_bsd_partitions();
} }
/* /*
@ -177,7 +180,7 @@ md_check_partitions(void)
/* Upgrade support */ /* Upgrade support */
int int
md_update() md_update(void)
{ {
move_aout_libs(); move_aout_libs();
@ -192,7 +195,7 @@ md_update()
} }
void void
md_cleanup_install() md_cleanup_install(void)
{ {
enable_rc_conf(); enable_rc_conf();
@ -202,12 +205,13 @@ md_cleanup_install()
} }
int int
md_pre_update() md_pre_update(void)
{ {
return 1; return 1;
} }
void void
md_init() md_init(void)
{ {
} }