diff options
author | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2002-08-23 09:09:05 +0000 |
---|---|---|
committer | Grigoriy Orlov <gluk@cvs.openbsd.org> | 2002-08-23 09:09:05 +0000 |
commit | c4708f1b3aac4f8d7034f5e5fdb7bf3475d7e7a9 (patch) | |
tree | 18a789468ee8b6162b6152cc9b5ffe1adcd9d829 /sbin/fsck_ffs/pass3.c | |
parent | aa5287bbf32c33d0ba2329ad1e640e84326707c3 (diff) |
- Convert function definitions to new style
- eliminate trailing whitespace
- remove casts that aren't needed.
- make rcsid strings const, for -Wall compilation.
from tedu <grendel@zeitbombe.org>
Diffstat (limited to 'sbin/fsck_ffs/pass3.c')
-rw-r--r-- | sbin/fsck_ffs/pass3.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sbin/fsck_ffs/pass3.c b/sbin/fsck_ffs/pass3.c index 6bc85f4be26..33451ce0ade 100644 --- a/sbin/fsck_ffs/pass3.c +++ b/sbin/fsck_ffs/pass3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pass3.c,v 1.6 2001/11/05 07:39:16 mpech Exp $ */ +/* $OpenBSD: pass3.c,v 1.7 2002/08/23 09:09:04 gluk Exp $ */ /* $NetBSD: pass3.c,v 1.8 1995/03/18 14:55:54 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pass3.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: pass3.c,v 1.6 2001/11/05 07:39:16 mpech Exp $"; +static const char rcsid[] = "$OpenBSD: pass3.c,v 1.7 2002/08/23 09:09:04 gluk Exp $"; #endif #endif /* not lint */ @@ -53,16 +53,14 @@ static char rcsid[] = "$OpenBSD: pass3.c,v 1.6 2001/11/05 07:39:16 mpech Exp $"; static int info_pos; static int -pass3_info(buf, buflen) - char *buf; - int buflen; +pass3_info(char *buf, int buflen) { return snprintf(buf, buflen, "phase 3, directory %d/%ld", info_pos, inplast); } void -pass3() +pass3(void) { struct inoinfo **inpp, *inp, *pinp; ino_t orphan; |