From 323e7ff82ea4daa0d248947cd80f9c5ec0099251 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 18 Mar 2002 04:57:08 +0000 Subject: [PATCH] o Use real prototypes and ANSI function definitions. o Remove __P. --- sbin/badsect/badsect.c | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/sbin/badsect/badsect.c b/sbin/badsect/badsect.c index 91cdd069b15a..2f5f5876ef84 100644 --- a/sbin/badsect/badsect.c +++ b/sbin/badsect/badsect.c @@ -87,8 +87,8 @@ long dev_bsize = 1; char buf[MAXBSIZE]; -void rdfs __P((daddr_t, int, char *)); -int chkuse __P((daddr_t, int)); +void rdfs(daddr_t, int, char *); +int chkuse(daddr_t, int); static void usage(void) @@ -98,9 +98,7 @@ usage(void) } int -main(argc, argv) - int argc; - char *argv[]; +main(int argc, char *argv[]) { daddr_t diskbn; daddr_t number; @@ -163,9 +161,7 @@ main(argc, argv) } int -chkuse(blkno, cnt) - daddr_t blkno; - int cnt; +chkuse(daddr_t blkno, int cnt) { int cg; daddr_t fsbn, bn; @@ -206,10 +202,7 @@ chkuse(blkno, cnt) * read a block from the file system */ void -rdfs(bno, size, bf) - daddr_t bno; - int size; - char *bf; +rdfs(daddr_t bno, int size, char *bf) { int n;