diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-08 08:25:45 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-08 08:25:45 +0000 |
commit | 73ac5f33636470fc8928433264893eb388720692 (patch) | |
tree | 07e2d9760c598dc0a86b696a48138bcaeab0d1b1 /sbin | |
parent | 3c490f3eba9c3389d1f45953d472b6618421e64f (diff) |
dump/fsck_ffs: convert two function definitions to ansi, missed
in previous passes some decades ago. Less noise from clang 15.
ok claudio
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/traverse.c | 10 | ||||
-rw-r--r-- | sbin/fsck_ffs/dir.c | 7 |
2 files changed, 5 insertions, 12 deletions
diff --git a/sbin/dump/traverse.c b/sbin/dump/traverse.c index 6fc9eef4dd8..16d783cd750 100644 --- a/sbin/dump/traverse.c +++ b/sbin/dump/traverse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: traverse.c,v 1.39 2018/04/26 17:40:48 guenther Exp $ */ +/* $OpenBSD: traverse.c,v 1.40 2023/02/08 08:25:44 tb Exp $ */ /* $NetBSD: traverse.c,v 1.17 1997/06/05 11:13:27 lukem Exp $ */ /*- @@ -717,10 +717,7 @@ ufs2_blksout(daddr_t *blkp, int frags, ino_t ino) * Dump a map to the tape. */ void -dumpmap(map, type, ino) - char *map; - int type; - ino_t ino; +dumpmap(char *map, int type, ino_t ino) { int i; char *cp; @@ -736,8 +733,7 @@ dumpmap(map, type, ino) * Write a header record to the dump tape. */ void -writeheader(ino) - ino_t ino; +writeheader(ino_t ino) { int32_t sum, cnt, *lp; diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c index a3d1244fd64..be627ffbec9 100644 --- a/sbin/fsck_ffs/dir.c +++ b/sbin/fsck_ffs/dir.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dir.c,v 1.32 2015/01/20 18:22:21 deraadt Exp $ */ +/* $OpenBSD: dir.c,v 1.33 2023/02/08 08:25:44 tb Exp $ */ /* $NetBSD: dir.c,v 1.20 1996/09/27 22:45:11 christos Exp $ */ /* @@ -439,10 +439,7 @@ linkup(ino_t orphan, ino_t parentdir) * fix an entry in a directory. */ int -changeino(dir, name, newnum) - ino_t dir; - char *name; - ino_t newnum; +changeino(ino_t dir, char *name, ino_t newnum) { struct inodesc idesc; |