summaryrefslogtreecommitdiffstats
path: root/sbin/fsck_ffs/setup.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-20 22:57:10 +0000
committerimp <imp@FreeBSD.org>2002-03-20 22:57:10 +0000
commit120c3c211a8089f3738404796935729d10069e44 (patch)
treeb0afc6442896204ba707723c961e59b4de37a932 /sbin/fsck_ffs/setup.c
parent90c76cbe1ef31e40c4b9b9cd46731d2716307ef0 (diff)
downloadFreeBSD-src-120c3c211a8089f3738404796935729d10069e44.zip
FreeBSD-src-120c3c211a8089f3738404796935729d10069e44.tar.gz
o __P removed
o ansi function prototypes o unifdef -D__STDC__ o __dead2 on usage prototype o remove now-bogus main prototype
Diffstat (limited to 'sbin/fsck_ffs/setup.c')
-rw-r--r--sbin/fsck_ffs/setup.c27
1 files changed, 9 insertions, 18 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index a33c976..529945a 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -60,9 +60,9 @@ struct bufarea asblk;
#define altsblock (*asblk.b_un.b_fs)
#define POWEROF2(num) (((num) & ((num) - 1)) == 0)
-static void badsb __P((int listerr, char *s));
-static int calcsb __P((char *dev, int devfd, struct fs *fs));
-static struct disklabel *getdisklabel __P((char *s, int fd));
+static void badsb(int listerr, char *s);
+static int calcsb(char *dev, int devfd, struct fs *fs);
+static struct disklabel *getdisklabel(char *s, int fd);
/*
* Read in a superblock finding an alternate if necessary.
@@ -70,8 +70,7 @@ static struct disklabel *getdisklabel __P((char *s, int fd));
* is already clean (preen mode only).
*/
int
-setup(dev)
- char *dev;
+setup(char *dev)
{
long cg, asked, i, j;
long bmapsize;
@@ -360,8 +359,7 @@ badsb:
* Read in the super block and its summary info.
*/
int
-readsb(listerr)
- int listerr;
+readsb(int listerr)
{
ufs_daddr_t super = bflag ? bflag : SBOFF / dev_bsize;
@@ -468,9 +466,7 @@ readsb(listerr)
}
static void
-badsb(listerr, s)
- int listerr;
- char *s;
+badsb(int listerr, char *s)
{
if (!listerr)
@@ -481,7 +477,7 @@ badsb(listerr, s)
}
void
-sblock_init()
+sblock_init(void)
{
struct disklabel *lp;
@@ -507,10 +503,7 @@ sblock_init()
* their needed information is available!
*/
static int
-calcsb(dev, devfd, fs)
- char *dev;
- int devfd;
- struct fs *fs;
+calcsb(char *dev, int devfd, struct fs *fs)
{
struct disklabel *lp;
struct partition *pp;
@@ -568,9 +561,7 @@ calcsb(dev, devfd, fs)
}
static struct disklabel *
-getdisklabel(s, fd)
- char *s;
- int fd;
+getdisklabel(char *s, int fd)
{
static struct disklabel lab;
OpenPOWER on IntegriCloud