People have made passes at using ANSI-style function definitions in the past. Some functions were missed and this upsets clang 15.
Index: dump/traverse.c =================================================================== RCS file: /cvs/src/sbin/dump/traverse.c,v retrieving revision 1.39 diff -u -p -r1.39 traverse.c --- dump/traverse.c 26 Apr 2018 17:40:48 -0000 1.39 +++ dump/traverse.c 4 Feb 2023 20:49:04 -0000 @@ -717,10 +717,7 @@ ufs2_blksout(daddr_t *blkp, int frags, i * 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; Index: fsck_ffs/dir.c =================================================================== RCS file: /cvs/src/sbin/fsck_ffs/dir.c,v retrieving revision 1.32 diff -u -p -r1.32 dir.c --- fsck_ffs/dir.c 20 Jan 2015 18:22:21 -0000 1.32 +++ fsck_ffs/dir.c 4 Feb 2023 20:49:52 -0000 @@ -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;