From c969aecdabe8def8e9c6f2f67841593753a8fbdd Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 8 Feb 2023 08:25:44 +0000 Subject: [PATCH] dump/fsck_ffs: convert two function definitions to ansi, missed in previous passes some decades ago. Less noise from clang 15. ok claudio --- sbin/dump/traverse.c | 10 +++------- 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; -- 2.20.1