ANSIfy, WARNS=2

This commit is contained in:
xtraeme 2005-01-19 19:41:59 +00:00
parent ccde05f070
commit 0f821b7962
9 changed files with 18 additions and 19 deletions

View File

@ -1,8 +1,9 @@
# $NetBSD: Makefile,v 1.6 2003/03/28 08:09:52 perseant Exp $
# $NetBSD: Makefile,v 1.7 2005/01/19 19:41:59 xtraeme Exp $
# @(#)Makefile 8.1 (Berkeley) 6/5/93
.include <bsd.own.mk>
WARNS= 2
PROG= fsck_lfs
MAN= fsck_lfs.8
SRCS= bufcache.c dir.c fsutil.c inode.c lfs.c lfs_cksum.c main.c

View File

@ -1,4 +1,4 @@
/* $NetBSD: dir.c,v 1.13 2003/10/05 17:11:23 jdolecek Exp $ */
/* $NetBSD: dir.c,v 1.14 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -76,7 +76,7 @@ static int chgino(struct inodesc *);
* Propagate connected state through the tree.
*/
void
propagate()
propagate(void)
{
struct inoinfo **inpp, *inp, *pinp;
struct inoinfo **inpend;

View File

@ -1,4 +1,4 @@
/* $NetBSD: main.c,v 1.19 2005/01/13 15:22:35 christos Exp $ */
/* $NetBSD: main.c,v 1.20 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -52,8 +52,6 @@
int returntosingle;
int main(int, char *[]);
static int argtoi(int, char *, char *, int);
static int checkfilesys(const char *, char *, long, int);
static void usage(void);
@ -301,7 +299,7 @@ checkfilesys(const char *filesys, char *mntpt, long auxdata, int child)
}
static void
usage()
usage(void)
{
(void) fprintf(stderr,

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass0.c,v 1.16 2003/08/07 10:04:23 agc Exp $ */
/* $NetBSD: pass0.c,v 1.17 2005/01/19 19:41:59 xtraeme Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2002, 2003 The NetBSD Foundation, Inc.
@ -102,7 +102,7 @@ extern int fake_cleanseg;
#define dbshift (fs->lfs_bshift - fs->lfs_blktodb)
void
pass0()
pass0(void)
{
daddr_t daddr;
CLEANERINFO *cip;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass1.c,v 1.18 2004/07/18 20:51:30 yamt Exp $ */
/* $NetBSD: pass1.c,v 1.19 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -85,7 +85,7 @@ i_d_cmp(const void *va, const void *vb)
}
void
pass1()
pass1(void)
{
ino_t inumber;
int i;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass2.c,v 1.10 2003/08/07 10:04:23 agc Exp $ */
/* $NetBSD: pass2.c,v 1.11 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -58,7 +58,7 @@ static int pass2check(struct inodesc *);
static int blksort(const void *, const void *);
void
pass2()
pass2(void)
{
struct ufs1_dinode *dp;
struct uvnode *vp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass3.c,v 1.5 2003/08/07 10:04:23 agc Exp $ */
/* $NetBSD: pass3.c,v 1.6 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -38,7 +38,7 @@
#include "extern.h"
void
pass3()
pass3(void)
{
register struct inoinfo **inpp, *inp;
ino_t orphan;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass4.c,v 1.9 2003/08/07 10:04:23 agc Exp $ */
/* $NetBSD: pass4.c,v 1.10 2005/01/19 19:41:59 xtraeme Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@ -54,7 +54,7 @@
extern SEGUSE *seg_table;
void
pass4()
pass4(void)
{
register ino_t inumber;
register struct zlncnt *zlnp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pass5.c,v 1.13 2004/05/14 10:41:12 yamt Exp $ */
/* $NetBSD: pass5.c,v 1.14 2005/01/19 19:41:59 xtraeme Exp $ */
/*-
* Copyright (c) 2000, 2003 The NetBSD Foundation, Inc.
@ -63,7 +63,7 @@ extern SEGUSE *seg_table;
extern off_t locked_queue_bytes;
void
pass5()
pass5(void)
{
SEGUSE *su;
struct ubuf *bp;