>>> Building on exopi-3 under archivers/macutil DIST = [archivers/macutil:macutil2.0b3.shar.Z] FULLPKGNAME = macutil-2.0b3p4 distfiles size=167565 >>> Running build in archivers/macutil at 1764442993.65 ===> archivers/macutil ===> Building from scratch macutil-2.0b3p4 ===> Verifying specs: c ===> found c.102.2 ===> Checking files for macutil-2.0b3p4 `/exopi-cvs/ports/distfiles/macutil2.0b3.shar.Z' is up to date. >> (SHA256) all files: OK ===> Extracting for macutil-2.0b3p4 shar: creating directory 'macutil' shar: entering directory 'macutil' shar: extracting 'README' (23244 characters) shar: extracting 'makefile' (2143 characters) shar: creating directory 'crc' shar: entering directory 'crc' shar: extracting 'makecrc.c' (4416 characters) shar: extracting 'makefile' (475 characters) shar: done with directory 'crc' shar: creating directory 'util' shar: entering directory 'util' shar: extracting 'makefile' (240 characters) shar: extracting 'util.h' (465 characters) shar: extracting 'util.c' (3583 characters) shar: extracting 'masks.h' (87 characters) shar: extracting 'transname.c' (4720 characters) shar: extracting 'backtrans.c' (3367 characters) shar: extracting 'patchlevel.h' (61 characters) shar: extracting 'curtime.h' (240 characters) shar: done with directory 'util' shar: creating directory 'fileio' shar: entering directory 'fileio' shar: extracting 'wrfile.h' (289 characters) shar: extracting 'wrfileopt.h' (145 characters) shar: extracting 'fileglob.h' (39 characters) shar: extracting 'makefile' (507 characters) shar: extracting 'machdr.h' (432 characters) shar: extracting 'wrfile.c' (19424 characters) shar: extracting 'fileglob.c' (32 characters) shar: extracting 'aufs.h' (1370 characters) shar: extracting 'appledouble.h' (1856 characters) shar: extracting 'rdfile.c' (26695 characters) shar: extracting 'rdfile.h' (247 characters) shar: extracting 'rdfileopt.h' (114 characters) shar: extracting 'kind.h' (167 characters) shar: done with directory 'fileio' shar: creating directory 'macunpack' shar: entering directory 'macunpack' shar: extracting 'de_lzah.c' (6813 characters) shar: extracting 'pit.c' (6442 characters) shar: extracting 'sit.c' (19518 characters) shar: extracting 'lzc.h' (599 characters) shar: extracting 'mcb.c' (2591 characters) shar: extracting 'makefile' (4554 characters) shar: extracting 'cpt.c' (17769 characters) shar: extracting 'zma.c' (9528 characters) shar: extracting 'lzh.c' (18707 characters) shar: extracting 'lzc.c' (4405 characters) shar: extracting 'macbinary.c' (13547 characters) shar: extracting 'globals.c' (422 characters) shar: extracting 'crc.c' (52 characters) shar: extracting 'dir.c' (1357 characters) shar: extracting 'bin.c' (1784 characters) shar: extracting 'crc.h' (306 characters) shar: extracting 'globals.h' (302 characters) shar: extracting 'pit.h' (870 characters) shar: extracting 'sit.h' (2682 characters) shar: extracting 'huffman.h' (222 characters) shar: extracting 'cpt.h' (2461 characters) shar: extracting 'stf.c' (4993 characters) shar: extracting 'zma.h' (2074 characters) shar: extracting 'stf.h' (300 characters) shar: extracting 'bits_be.h' (220 characters) shar: extracting 'bits_be.c' (947 characters) shar: extracting 'zmahdr.h' (68 characters) shar: extracting 'macunpack.c' (4189 characters) shar: extracting 'macunpack.h' (571 characters) shar: extracting 'lzh.h' (1339 characters) shar: extracting 'dia.c' (13018 characters) shar: extracting 'de_huffman.c' (2547 characters) shar: extracting 'de_compress.c' (5169 characters) shar: extracting 'dia.h' (423 characters) shar: extracting 'arc.h' (1196 characters) shar: extracting 'jdw.c' (3552 characters) shar: extracting 'jdw.h' (446 characters) shar: extracting 'de_lzh.c' (6147 characters) shar: extracting 'dd.h' (3113 characters) shar: extracting 'dd.c' (25079 characters) shar: done with directory 'macunpack' shar: creating directory 'hexbin' shar: entering directory 'hexbin' shar: extracting 'hexbin.c' (7767 characters) shar: extracting 'makefile' (2504 characters) shar: extracting 'crc.c' (757 characters) shar: extracting 'globals.c' (372 characters) shar: extracting 'globals.h' (636 characters) shar: extracting 'crc.h' (215 characters) shar: extracting 'dl.c' (2716 characters) shar: extracting 'hqx.c' (9295 characters) shar: extracting 'printhdr.c' (925 characters) shar: extracting 'readline.h' (21 characters) shar: extracting 'readline.c' (703 characters) shar: extracting 'buffer.h' (140 characters) shar: extracting 'mu.c' (4891 characters) shar: extracting 'printhdr.h' (88 characters) shar: extracting 'buffer.c' (1460 characters) shar: extracting 'hexbin.h' (264 characters) shar: extracting 'hecx.c' (5468 characters) shar: done with directory 'hexbin' shar: creating directory 'mixed' shar: entering directory 'mixed' shar: extracting 'macsave.c' (2045 characters) shar: extracting 'macstream.c' (4060 characters) shar: extracting 'dir.c' (1357 characters) shar: extracting 'globals.c' (267 characters) shar: extracting 'globals.h' (279 characters) shar: extracting 'macbinary.c' (2696 characters) shar: extracting 'makefile' (2013 characters) shar: extracting 'mcb.c' (5745 characters) shar: done with directory 'mixed' shar: creating directory 'binhex' shar: entering directory 'binhex' shar: extracting 'dofile.c' (3429 characters) shar: extracting 'binhex.c' (3723 characters) shar: extracting 'makefile' (1070 characters) shar: done with directory 'binhex' shar: creating directory 'comm' shar: entering directory 'comm' shar: extracting 'comm.h' (105 characters) shar: extracting 'xm_from.c' (1792 characters) shar: extracting 'frommac.c' (3836 characters) shar: extracting 'protocol.h' (434 characters) shar: extracting 'tomac.c' (5520 characters) shar: extracting 'makefile' (2185 characters) shar: extracting 'globals.c' (444 characters) shar: extracting 'globals.h' (354 characters) shar: extracting 'xm_to.c' (1458 characters) shar: extracting 'tty.c' (2958 characters) shar: extracting 'ym_from.c' (1718 characters) shar: extracting 'ym_to.c' (140 characters) shar: extracting 'zm_from.c' (113 characters) shar: extracting 'zm_to.c' (111 characters) shar: extracting 'from.c' (2845 characters) shar: extracting 'to.c' (1826 characters) shar: done with directory 'comm' shar: creating directory 'doc' shar: entering directory 'doc' shar: extracting 'README.unpit' (2202 characters) shar: extracting 'README.unsit' (1916 characters) shar: extracting 'README.zoom' (3389 characters) shar: extracting 'README.hexbin' (1421 characters) shar: extracting 'README.crc' (237 characters) shar: extracting 'README.crc.orig' (5926 characters) shar: extracting 'README.macput' (628 characters) shar: extracting 'README.macget' (554 characters) shar: done with directory 'doc' shar: creating directory 'man' shar: entering directory 'man' shar: extracting 'macunpack.1' (2450 characters) shar: extracting 'hexbin.1' (2941 characters) shar: extracting 'macsave.1' (2003 characters) shar: extracting 'binhex.1' (3146 characters) shar: extracting 'macstream.1' (2964 characters) shar: extracting 'macutil.1' (1091 characters) shar: extracting 'tomac.1' (3987 characters) shar: extracting 'frommac.1' (2690 characters) shar: done with directory 'man' shar: done with directory 'macutil' ===> Patching for macutil-2.0b3p4 ===> Applying OpenBSD patch patch-binhex_binhex_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: binhex/binhex.c |--- binhex/binhex.c.orig |+++ binhex/binhex.c -------------------------- Patching file binhex/binhex.c using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-binhex_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- binhex/makefile.orig Fri Oct 25 17:30:16 2002 |+++ binhex/makefile Fri Oct 25 17:30:24 2002 -------------------------- Patching file binhex/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-comm_frommac_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: comm/frommac.c |--- comm/frommac.c.orig |+++ comm/frommac.c -------------------------- Patching file comm/frommac.c using Plan A... Hunk #1 succeeded at 5. done ===> Applying OpenBSD patch patch-comm_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- comm/makefile.orig Fri Oct 25 17:30:30 2002 |+++ comm/makefile Fri Oct 25 17:30:34 2002 -------------------------- Patching file comm/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-comm_tomac_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: comm/tomac.c |--- comm/tomac.c.orig |+++ comm/tomac.c -------------------------- Patching file comm/tomac.c using Plan A... Hunk #1 succeeded at 2. done ===> Applying OpenBSD patch patch-crc_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- crc/makefile.orig Fri Oct 25 17:27:17 2002 |+++ crc/makefile Fri Oct 25 17:29:27 2002 -------------------------- Patching file crc/makefile using Plan A... Hunk #1 succeeded at 1. Hunk #2 succeeded at 16. done ===> Applying OpenBSD patch patch-fileio_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- fileio/makefile.orig Fri Oct 25 17:28:33 2002 |+++ fileio/makefile Fri Oct 25 17:28:40 2002 -------------------------- Patching file fileio/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-fileio_rdfileopt_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: fileio/rdfileopt.h |--- fileio/rdfileopt.h.orig |+++ fileio/rdfileopt.h -------------------------- Patching file fileio/rdfileopt.h using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-fileio_wrfileopt_h Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: fileio/wrfileopt.h |--- fileio/wrfileopt.h.orig |+++ fileio/wrfileopt.h -------------------------- Patching file fileio/wrfileopt.h using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-hexbin_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- hexbin/makefile.orig Fri Oct 25 17:29:35 2002 |+++ hexbin/makefile Fri Oct 25 17:29:46 2002 -------------------------- Patching file hexbin/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-macunpack_lzh_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- macunpack/lzh.c.orig Sun May 9 17:19:55 2010 |+++ macunpack/lzh.c Sun May 9 17:20:48 2010 -------------------------- Patching file macunpack/lzh.c using Plan A... Hunk #1 succeeded at 40. done ===> Applying OpenBSD patch patch-macunpack_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- macunpack/makefile.orig Fri Oct 25 17:28:47 2002 |+++ macunpack/makefile Fri Oct 25 17:29:12 2002 -------------------------- Patching file macunpack/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- makefile.orig Fri Oct 25 17:14:13 2002 |+++ makefile Fri Oct 25 17:15:25 2002 -------------------------- Patching file makefile using Plan A... Hunk #1 succeeded at 27. done ===> Applying OpenBSD patch patch-man_macutil_1 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- man/macutil.1.orig Sun May 9 17:19:46 2010 |+++ man/macutil.1 Sun May 9 17:19:46 2010 -------------------------- Patching file man/macutil.1 using Plan A... Hunk #1 succeeded at 20. done ===> Applying OpenBSD patch patch-mixed_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- mixed/makefile.orig Fri Oct 25 17:29:52 2002 |+++ mixed/makefile Fri Oct 25 17:29:58 2002 -------------------------- Patching file mixed/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Applying OpenBSD patch patch-util_makefile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- util/makefile.orig Fri Oct 25 17:28:11 2002 |+++ util/makefile Fri Oct 25 17:28:22 2002 -------------------------- Patching file util/makefile using Plan A... Hunk #1 succeeded at 1. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for macutil-2.0b3p4 ===> Configuring for macutil-2.0b3p4 ===> Building for macutil-2.0b3p4 (cd crc; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c makecrc.c makecrc.c:40:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 40 | main() | ^ | int makecrc.c:42:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | initcrctab("ccitt", 0x1021, 0xffff, 0, 16); | ^ makecrc.c:43:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | initcrctab("kermit", 0x8408, 0, 1, 16); | ^ makecrc.c:44:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | initcrctab("arc", 0xa001, 0, 1, 16); | ^ makecrc.c:45:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | initcrctab("binhex", 0x1021, 0, 0, 16); | ^ makecrc.c:46:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | initcrctab("ccitt32",0x04c11db7,0xffffffff,0,32); | ^ makecrc.c:47:15: warning: passing arguments to 'initcrctab' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | initcrctab("zip",0xedb88320,0xffffffff,1,32); | ^ makecrc.c:103:35: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 103 | (void)fprintf(fd, "0x%.8x,", vv & 0xffffffff); | ~~~~ ^~~~~~~~~~~~~~~ | %.8lx makecrc.c:52:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | static void initcrctab(name, poly, init, swapped, bits) | ^ makecrc.c:38:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | static void initcrctab(); | ^ 10 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o makecrc makecrc.o ld: warning: makecrc.c(makecrc.o:(initcrctab)): warning: strcat() is almost always misused, please use strlcat() ./makecrc cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c arc.c arc.c:38:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | unsigned long arc_updcrc(icrc, icp, icnt) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c ccitt.c ccitt.c:38:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | unsigned long ccitt_updcrc(icrc, icp, icnt) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c kermit.c kermit.c:38:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | unsigned long kermit_updcrc(icrc, icp, icnt) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c binhex.c binhex.c:38:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | unsigned long binhex_updcrc(icrc, icp, icnt) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c ccitt32.c ccitt32.c:70:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | unsigned long ccitt32_updcrc(icrc, icp, icnt) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c zip.c zip.c:70:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | unsigned long zip_updcrc(icrc, icp, icnt) | ^ 1 warning generated. ar r libcrc.a arc.o ccitt.o kermit.o binhex.o ccitt32.o zip.o ar: warning: creating libcrc.a if test -f /usr/bin/ranlib ; then ranlib libcrc.a ; fi (cd util; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c util.c util.c:12:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | unsigned long get4(bp) | ^ In file included from util.c:4: ./util.h:10:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern unsigned long get4(); | ^ util.c:27:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | unsigned long get4i(bp) | ^ In file included from util.c:4: ./util.h:11:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern unsigned long get4i(); | ^ util.c:42:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | unsigned long get2(bp) | ^ In file included from util.c:4: ./util.h:12:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | extern unsigned long get2(); | ^ util.c:57:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | unsigned long get2i(bp) | ^ In file included from util.c:4: ./util.h:13:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern unsigned long get2i(); | ^ util.c:72:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | unsigned char getb(fp) | ^ In file included from util.c:4: ./util.h:14:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | extern unsigned char getb(); | ^ util.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | void copy(d, s, n) | ^ In file included from util.c:4: ./util.h:15:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | extern void copy(); | ^ util.c:101:12: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | (void) read(2, temp, sizeof(temp)); | ^ util.c:114:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | void put4(dest, value) | ^ In file included from util.c:4: ./util.h:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern void put4(); | ^ util.c:124:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | void put2(dest, value) | ^ In file included from util.c:4: ./util.h:18:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern void put2(); | ^ util.c:132:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | void do_indent(indent) | ^ In file included from util.c:4: ./util.h:19:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | extern void do_indent(); | ^ util.c:142:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | real_time set_time(year, month, day, hours, minutes, seconds) | ^ In file included from util.c:4: ./util.h:20:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern real_time set_time(); | ^ util.c:156:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | unsigned long tomactime(time) | ^ In file included from util.c:4: ./util.h:21:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | extern unsigned long tomactime(); | ^ util.c:174:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | real_time frommactime(accum) | ^ In file included from util.c:4: ./util.h:22:18: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | extern real_time frommactime(); | ^ 25 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c transname.c transname.c:94:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | void transname(name, namebuf, n) | ^ 1 warning generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c backtrans.c backtrans.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | void backtrans(macname, name) | ^ 1 warning generated. touch all (cd fileio; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c wrfile.c In file included from wrfile.c:12: ./../util/curtime.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern time_t time(); | ^ /usr/include/time.h:123:8: note: conflicting prototype is here 123 | time_t time(time_t *); | ^ wrfile.c:109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | void define_name(text) | ^ In file included from wrfile.c:8: ./wrfile.h:3:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 3 | extern void define_name(); | ^ wrfile.c:137:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | buffer = (char *)malloc((unsigned)totsize); | ^ wrfile.c:139:26: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | buffer = (char *)realloc(buffer, (unsigned)totsize); | ^ wrfile.c:148:11: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | (void)bzero(buffer, (int)totsize); | ^ wrfile.c:148:11: note: include the header or explicitly provide a declaration for 'bzero' wrfile.c:150:11: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | (void)bcopy(info, ptr, 128); | ^ wrfile.c:150:11: note: include the header or explicitly provide a declaration for 'bcopy' wrfile.c:125:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | void start_info(info, rsize, dsize) | ^ In file included from wrfile.c:8: ./wrfile.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void start_info(); | ^ wrfile.c:290:14: warning: passing arguments to 'wr_aufs_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | wr_aufs_info(fp); | ^ wrfile.c:409:11: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 409 | (void)chdir(share_name); | ^ wrfile.c:449:14: warning: passing arguments to 'wr_aufs_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | wr_aufs_info(fp); | ^ wrfile.c:355:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | void do_mkdir(name, header) | ^ In file included from wrfile.c:8: ./wrfile.h:11:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern void do_mkdir(); | ^ wrfile.c:530:8: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 530 | (void)chdir(".."); | ^ wrfile.c:577:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] 577 | theinfo.fi_magic1 = FI_MAGIC1; | ~ ^~~~~~~~~ ./aufs.h:4:19: note: expanded from macro 'FI_MAGIC1' 4 | #define FI_MAGIC1 255 | ^~~ wrfile.c:586:32: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | put4(theinfo.fi_ctime, get4(buffer + I_CTIMOFF) - TIMEDIFF); | ^ wrfile.c:586:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | put4(theinfo.fi_ctime, get4(buffer + I_CTIMOFF) - TIMEDIFF); | ^ wrfile.c:587:32: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | put4(theinfo.fi_mtime, get4(buffer + I_MTIMOFF) - TIMEDIFF); | ^ wrfile.c:587:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | put4(theinfo.fi_mtime, get4(buffer + I_MTIMOFF) - TIMEDIFF); | ^ wrfile.c:588:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | put4(theinfo.fi_utime, (unsigned long)time((time_t *)0)); | ^ wrfile.c:600:24: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 600 | theinfo.fi_comln = strlen((char *)theinfo.fi_comnt); | ^ wrfile.c:600:24: note: include the header or explicitly provide a declaration for 'strlen' wrfile.c:570:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | static void wr_aufs_info(fp) | ^ wrfile.c:52:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | static void wr_aufs_info(); | ^ wrfile.c:685:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 685 | while(ch = *mp++) { | ~~~^~~~~~~ wrfile.c:685:14: note: place parentheses around the assignment to silence this warning 685 | while(ch = *mp++) { | ^ | ( ) wrfile.c:685:14: note: use '==' to turn this assignment into an equality comparison 685 | while(ch = *mp++) { | ^ | == wrfile.c:698:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | int wrfileopt(c) | ^ wrfile.c:699:6: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 699 | char c; | ^ ./wrfileopt.h:1:26: note: previous declaration is here 1 | extern int wrfileopt(char); | ^ wrfile.c:805:20: warning: parameter 'restricted' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 805 | void set_wrfileopt(restricted) | ^ 806 | { wrfile.c:805:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 805 | void set_wrfileopt(restricted) | ^ wrfile.c:810:22: warning: parameter 'restricted' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 810 | void set_s_wrfileopt(restricted) | ^ 811 | { wrfile.c:810:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 810 | void set_s_wrfileopt(restricted) | ^ 31 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c rdfile.c In file included from rdfile.c:16: ./../util/curtime.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern time_t time(); | ^ /usr/include/time.h:123:8: note: conflicting prototype is here 123 | time_t time(time_t *); | ^ rdfile.c:111:13: warning: passing arguments to 'check_files' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | check_files(1); | ^ rdfile.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | void setup(argc, argv) | ^ In file included from rdfile.c:7: ./rdfile.h:10:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern void setup(); | ^ rdfile.c:126:40: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | current_files->kind = (int *)malloc((unsigned)n * sizeof(int)); | ^ rdfile.c:183:10: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 183 | !strcmp(current_files->files[i], f_name)) { | ^ rdfile.c:183:10: note: include the header or explicitly provide a declaration for 'strcmp' rdfile.c:249:6: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | j = strlen(current_files->files[i]) - 5; | ^ rdfile.c:249:6: note: include the header or explicitly provide a declaration for 'strlen' rdfile.c:250:6: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 250 | if(!strncmp(current_files->files[i] + j, ".info", 5)) { | ^ rdfile.c:250:6: note: include the header or explicitly provide a declaration for 'strncmp' rdfile.c:115:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | static void check_files(initial) | ^ rdfile.c:52:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | static void check_files(); | ^ rdfile.c:363:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | put4(file_info + I_CTIMOFF, (unsigned long)stbuf.st_ctime + TIMEDIFF); | ^ rdfile.c:364:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | put4(file_info + I_MTIMOFF, (unsigned long)stbuf.st_mtime + TIMEDIFF); | ^ rdfile.c:370:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | rsrc_fork = malloc((unsigned)rsrc_size); | ^ rdfile.c:372:26: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | rsrc_fork = realloc(rsrc_fork, (unsigned)rsrc_size); | ^ rdfile.c:386:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | put4(file_info + I_RLENOFF, (unsigned long)rsrc_size); | ^ rdfile.c:401:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | data_fork = malloc((unsigned)data_size); | ^ rdfile.c:403:26: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | data_fork = realloc(data_fork, (unsigned)data_size); | ^ rdfile.c:417:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | put4(file_info + I_DLENOFF, (unsigned long)data_size); | ^ rdfile.c:449:18: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | data_size = get4(file_info + I_DLENOFF); | ^ rdfile.c:450:18: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | rsrc_size = get4(file_info + I_RLENOFF); | ^ rdfile.c:453:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | data_fork = malloc((unsigned)data_size); | ^ rdfile.c:455:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | data_fork = realloc(data_fork, (unsigned)data_size); | ^ rdfile.c:461:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | rsrc_fork = malloc((unsigned)rsrc_size); | ^ rdfile.c:463:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | rsrc_fork = realloc(rsrc_fork, (unsigned)rsrc_size); | ^ rdfile.c:505:18: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 505 | data_size = get4(file_info + I_DLENOFF); | ^ rdfile.c:506:18: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | rsrc_size = get4(file_info + I_RLENOFF); | ^ rdfile.c:514:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | data_fork = malloc((unsigned)data_size); | ^ rdfile.c:516:26: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | data_fork = realloc(data_fork, (unsigned)data_size); | ^ rdfile.c:532:25: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | rsrc_fork = malloc((unsigned)rsrc_size); | ^ rdfile.c:534:26: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | rsrc_fork = realloc(rsrc_fork, (unsigned)rsrc_size); | ^ rdfile.c:553:16: warning: passing arguments to 'read_aufs_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | read_aufs_info(fd); | ^ rdfile.c:560:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | put4(file_info + I_RLENOFF, (unsigned long)rsrc_size); | ^ rdfile.c:564:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 564 | rsrc_fork = malloc((unsigned)rsrc_size); | ^ rdfile.c:566:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | rsrc_fork = realloc(rsrc_fork, (unsigned)rsrc_size); | ^ rdfile.c:583:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | put4(file_info + I_DLENOFF, (unsigned long)data_size); | ^ rdfile.c:587:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | data_fork = malloc((unsigned)data_size); | ^ rdfile.c:589:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | data_fork = realloc(data_fork, (unsigned)data_size); | ^ rdfile.c:682:23: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | filetable = malloc((unsigned)listsize); | ^ rdfile.c:689:25: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | filetable = realloc(filetable, (unsigned)listsize); | ^ rdfile.c:695:24: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | filetable = realloc(filetable, (unsigned)cursize); | ^ rdfile.c:697:35: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | new_files = (filelist *)malloc(sizeof(filelist)); | ^ rdfile.c:699:39: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | new_files->files = (char **)malloc((unsigned)n * sizeof(char **)); | ^ rdfile.c:700:36: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | new_files->kind = (int *)malloc((unsigned)n * sizeof(int)); | ^ rdfile.c:708:11: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 708 | (void)chdir(filename); | ^ rdfile.c:724:20: warning: passing arguments to 'read_aufs_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | read_aufs_info(fd); | ^ rdfile.c:764:11: warning: call to undeclared function 'free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 764 | (void)free(old_files->files[0]); | ^ rdfile.c:768:11: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 768 | (void)chdir(".."); | ^ rdfile.c:783:5: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 783 | bzero((char *) &theinfo, sizeof(theinfo)); | ^ rdfile.c:783:5: note: include the header or explicitly provide a declaration for 'bzero' rdfile.c:788:26: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] 788 | if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || | ^~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:788:26: note: place parentheses around the '!=' expression to silence this warning 788 | if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || | ^ ~~~~~~~~~~~~~~~~~~~~~ rdfile.c:788:26: note: place parentheses around the & expression to evaluate it first 788 | if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:789:27: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] 789 | theinfo.fi_version & BYTEMASK != FI_VERSION || | ^~~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:789:27: note: place parentheses around the '!=' expression to silence this warning 789 | theinfo.fi_version & BYTEMASK != FI_VERSION || | ^ ~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:789:27: note: place parentheses around the & expression to evaluate it first 789 | theinfo.fi_version & BYTEMASK != FI_VERSION || | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:790:25: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] 790 | theinfo.fi_magic & BYTEMASK != FI_MAGIC) { | ^~~~~~~~~~~~~~~~~~~~~~ rdfile.c:790:25: note: place parentheses around the '!=' expression to silence this warning 790 | theinfo.fi_magic & BYTEMASK != FI_MAGIC) { | ^ ~~~~~~~~~~~~~~~~~~~~ rdfile.c:790:25: note: place parentheses around the & expression to evaluate it first 790 | theinfo.fi_magic & BYTEMASK != FI_MAGIC) { | ~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:794:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 794 | bcopy(theinfo.fi_fndr, file_info + I_TYPEOFF, 4); | ^ rdfile.c:794:5: note: include the header or explicitly provide a declaration for 'bcopy' rdfile.c:814:34: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | put4(file_info + I_CTIMOFF, get4(theinfo.fi_ctime) + TIMEDIFF); | ^ rdfile.c:814:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 814 | put4(file_info + I_CTIMOFF, get4(theinfo.fi_ctime) + TIMEDIFF); | ^ rdfile.c:815:34: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | put4(file_info + I_MTIMOFF, get4(theinfo.fi_mtime) + TIMEDIFF); | ^ rdfile.c:815:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 815 | put4(file_info + I_MTIMOFF, get4(theinfo.fi_mtime) + TIMEDIFF); | ^ rdfile.c:818:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 818 | put4(file_info + I_CTIMOFF, | ^ rdfile.c:820:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | put4(file_info + I_MTIMOFF, | ^ rdfile.c:773:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | static void read_aufs_info(fd) | ^ rdfile.c:87:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 87 | static void read_aufs_info(); | ^ rdfile.c:811:29: warning: result of comparison of constant 218 with expression of type 'char' is always false [-Wtautological-constant-out-of-range-compare] 811 | if(theinfo.fi_datemagic == FI_MAGIC && | ~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~ rdfile.c:889:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | data_size = get4(file_info + I_DLENOFF); | ^ rdfile.c:890:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 890 | rsrc_size = get4(file_info + I_RLENOFF); | ^ rdfile.c:898:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 898 | data_fork = malloc((unsigned)data_size); | ^ rdfile.c:900:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | data_fork = realloc(data_fork, (unsigned)data_size); | ^ rdfile.c:916:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | rsrc_fork = malloc((unsigned)rsrc_size); | ^ rdfile.c:918:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 918 | rsrc_fork = realloc(rsrc_fork, (unsigned)rsrc_size); | ^ rdfile.c:940:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | int rdfileopt(c) | ^ rdfile.c:941:6: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'char' declared in a previous prototype [-Wknr-promoted-parameter] 941 | char c; | ^ ./rdfileopt.h:1:26: note: previous declaration is here 1 | extern int rdfileopt(char); | ^ rdfile.c:958:2: warning: call to undeclared function 'backtrans'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 958 | backtrans(name, optarg); | ^ 70 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c fileglob.c touch all (cd macunpack; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c macunpack.c macunpack.c:44:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | while((c = getopt(argc, argv, options)) != EOF) { | ^ macunpack.c:161:5: warning: passing arguments to 'stf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | stf(~(unsigned long)1); | ^ macunpack.c:30:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | int main(argc, argv) | ^ 3 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c globals.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c macbinary.c macbinary.c:79:6: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | if(!strncmp(header + 1, ZMAHDR, ZMAHDRS2)) { | ^ macbinary.c:79:6: note: include the header or explicitly provide a declaration for 'strncmp' macbinary.c:84:9: warning: passing arguments to 'zma' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | zma(header, (unsigned long)0); | ^ macbinary.c:96:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | do_indent(indent); | ^ macbinary.c:101:9: warning: passing arguments to 'dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | dir(header); | ^ macbinary.c:104:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | in_data_size = get4(header + I_DLENOFF); | ^ macbinary.c:105:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | in_rsrc_size = get4(header + I_RLENOFF); | ^ macbinary.c:111:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | skip_file(in_ds + in_rs); | ^ macbinary.c:126:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | do_indent(indent); | ^ macbinary.c:133:9: warning: passing arguments to 'bin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | bin(header, in_data_size, 0); | ^ macbinary.c:134:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | skip_file(ds_skip + in_rs); | ^ macbinary.c:140:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | do_indent(indent); | ^ macbinary.c:147:9: warning: passing arguments to 'bin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | bin(header, in_data_size, 0); | ^ macbinary.c:148:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | skip_file(ds_skip + in_rs); | ^ macbinary.c:155:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | do_indent(indent); | ^ macbinary.c:161:9: warning: passing arguments to 'bin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | bin(header, in_data_size, 1); | ^ macbinary.c:162:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | skip_file(ds_skip + in_rs); | ^ macbinary.c:170:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | do_indent(indent); | ^ macbinary.c:177:9: warning: passing arguments to 'jdw' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | jdw((unsigned long)in_data_size); | ^ macbinary.c:178:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | skip_file(ds_skip + in_rs); | ^ macbinary.c:186:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | do_indent(indent); | ^ macbinary.c:193:9: warning: passing arguments to 'stf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | stf((unsigned long)in_data_size); | ^ macbinary.c:194:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | skip_file(ds_skip + in_rs); | ^ macbinary.c:202:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | do_indent(indent); | ^ macbinary.c:209:9: warning: passing arguments to 'lzc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | lzc(header); | ^ macbinary.c:210:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | skip_file(ds_skip + in_rs); | ^ macbinary.c:216:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | do_indent(indent); | ^ macbinary.c:223:9: warning: passing arguments to 'lzc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | lzc(header); | ^ macbinary.c:276:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | do_indent(indent); | ^ macbinary.c:283:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | skip_file(ds_skip + in_rs); | ^ macbinary.c:291:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | do_indent(indent); | ^ macbinary.c:298:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | skip_file(ds_skip + in_rs); | ^ macbinary.c:304:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | do_indent(indent); | ^ macbinary.c:312:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | skip_file(ds_skip + in_rs); | ^ macbinary.c:318:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | do_indent(indent); | ^ macbinary.c:326:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | skip_file(ds_skip + in_rs); | ^ macbinary.c:334:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | do_indent(indent); | ^ macbinary.c:340:9: warning: passing arguments to 'dia' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | dia((unsigned char *)header); | ^ macbinary.c:341:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | skip_file(ds_skip + in_rs); | ^ macbinary.c:348:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | do_indent(indent); | ^ macbinary.c:355:9: warning: passing arguments to 'dia' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | dia((unsigned char *)header); | ^ macbinary.c:356:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | skip_file(ds_skip + in_rs); | ^ macbinary.c:364:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | do_indent(indent); | ^ macbinary.c:371:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | skip_file(ds_skip + in_rs); | ^ macbinary.c:377:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | do_indent(indent); | ^ macbinary.c:385:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | skip_file(ds_skip + in_rs); | ^ macbinary.c:393:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | do_indent(indent); | ^ macbinary.c:399:9: warning: passing arguments to 'zma' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | zma((char *)NULL, (unsigned long)in_data_size); | ^ macbinary.c:400:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | skip_file(ds_skip + in_rs); | ^ macbinary.c:406:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | do_indent(indent); | ^ macbinary.c:413:9: warning: passing arguments to 'zma' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | zma((char *)NULL, (unsigned long)in_data_size); | ^ macbinary.c:414:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 414 | skip_file(ds_skip + in_rs); | ^ macbinary.c:422:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | do_indent(indent); | ^ macbinary.c:429:9: warning: passing arguments to 'lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | lzh(0); | ^ macbinary.c:430:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | skip_file(ds_skip + in_rs); | ^ macbinary.c:436:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | do_indent(indent); | ^ macbinary.c:443:9: warning: passing arguments to 'lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | lzh(1); | ^ macbinary.c:444:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | skip_file(ds_skip + in_rs); | ^ macbinary.c:454:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | do_indent(indent); | ^ macbinary.c:461:13: warning: passing arguments to 'dd_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | dd_file((unsigned char *)header); | ^ macbinary.c:462:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | skip_file(ds_skip + in_rs); | ^ macbinary.c:468:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | do_indent(indent); | ^ macbinary.c:474:13: warning: passing arguments to 'dd_arch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | dd_arch((unsigned char *)header); | ^ macbinary.c:475:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | skip_file(ds_skip + in_rs); | ^ macbinary.c:481:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | do_indent(indent); | ^ macbinary.c:493:10: warning: passing arguments to 'dd_arch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | dd_arch((unsigned char *)header); | ^ macbinary.c:502:10: warning: passing arguments to 'dd_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 502 | dd_file((unsigned char *)header); | ^ macbinary.c:504:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | skip_file(ds_skip + in_rs); | ^ macbinary.c:509:9: warning: passing arguments to 'mcb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 509 | mcb(header, (unsigned long)in_rsrc_size, | ^ macbinary.c:519:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | static void skip_file(skip) | ^ macbinary.c:52:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | static void skip_file(); | ^ 70 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dir.c dir.c:26:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | do_indent(indent); | ^ dir.c:43:24: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | dir_stack = malloc(64); | ^ dir.c:45:25: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | dir_stack = realloc(dir_stack, (unsigned)dir_max + 64); | ^ dir.c:53:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | transname(hdr + I_NAMEOFF + 1, dir_stack + dir_ptr, | ^ dir.c:57:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | do_indent(indent); | ^ dir.c:71:10: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | do_mkdir(dir_stack + dir_ptr, hdr); | ^ dir.c:14:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void dir(hdr) | ^ 7 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c mcb.c mcb.c:30:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | transname(hdr + I_NAMEOFF + 1, text, n); | ^ mcb.c:38:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | transname(hdr + I_TYPEOFF, ftype, 4); | ^ mcb.c:39:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | transname(hdr + I_AUTHOFF, fauth, 4); | ^ mcb.c:40:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | do_indent(indent); | ^ mcb.c:55:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | define_name(text); | ^ mcb.c:58:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | start_info(info, rsrcLength, dataLength); | ^ mcb.c:66:15: warning: passing arguments to 'mcb_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | mcb_wrfile(dataLength); | ^ mcb.c:73:15: warning: passing arguments to 'mcb_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | mcb_wrfile(rsrcLength); | ^ mcb.c:11:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | void mcb(hdr, rsrcLength, dataLength, toread) | ^ mcb.c:82:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | static void mcb_wrfile(ibytes) | ^ mcb.c:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | static void mcb_wrfile(); | ^ 11 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c bin.c bin.c:19:18: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | hdr[0] = getb(infp); | ^ bin.c:22:6: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 22 | if(!strncmp(header + I_AUTHOFF, "BnHq", 4) && hdr[0] == '(') { | ^ bin.c:22:6: note: include the header or explicitly provide a declaration for 'strncmp' bin.c:23:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | do_indent(indent); | ^ bin.c:30:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | do_indent(indent); | ^ bin.c:36:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | do_indent(indent); | ^ bin.c:41:5: warning: passing arguments to 'mcb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | mcb(header, (unsigned long)in_data_size, (unsigned long)in_rsrc_size, | ^ bin.c:56:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | rsrcLength = get4(hdr + I_RLENOFF); | ^ bin.c:57:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | dataLength = get4(hdr + I_DLENOFF); | ^ bin.c:60:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | put4(hdr + I_RLENOFF, ++rsrcLength); | ^ bin.c:61:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | put4(hdr + I_DLENOFF, ++dataLength); | ^ bin.c:63:8: warning: passing arguments to 'mcb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | mcb(hdr, rsrcLength, dataLength, data_size - INFOBYTES); | ^ bin.c:12:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | void bin(header, data_size, UMcp) | ^ 12 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c jdw.c In file included from jdw.c:3: ./jdw.h:11:1: warning: typedef requires a name [-Wmissing-declarations] 11 | typedef struct fileHdr { | ^~~~~~~~~~~~~~~~~~~~~~ jdw.c:27:16: warning: passing arguments to 'set_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | set_huffman(HUFF_BE); | ^ jdw.c:28:38: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | for(i = 0; i < 6; i++) (void)getb(infp); | ^ jdw.c:33:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | info[I_TYPEOFF + i] = getb(infp); | ^ jdw.c:36:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | info[I_AUTHOFF + i] = getb(infp); | ^ jdw.c:39:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | info[I_FLAGOFF + i] = getb(infp); | ^ jdw.c:42:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | info[I_DLENOFF + i] = getb(infp); | ^ jdw.c:45:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | info[I_RLENOFF + i] = getb(infp); | ^ jdw.c:48:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | info[I_CTIMOFF + i] = getb(infp); | ^ jdw.c:51:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | info[I_MTIMOFF + i] = getb(infp); | ^ jdw.c:53:17: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | filel = getb(infp); | ^ jdw.c:57:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | info[I_NAMEOFF + i] = getb(infp); | ^ jdw.c:59:15: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | (void)getb(infp); | ^ jdw.c:60:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | rsrcLength = get4(info + I_RLENOFF); | ^ jdw.c:61:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | dataLength = get4(info + I_DLENOFF); | ^ jdw.c:65:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | transname(info + I_NAMEOFF + 1, text, (int)info[I_NAMEOFF]); | ^ jdw.c:66:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | transname(info + I_TYPEOFF, ftype, 4); | ^ jdw.c:67:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | transname(info + I_AUTHOFF, fauth, 4); | ^ jdw.c:68:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | do_indent(indent); | ^ jdw.c:81:15: warning: passing arguments to 'jdw_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | jdw_wrfile((unsigned long)rsrcLength, (unsigned long)dataLength); | ^ jdw.c:20:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | void jdw(ibytes) | ^ jdw.c:88:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | define_name(text); | ^ jdw.c:89:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | start_info(info, rsrcLength, dataLength); | ^ jdw.c:95:15: warning: passing arguments to 'jdw_wrfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | jdw_wrfork(dataLength); | ^ jdw.c:102:15: warning: passing arguments to 'jdw_wrfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | jdw_wrfork(rsrcLength); | ^ jdw.c:84:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | static void jdw_wrfile(rsrcLength, dataLength) | ^ jdw.c:16:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | static void jdw_wrfile(); | ^ jdw.c:125:16: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | olength = getb(infp) & BYTEMASK; | ^ jdw.c:126:34: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | olength = (olength << 8) | (getb(infp) & BYTEMASK); | ^ jdw.c:127:16: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | ilength = getb(infp) & BYTEMASK; | ^ jdw.c:128:34: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | ilength = (ilength << 8) | (getb(infp) & BYTEMASK); | ^ jdw.c:130:15: warning: passing arguments to 'jdw_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | jdw_block(olength); | ^ jdw.c:133:13: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | (void)getb(infp); | ^ jdw.c:111:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | static void jdw_wrfork(length) | ^ jdw.c:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | static void jdw_wrfork(); | ^ jdw.c:151:12: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | (void)getb(infp); | ^ jdw.c:155:15: warning: passing arguments to 'de_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | de_huffman((unsigned long)olength); | ^ jdw.c:144:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | static void jdw_block(olength) | ^ jdw.c:18:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | static void jdw_block(); | ^ 39 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c stf.c In file included from stf.c:3: ./stf.h:8:1: warning: typedef requires a name [-Wmissing-declarations] 8 | typedef struct fileHdr { | ^~~~~~~~~~~~~~~~~~~~~~ In file included from stf.c:6: ./../util/curtime.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern time_t time(); | ^ /usr/include/time.h:123:8: note: conflicting prototype is here 123 | time_t time(time_t *); | ^ stf.c:34:16: warning: passing arguments to 'set_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | set_huffman(HUFF_LE); | ^ stf.c:36:17: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | magic[i] = getb(infp); | ^ stf.c:38:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 38 | if(strncmp(magic, MAGIC, 3)) { | ^ stf.c:38:8: note: include the header or explicitly provide a declaration for 'strncmp' stf.c:48:17: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | filel = getb(infp); | ^ stf.c:52:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | info[I_NAMEOFF + i] = getb(infp); | ^ stf.c:55:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | info[I_TYPEOFF + i] = getb(infp); | ^ stf.c:58:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | info[I_AUTHOFF + i] = getb(infp); | ^ stf.c:61:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | put4(info + I_CTIMOFF, curtime); | ^ stf.c:62:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | put4(info + I_MTIMOFF, curtime); | ^ stf.c:65:39: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | rsrcLength = (rsrcLength << 8) + getb(infp); | ^ stf.c:67:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | put4(info + I_RLENOFF, (unsigned long)rsrcLength); | ^ stf.c:70:39: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | dataLength = (dataLength << 8) + getb(infp); | ^ stf.c:72:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | put4(info + I_DLENOFF, (unsigned long)dataLength); | ^ stf.c:76:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | transname(info + I_NAMEOFF + 1, text, (int)info[I_NAMEOFF]); | ^ stf.c:77:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | transname(info + I_TYPEOFF, ftype, 4); | ^ stf.c:78:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | transname(info + I_AUTHOFF, fauth, 4); | ^ stf.c:79:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | do_indent(indent); | ^ stf.c:92:15: warning: passing arguments to 'stf_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | stf_wrfile((unsigned long)rsrcLength, (unsigned long)dataLength, ibytes); | ^ stf.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void stf(ibytes) | ^ stf.c:101:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | define_name(text); | ^ stf.c:102:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | start_info(info, rsrcLength, dataLength); | ^ stf.c:104:12: warning: passing arguments to 'stf_wrfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | stf_wrfork(&num, rsrcLength, 0); | ^ stf.c:106:12: warning: passing arguments to 'stf_wrfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | stf_wrfork(&num, rsrcLength + dataLength, (int)(rsrcLength & 0xfff)); | ^ stf.c:110:16: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | (void)getb(infp); | ^ stf.c:95:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | static void stf_wrfile(rsrcLength, dataLength, ibytes) | ^ stf.c:22:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | static void stf_wrfile(); | ^ stf.c:129:14: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | c = getb(infp) & 0xff; | ^ stf.c:133:11: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | c = getb(infp) & 0xff; | ^ stf.c:157:19: warning: passing arguments to 'stf_construct' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | stf_construct(32); | ^ stf.c:160:16: warning: passing arguments to 'de_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | de_huffman((unsigned long)256); | ^ stf.c:177:19: warning: passing arguments to 'stf_construct' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | stf_construct(256); | ^ stf.c:184:12: warning: passing arguments to 'de_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | de_huffman((unsigned long)i); | ^ stf.c:119:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | static void stf_wrfork(num, towrite, offs) | ^ stf.c:23:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | static void stf_wrfork(); | ^ stf.c:189:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | static void stf_construct(n) | ^ stf.c:24:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | static void stf_construct(); | ^ 38 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c lzc.c In file included from lzc.c:4: ./lzc.h:15:1: warning: typedef requires a name [-Wmissing-declarations] 15 | typedef struct fileHdr { | ^~~~~~~~~~~~~~~~~~~~~~ lzc.c:21:18: warning: passing arguments to 'core_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | core_compress((char *)NULL); | ^ lzc.c:22:9: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 22 | if(!strncmp(ohdr + I_TYPEOFF, "ZIVM", 4)) { | ^ lzc.c:22:9: note: include the header or explicitly provide a declaration for 'strncmp' lzc.c:23:10: warning: passing arguments to 'lzc_zivm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | lzc_zivm(ohdr); | ^ lzc.c:25:10: warning: passing arguments to 'lzc_zivu' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | lzc_zivu(ohdr); | ^ lzc.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void lzc(ohdr) | ^ lzc.c:50:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | dataLength = get4(hdr + C_DLENOFF); | ^ lzc.c:51:23: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | dataCLength = get4(hdr + C_DLENOFFC); | ^ lzc.c:52:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | rsrcLength = get4(hdr + C_RLENOFF); | ^ lzc.c:53:23: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | rsrcCLength = get4(hdr + C_RLENOFFC); | ^ lzc.c:57:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | copy(info, ohdr, INFOBYTES); | ^ lzc.c:58:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | copy(info + I_TYPEOFF, hdr + C_TYPEOFF, 4); | ^ lzc.c:59:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | copy(info + I_AUTHOFF, hdr + C_AUTHOFF, 4); | ^ lzc.c:60:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | copy(info + I_DLENOFF, hdr + C_DLENOFF, 4); | ^ lzc.c:61:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | copy(info + I_RLENOFF, hdr + C_RLENOFF, 4); | ^ lzc.c:62:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | copy(info + I_CTIMOFF, hdr + C_CTIMOFF, 4); | ^ lzc.c:63:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | copy(info + I_MTIMOFF, hdr + C_MTIMOFF, 4); | ^ lzc.c:64:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | copy(info + I_FLAGOFF, hdr + C_FLAGOFF, 8); | ^ lzc.c:66:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | transname(ohdr + I_NAMEOFF + 1, text, (int)ohdr[I_NAMEOFF]); | ^ lzc.c:67:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | transname(hdr + C_TYPEOFF, ftype, 4); | ^ lzc.c:68:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | transname(hdr + C_AUTHOFF, fauth, 4); | ^ lzc.c:69:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | do_indent(indent); | ^ lzc.c:84:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | define_name(text); | ^ lzc.c:87:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | start_info(info, rsrcLength, dataLength); | ^ lzc.c:95:15: warning: passing arguments to 'lzc_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | lzc_wrfile(dataLength, dataCLength); | ^ lzc.c:102:15: warning: passing arguments to 'lzc_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | lzc_wrfile(rsrcLength, rsrcCLength); | ^ lzc.c:29:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | static void lzc_zivm(ohdr) | ^ lzc.c:14:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | static void lzc_zivm(); | ^ lzc.c:169:17: warning: passing arguments to 'de_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | de_compress(ibytes - 3, nbits); | ^ lzc.c:111:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | static void lzc_wrfile(obytes, ibytes) | ^ lzc.c:15:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | static void lzc_wrfile(); | ^ lzc.c:190:8: warning: passing arguments to 'mcb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | mcb(ohdr, (unsigned long)in_rsrc_size, (unsigned long)in_data_size, | ^ lzc.c:185:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | static void lzc_zivu(ohdr) | ^ lzc.c:16:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | static void lzc_zivu(); | ^ 34 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c pit.c pit.c:32:16: warning: passing arguments to 'set_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | set_huffman(HUFF_BE); | ^ pit.c:45:5: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | if(strncmp(pithdr, "PEnd", 4) == 0) { | ^ pit.c:45:5: note: include the header or explicitly provide a declaration for 'strncmp' pit.c:67:12: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | ch = getb(infp); | ^ pit.c:70:28: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | pithdr[1] = ch = getb(infp); | ^ pit.c:72:25: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | pithdr[2] = ch = getb(infp); | ^ pit.c:74:29: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | pithdr[3] = ch = getb(infp); | ^ pit.c:80:25: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | pithdr[2] = ch = getb(infp); | ^ pit.c:82:29: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | pithdr[3] = ch = getb(infp); | ^ pit.c:113:16: warning: passing arguments to 'pit_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if(pit_filehdr(&filehdr, decode) == -1) { | ^ pit.c:121:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | start_info(info, filehdr.rlen, filehdr.dlen); | ^ pit.c:123:12: warning: passing arguments to 'pit_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | pit_wrfile(filehdr.dlen, decode); | ^ pit.c:124:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | data_crc = (*updcrc)(INIT_CRC, out_buffer, filehdr.dlen); | ^ pit.c:126:12: warning: passing arguments to 'pit_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | pit_wrfile(filehdr.rlen, decode); | ^ pit.c:127:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | data_crc = (*updcrc)(data_crc, out_buffer, filehdr.rlen); | ^ pit.c:129:16: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | crc = getb(infp); | ^ pit.c:130:29: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | crc = (crc << 8) | getb(infp); | ^ pit.c:132:13: warning: call to undeclared function 'getihuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | crc = (getihuffbyte() & BYTEMASK) | | ^ pit.c:176:15: warning: call to undeclared function 'getihuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 176 | hdr[i] = getihuffbyte(); | ^ pit.c:184:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | crc = (*updcrc)(crc, hdr, HDRBYTES - 2); | ^ pit.c:186:21: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | f->hdrCRC = get2(hdr + H_HDRCRC); | ^ pit.c:199:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | copy(info + I_NAMEOFF + 1, hdr + H_NAMEOFF, n); | ^ pit.c:200:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | transname(hdr + H_NAMEOFF, text, n); | ^ pit.c:203:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | f->rlen = get4(hdr + H_RLENOFF); | ^ pit.c:204:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | f->dlen = get4(hdr + H_DLENOFF); | ^ pit.c:208:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | transname(hdr + H_TYPEOFF, ftype, 4); | ^ pit.c:209:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | transname(hdr + H_AUTHOFF, fauth, 4); | ^ pit.c:210:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | do_indent(indent); | ^ pit.c:226:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | define_name(text); | ^ pit.c:228:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | copy(info + I_TYPEOFF, hdr + H_TYPEOFF, 4); | ^ pit.c:229:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | copy(info + I_AUTHOFF, hdr + H_AUTHOFF, 4); | ^ pit.c:230:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | copy(info + I_FLAGOFF, hdr + H_FLAGOFF, 2); | ^ pit.c:231:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | copy(info + I_LOCKOFF, hdr + H_LOCKOFF, 2); | ^ pit.c:232:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | copy(info + I_DLENOFF, hdr + H_DLENOFF, 4); | ^ pit.c:233:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | copy(info + I_RLENOFF, hdr + H_RLENOFF, 4); | ^ pit.c:234:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | copy(info + I_CTIMOFF, hdr + H_CTIMOFF, 4); | ^ pit.c:235:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | copy(info + I_MTIMOFF, hdr + H_MTIMOFF, 4); | ^ pit.c:161:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | static int pit_filehdr(f, compr) | ^ pit.c:18:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | static int pit_filehdr(); | ^ pit.c:249:12: warning: passing arguments to 'pit_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | pit_nocomp(bytes); | ^ pit.c:252:13: warning: passing arguments to 'pit_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | pit_huffman(bytes); | ^ pit.c:240:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | static void pit_wrfile(bytes, type) | ^ pit.c:19:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | static void pit_wrfile(); | ^ pit.c:259:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | static void pit_nocomp(ibytes) | ^ pit.c:20:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | static void pit_nocomp(); | ^ pit.c:280:15: warning: passing arguments to 'de_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | de_huffman(obytes); | ^ pit.c:277:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | static void pit_huffman(obytes) | ^ pit.c:21:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | static void pit_huffman(); | ^ 47 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c sit.c In file included from sit.c:4: ./sit.h:27:1: warning: typedef requires a name [-Wmissing-declarations] 27 | typedef struct sitHdr { /* 22 bytes */ | ^~~~~~~~~~~~~~~~~~~~~ ./sit.h:37:1: warning: typedef requires a name [-Wmissing-declarations] 37 | typedef struct fileHdr { /* 112 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~ sit.c:22:1: warning: typedef requires a name [-Wmissing-declarations] 22 | typedef struct methodinfo { | ^~~~~~~~~~~~~~~~~~~~~~~~~ sit.c:104:16: warning: passing arguments to 'set_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | set_huffman(HUFF_BE); | ^ sit.c:105:18: warning: passing arguments to 'core_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | core_compress((char *)NULL); | ^ sit.c:108:18: warning: passing arguments to 'readsithdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if(readsithdr(&sithdr) == 0) { | ^ sit.c:117:16: warning: passing arguments to 'sit_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if(sit_filehdr(&filehdr, 0) == -1) { | ^ sit.c:124:15: warning: passing arguments to 'sit_valid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if(!sit_valid(filehdr)) { | ^ sit.c:128:16: warning: passing arguments to 'sit_folder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | sit_folder(text); | ^ sit.c:130:17: warning: passing arguments to 'sit_unstuff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | sit_unstuff(filehdr); | ^ sit.c:144:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | if(strncmp(temp + S_SIGNATURE, "SIT!", 4) != 0 || | ^ sit.c:144:8: note: include the header or explicitly provide a declaration for 'strncmp' sit.c:150:23: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | s->numFiles = get2(temp + S_NUMFILES); | ^ sit.c:151:24: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | s->arcLength = get4(temp + S_ARCLENGTH); | ^ sit.c:135:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | static int readsithdr(s) | ^ sit.c:38:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 38 | static int readsithdr(); | ^ sit.c:174:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | crc = (*updcrc)(crc, hdr, FILEHDRSIZE - 2); | ^ sit.c:176:21: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | f->hdrCRC = get2(hdr + F_HDRCRC); | ^ sit.c:188:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | copy(info + I_NAMEOFF + 1, hdr + F_FNAME + 1, n); | ^ sit.c:189:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | transname(hdr + F_FNAME + 1, text, n); | ^ sit.c:193:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | f->rsrcLength = get4(hdr + F_RSRCLENGTH); | ^ sit.c:194:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | f->dataLength = get4(hdr + F_DATALENGTH); | ^ sit.c:195:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | f->compRLength = get4(hdr + F_COMPRLENGTH); | ^ sit.c:196:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | f->compDLength = get4(hdr + F_COMPDLENGTH); | ^ sit.c:197:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | f->rsrcCRC = get2(hdr + F_RSRCCRC); | ^ sit.c:198:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | f->dataCRC = get2(hdr + F_DATACRC); | ^ sit.c:203:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | do_indent(indent); | ^ sit.c:208:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | transname(hdr + F_FTYPE, ftype, 4); | ^ sit.c:209:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | transname(hdr + F_CREATOR, fauth, 4); | ^ sit.c:228:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | define_name(text); | ^ sit.c:231:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | copy(info + I_TYPEOFF, hdr + F_FTYPE, 4); | ^ sit.c:232:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | copy(info + I_AUTHOFF, hdr + F_CREATOR, 4); | ^ sit.c:233:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | copy(info + I_FLAGOFF, hdr + F_FNDRFLAGS, 2); | ^ sit.c:234:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | copy(info + I_DLENOFF, hdr + F_DATALENGTH, 4); | ^ sit.c:235:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | copy(info + I_RLENOFF, hdr + F_RSRCLENGTH, 4); | ^ sit.c:236:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | copy(info + I_CTIMOFF, hdr + F_CREATIONDATE, 4); | ^ sit.c:237:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | copy(info + I_MTIMOFF, hdr + F_MODDATE, 4); | ^ sit.c:156:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | static int sit_filehdr(f, skip) | ^ sit.c:39:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | static int sit_filehdr(); | ^ sit.c:262:15: warning: passing arguments to 'sit_checkm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | if(sit_checkm(fr) && sit_checkm(fd)) { | ^ sit.c:262:33: warning: passing arguments to 'sit_checkm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | if(sit_checkm(fr) && sit_checkm(fd)) { | ^ sit.c:265:16: warning: passing arguments to 'sit_checkm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | if(!sit_checkm(fr)) { | ^ sit.c:267:19: warning: passing arguments to 'sit_methname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | sit_methname(fr)); | ^ sit.c:270:19: warning: passing arguments to 'sit_methname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | sit_methname(fd)); | ^ sit.c:282:13: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | sit_skip(f.compRLength); | ^ sit.c:283:13: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | sit_skip(f.compDLength); | ^ sit.c:243:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | static int sit_valid(f) | ^ sit.c:40:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 40 | static int sit_valid(); | ^ sit.c:287:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | static int sit_checkm(f) | ^ sit.c:41:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 41 | static int sit_checkm(); | ^ sit.c:311:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | static char *sit_methname(n) | ^ sit.c:42:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 42 | static char *sit_methname(); | ^ sit.c:336:14: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | do_mkdir(text, info); | ^ sit.c:355:14: warning: passing arguments to 'sit_unstuff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | sit_unstuff(filehdr); | ^ sit.c:363:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | do_indent(indent); | ^ sit.c:384:11: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | sit_skip(filehdr.compRLength); | ^ sit.c:385:11: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | sit_skip(filehdr.compDLength); | ^ sit.c:324:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | static void sit_folder(name) | ^ sit.c:43:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | static void sit_folder(); | ^ sit.c:397:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | start_info(info, filehdr.rsrcLength, filehdr.dataLength); | ^ sit.c:405:15: warning: passing arguments to 'sit_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | sit_wrfile(filehdr.compRLength, filehdr.rsrcLength, filehdr.compRMethod); | ^ sit.c:407:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | crc = (*updcrc)(INIT_CRC, out_buffer, filehdr.rsrcLength); | ^ sit.c:424:15: warning: passing arguments to 'sit_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | sit_wrfile(filehdr.compDLength, filehdr.dataLength, filehdr.compDMethod); | ^ sit.c:426:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | crc = (*updcrc)(INIT_CRC, out_buffer, filehdr.dataLength); | ^ sit.c:391:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | static void sit_unstuff(filehdr) | ^ sit.c:44:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | static void sit_unstuff(); | ^ sit.c:459:16: warning: passing arguments to 'sit_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | sit_nocomp(ibytes); | ^ sit.c:461:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | sit_skip(ibytes); | ^ sit.c:470:13: warning: passing arguments to 'sit_rle' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | sit_rle(ibytes); | ^ sit.c:472:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | sit_skip(ibytes); | ^ sit.c:481:13: warning: passing arguments to 'sit_lzc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | sit_lzc(ibytes); | ^ sit.c:483:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | sit_skip(ibytes); | ^ sit.c:492:17: warning: passing arguments to 'sit_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 492 | sit_huffman(obytes); | ^ sit.c:494:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | sit_skip(ibytes); | ^ sit.c:503:14: warning: passing arguments to 'sit_lzah' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | sit_lzah(obytes); | ^ sit.c:505:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 505 | sit_skip(ibytes); | ^ sit.c:514:16: warning: passing arguments to 'sit_fixhuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | sit_fixhuf(ibytes); | ^ sit.c:516:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | sit_skip(ibytes); | ^ sit.c:525:12: warning: passing arguments to 'sit_mw' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | sit_mw(ibytes); | ^ sit.c:527:14: warning: passing arguments to 'sit_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | sit_skip(ibytes); | ^ sit.c:443:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | static void sit_wrfile(ibytes, obytes, type) | ^ sit.c:45:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | static void sit_wrfile(); | ^ sit.c:540:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | static void sit_skip(ibytes) | ^ sit.c:46:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | static void sit_skip(); | ^ sit.c:558:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | static void sit_nocomp(ibytes) | ^ sit.c:47:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 47 | static void sit_nocomp(); | ^ sit.c:582:11: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | ch = getb(infp) & BYTEMASK; | ^ sit.c:585:15: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | n = (getb(infp) & BYTEMASK) - 1; | ^ sit.c:576:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | static void sit_rle(ibytes) | ^ sit.c:48:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 48 | static void sit_rle(); | ^ sit.c:609:16: warning: passing arguments to 'de_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | de_compress(ibytes, 14); | ^ sit.c:606:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | static void sit_lzc(ibytes) | ^ sit.c:49:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 49 | static void sit_lzc(); | ^ sit.c:619:15: warning: passing arguments to 'de_huffman' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | de_huffman(obytes); | ^ sit.c:615:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | static void sit_huffman(obytes) | ^ sit.c:50:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | static void sit_huffman(); | ^ sit.c:629:12: warning: passing arguments to 'de_lzah' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 629 | de_lzah(obytes); | ^ sit.c:625:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 625 | static void sit_lzah(obytes) | ^ sit.c:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | static void sit_lzah(); | ^ sit.c:634:16: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 634 | return getb(infp); | ^ sit.c:655:16: warning: passing arguments to 'sit_dosplit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 655 | sit_dosplit(0, sum, 1, 258); | ^ sit.c:665:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 665 | size = (long)get4(byte_int); | ^ sit.c:699:18: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | codes = get2(byte_short); | ^ sit.c:701:26: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | nodelist[i].byte = getb(infp); | ^ sit.c:710:20: warning: passing arguments to 'de_huffman_end' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | de_huffman_end(0x100); | ^ sit.c:712:13: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | (void)getb(infp); | ^ sit.c:715:17: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | size = get4(byte_int); | ^ sit.c:640:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 640 | static void sit_fixhuf(ibytes) | ^ sit.c:53:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | static void sit_fixhuf(); | ^ sit.c:736:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | static void sit_dosplit(ptr, sum, low, upp) | ^ sit.c:54:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | static void sit_dosplit(); | ^ sit.c:778:20: warning: passing arguments to 'sit_mw_in' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 778 | ptr = sit_mw_in(bits, &ibytes); | ^ sit.c:787:15: warning: passing arguments to 'sit_mw_out' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 787 | sit_mw_out(ptr); | ^ sit.c:789:17: warning: passing arguments to 'sit_mw_in' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | ptr = sit_mw_in(bits, &ibytes); | ^ sit.c:802:12: warning: passing arguments to 'sit_mw_out' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 802 | sit_mw_out(ptr); | ^ sit.c:764:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 764 | static void sit_mw(ibytes) | ^ sit.c:55:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | static void sit_mw(); | ^ sit.c:806:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 806 | static void sit_mw_out(ptr) | ^ sit.c:56:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | static void sit_mw_out(); | ^ sit.c:835:20: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 835 | sit_avail += (getb(infp) & BYTEMASK) << sit_bits_avail; | ^ sit.c:824:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | static int sit_mw_in(bits, ibytes) | ^ sit.c:57:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static int sit_mw_in(); | ^ 121 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dia.c In file included from dia.c:5: ./../util/curtime.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern time_t time(); | ^ /usr/include/time.h:123:8: note: conflicting prototype is here 123 | time_t time(time_t *); | ^ dia.c:52:43: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | dia_archive = (unsigned char *)malloc((unsigned)in_data_size); | ^ dia.c:54:44: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | dia_archive = (unsigned char *)realloc((char *)dia_archive, | ^ dia.c:72:9: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | if(!strncmp((char *)bin_hdr + I_NAMEOFF + nlength - 1, " \272", 2)) { | ^ dia.c:72:9: note: include the header or explicitly provide a declaration for 'strncmp' dia.c:97:37: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | header = (unsigned char *)malloc((unsigned)(i * CHUNKSIZE)); | ^ dia.c:102:14: warning: passing arguments to 'dia_getblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | dia_getblock(&dia_archive_ptr, &dia_header_last); | ^ dia.c:106:12: warning: passing arguments to 'dia_folder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | dia_folder((unsigned char *)NULL); | ^ dia.c:108:10: warning: passing arguments to 'dia_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | dia_file(*dia_header_ptr++, (unsigned char *)NULL); | ^ dia.c:110:5: warning: call to undeclared function 'free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 110 | free((char *)header); | ^ dia.c:39:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | void dia(bin_hdr) | ^ dia.c:138:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | transname(info + I_NAMEOFF + 1, (char *)lname, length); | ^ dia.c:139:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | do_indent(indent); | ^ dia.c:153:14: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | do_mkdir((char *)lname, info); | ^ dia.c:178:14: warning: passing arguments to 'dia_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | dia_file(indicator, old_ptr); | ^ dia.c:187:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | do_indent(indent); | ^ dia.c:113:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | static void dia_folder(name) | ^ dia.c:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | static void dia_folder(); | ^ dia.c:235:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | put4(info + I_CTIMOFF, curtime); | ^ dia.c:236:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | put4(info + I_MTIMOFF, curtime); | ^ dia.c:261:15: warning: passing arguments to 'dia_getlength' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | dia_getlength(n_data); | ^ dia.c:265:15: warning: passing arguments to 'dia_getlength' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | dia_getlength(n_rsrc); | ^ dia.c:270:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | put4(info + I_DLENOFF, (unsigned long)dataLength); | ^ dia.c:271:6: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | put4(info + I_RLENOFF, (unsigned long)rsrcLength); | ^ dia.c:273:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | transname(info + I_NAMEOFF + 1, (char *)lname, length); | ^ dia.c:274:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | do_indent(indent); | ^ dia.c:275:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | transname(info + I_TYPEOFF, ftype, 4); | ^ dia.c:276:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | transname(info + I_AUTHOFF, fauth, 4); | ^ dia.c:294:14: warning: passing arguments to 'dia_skipfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | dia_skipfork(n_data); | ^ dia.c:295:14: warning: passing arguments to 'dia_skipfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | dia_skipfork(n_rsrc); | ^ dia.c:299:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | define_name((char *)lname); | ^ dia.c:300:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | start_info(info, (unsigned long)rsrcLength, (unsigned long)dataLength); | ^ dia.c:318:13: warning: passing arguments to 'dia_getfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | dia_getfork(n_data); | ^ dia.c:320:14: warning: passing arguments to 'dia_skipfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | dia_skipfork(n_data); | ^ dia.c:338:13: warning: passing arguments to 'dia_getfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | dia_getfork(n_rsrc); | ^ dia.c:340:14: warning: passing arguments to 'dia_skipfork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | dia_skipfork(n_rsrc); | ^ dia.c:195:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | static void dia_file(indicator, name) | ^ dia.c:31:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | static void dia_file(); | ^ dia.c:362:15: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | length = get2((char *)dia_archive_ptr); | ^ dia.c:376:14: warning: passing arguments to 'dia_getblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | dia_getblock(&arch_ptr, &block_ptr); | ^ dia.c:350:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | static void dia_getlength(nblocks) | ^ dia.c:32:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | static void dia_getlength(); | ^ dia.c:389:15: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | length = get2((char *)dia_archive_ptr); | ^ dia.c:383:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | static void dia_skipfork(nblocks) | ^ dia.c:33:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | static void dia_skipfork(); | ^ dia.c:401:14: warning: passing arguments to 'dia_getblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | dia_getblock(&dia_archive_ptr, (unsigned char **)&out_ptr); | ^ dia.c:397:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | static void dia_getfork(nblocks) | ^ dia.c:34:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | static void dia_getfork(); | ^ dia.c:413:18: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | length = get2((char *)arch_ptr); | ^ dia.c:423:26: warning: passing arguments to 'dia_decode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | *block_ptr += dia_decode(arch_ptr, bl_ptr, length); | ^ dia.c:405:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | static void dia_getblock(archive_ptr, block_ptr) | ^ dia.c:35:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | static void dia_getblock(); | ^ dia.c:429:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | static int dia_decode(ibuff, obuff, in_length) | ^ dia.c:36:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | static int dia_decode(); | ^ 53 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c cpt.c In file included from cpt.c:9: ./cpt.h:34:1: warning: typedef requires a name [-Wmissing-declarations] 34 | typedef struct cptHdr { /* 8 bytes */ | ^~~~~~~~~~~~~~~~~~~~~ ./cpt.h:90:16: warning: '/*' within block comment [-Wcomment] 90 | /* ???? 8 /* unknown */ | ^ ./cpt.h:45:1: warning: typedef requires a name [-Wmissing-declarations] 45 | typedef struct fileHdr { /* 78 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~ cpt.c:73:18: warning: passing arguments to 'readcpthdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if(readcpthdr(&cpthdr) == 0) { | ^ cpt.c:85:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | cptindex = malloc((unsigned)cptindsize); | ^ cpt.c:98:24: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | cpt_crc = (*updcrc)(cpt_crc, cptptr, cpthdr.commentsize); | ^ cpt.c:102:21: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | cpt_crc = (*updcrc)(cpt_crc, cptptr, 1); | ^ cpt.c:116:21: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | cpt_crc = (*updcrc)(cpt_crc, cptptr + 1, *cptptr); | ^ cpt.c:125:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | cpt_crc = (*updcrc)(cpt_crc, cptptr + F_FOLDERSIZE, 2); | ^ cpt.c:135:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | cpt_crc = (*updcrc)(cpt_crc, cptptr + F_VOLUME, | ^ cpt.c:151:16: warning: passing arguments to 'cpt_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if(cpt_filehdr(&filehdr, cptptr) == -1) { | ^ cpt.c:159:16: warning: passing arguments to 'cpt_folder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | cpt_folder(text, filehdr, cptptr); | ^ cpt.c:163:19: warning: passing arguments to 'cpt_uncompact' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | cpt_uncompact(filehdr); | ^ cpt.c:167:15: warning: passing arguments to 'free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | (void)free(cptindex); | ^ cpt.c:184:24: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | cpt_datasize = get4(temp + C_IOFFSET); | ^ cpt.c:188:40: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | cpt_data = (unsigned char *)malloc((unsigned)cpt_datasize); | ^ cpt.c:190:41: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | cpt_data = (unsigned char *)realloc((char *)cpt_data, | ^ cpt.c:209:24: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | cpt_crc = (*updcrc)(cpt_crc, temp + CPTHDRSIZE + C_ENTRIES, 3); | ^ cpt.c:210:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | s->hdrcrc = get4(temp + CPTHDRSIZE + C_HDRCRC); | ^ cpt.c:211:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | s->entries = get2(temp + CPTHDRSIZE + C_ENTRIES); | ^ cpt.c:170:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | static int readcpthdr(s) | ^ cpt.c:48:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 48 | static int readcpthdr(); | ^ cpt.c:234:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | copy(info + I_NAMEOFF + 1, hdr + F_FNAME + 1, n); | ^ cpt.c:235:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | transname(hdr + F_FNAME + 1, text, n); | ^ cpt.c:239:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | f->foldersize = get2(hdr + F_FOLDERSIZE); | ^ cpt.c:241:19: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | f->cptFlag = get2(hdr + F_CPTFLAG); | ^ cpt.c:242:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | f->rsrcLength = get4(hdr + F_RSRCLENGTH); | ^ cpt.c:243:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | f->dataLength = get4(hdr + F_DATALENGTH); | ^ cpt.c:244:23: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | f->compRLength = get4(hdr + F_COMPRLENGTH); | ^ cpt.c:245:23: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | f->compDLength = get4(hdr + F_COMPDLENGTH); | ^ cpt.c:246:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | f->fileCRC = get4(hdr + F_FILECRC); | ^ cpt.c:247:21: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | f->FndrFlags = get2(hdr + F_FNDRFLAGS); | ^ cpt.c:248:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | f->filepos = get4(hdr + F_FILEPOS); | ^ cpt.c:254:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | do_indent(indent); | ^ cpt.c:258:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | transname(hdr + F_FTYPE, ftype, 4); | ^ cpt.c:259:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | transname(hdr + F_CREATOR, fauth, 4); | ^ cpt.c:277:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | define_name(text); | ^ cpt.c:280:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | copy(info + I_TYPEOFF, hdr + F_FTYPE, 4); | ^ cpt.c:281:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | copy(info + I_AUTHOFF, hdr + F_CREATOR, 4); | ^ cpt.c:282:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | copy(info + I_FLAGOFF, hdr + F_FNDRFLAGS, 2); | ^ cpt.c:283:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | copy(info + I_DLENOFF, hdr + F_DATALENGTH, 4); | ^ cpt.c:284:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | copy(info + I_RLENOFF, hdr + F_RSRCLENGTH, 4); | ^ cpt.c:285:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | copy(info + I_CTIMOFF, hdr + F_CREATIONDATE, 4); | ^ cpt.c:286:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | copy(info + I_MTIMOFF, hdr + F_MODDATE, 4); | ^ cpt.c:217:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | static int cpt_filehdr(f, hdr) | ^ cpt.c:49:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 49 | static int cpt_filehdr(); | ^ cpt.c:308:14: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | do_mkdir(text, info); | ^ cpt.c:324:16: warning: passing arguments to 'cpt_uncompact' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | cpt_uncompact(filehdr); | ^ cpt.c:333:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | do_indent(indent); | ^ cpt.c:292:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | static void cpt_folder(name, fileh, cptptr) | ^ cpt.c:50:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 50 | static void cpt_folder(); | ^ cpt.c:350:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | start_info(info, filehdr.rsrcLength, filehdr.dataLength); | ^ cpt.c:368:12: warning: passing arguments to 'cpt_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | cpt_wrfile(filehdr.compRLength, filehdr.rsrcLength, | ^ cpt.c:386:12: warning: passing arguments to 'cpt_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | cpt_wrfile(filehdr.compDLength, filehdr.dataLength, | ^ cpt.c:339:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | static void cpt_uncompact(filehdr) | ^ cpt.c:51:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 51 | static void cpt_uncompact(); | ^ cpt.c:421:24: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | cpt_crc = (*updcrc)(cpt_crc, out_buffer, obytes); | ^ cpt.c:404:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | static void cpt_wrfile(ibytes, obytes, type) | ^ cpt.c:52:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 52 | static void cpt_wrfile(); | ^ cpt.c:424:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | void cpt_wrfile1(in_char, ibytes, obytes, type, blocksize) | ^ cpt.c:53:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 53 | void cpt_wrfile1(); | ^ cpt.c:445:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 445 | static void cpt_outch(ch) | ^ cpt.c:54:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 54 | static void cpt_outch(); | ^ cpt.c:526:14: warning: passing arguments to 'cpt_readHuff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | cpt_readHuff(256, cpt_Hufftree); | ^ cpt.c:527:14: warning: passing arguments to 'cpt_readHuff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | cpt_readHuff(64, cpt_LZlength); | ^ cpt.c:528:14: warning: passing arguments to 'cpt_readHuff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 528 | cpt_readHuff(128, cpt_LZoffs); | ^ cpt.c:536:14: warning: call to undeclared function 'gethuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 536 | Huffchar = gethuffbyte(cpt_Hufftree); | ^ cpt.c:540:14: warning: call to undeclared function 'gethuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 540 | LZlength = gethuffbyte(cpt_LZlength); | ^ cpt.c:562:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | static void cpt_readHuff(size, Hufftree) | ^ cpt.c:57:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static void cpt_readHuff(); | ^ 70 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c zma.c In file included from zma.c:4: ./zma.h:23:1: warning: typedef requires a name [-Wmissing-declarations] 23 | typedef struct fileHdr { /* 78 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~ zma.c:40:23: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | zma_archive = malloc((unsigned)length); | ^ zma.c:42:24: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | zma_archive = realloc(zma_archive, (unsigned)length); | ^ zma.c:57:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | zma_length = get4(zma_archive + ZMAHDRS + 1); | ^ zma.c:66:20: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | zma_length = get4(start + ZMAHDRS + 1); | ^ zma.c:69:23: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | zma_archive = malloc((unsigned)zma_length); | ^ zma.c:71:24: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | zma_archive = realloc(zma_archive, (unsigned)zma_length); | ^ zma.c:100:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 100 | if(strncmp(zma_archive + 1, ZMAHDR, ZMAHDRS)) { | ^ zma.c:100:8: note: include the header or explicitly provide a declaration for 'strncmp' zma.c:108:16: warning: passing arguments to 'zma_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if(zma_filehdr(&filehdr, 0) == -1) { | ^ zma.c:117:16: warning: passing arguments to 'zma_folder' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | zma_folder(filehdr); | ^ zma.c:119:14: warning: passing arguments to 'zma_mooz' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | zma_mooz(filehdr); | ^ zma.c:30:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | void zma(start, length) | ^ zma.c:145:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | copy(info + I_NAMEOFF + 1, zma_current + Z_FNAME + 1, n); | ^ zma.c:146:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | transname(zma_current + Z_FNAME + 1, text, n); | ^ zma.c:149:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | f->rsrcLength = get4(zma_current + Z_URLEN); | ^ zma.c:150:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | f->dataLength = get4(zma_current + Z_UDLEN); | ^ zma.c:151:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | f->compRLength = get4(zma_current + Z_CRLEN); | ^ zma.c:152:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | f->compDLength = get4(zma_current + Z_CDLEN); | ^ zma.c:153:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | f->rsrcCRC = get2(zma_current + Z_RCRC); | ^ zma.c:154:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | f->dataCRC = get2(zma_current + Z_DCRC); | ^ zma.c:156:19: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | f->next = get4(zma_current + Z_NEXT); | ^ zma.c:158:17: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | f->conts = get4(zma_current + Z_AUTH); | ^ zma.c:173:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | do_indent(indent); | ^ zma.c:177:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | transname(zma_current + Z_TYPE, ftype, 4); | ^ zma.c:178:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | transname(zma_current + Z_AUTH, fauth, 4); | ^ zma.c:215:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | define_name(text); | ^ zma.c:218:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | copy(info + I_TYPEOFF, zma_current + Z_TYPE, 4); | ^ zma.c:219:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | copy(info + I_AUTHOFF, zma_current + Z_AUTH, 4); | ^ zma.c:220:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | copy(info + I_FLAGOFF, zma_current + Z_FLAGS, 2); | ^ zma.c:221:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | copy(info + I_DLENOFF, zma_current + Z_UDLEN, 4); | ^ zma.c:222:10: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | put4(zma_current + Z_URLEN, f->rsrcLength); | ^ zma.c:223:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | copy(info + I_RLENOFF, zma_current + Z_URLEN, 4); | ^ zma.c:224:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | copy(info + I_CTIMOFF, zma_current + Z_MDATE, 4); | ^ zma.c:225:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | copy(info + I_MTIMOFF, zma_current + Z_MDATE, 4); | ^ zma.c:125:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | static int zma_filehdr(f, skip) | ^ zma.c:23:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | static int zma_filehdr(); | ^ zma.c:244:14: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | do_mkdir(text, info); | ^ zma.c:259:11: warning: passing arguments to 'zma_mooz' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | zma_mooz(filehdr); | ^ zma.c:268:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | do_indent(indent); | ^ zma.c:231:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | static void zma_folder(fhdr) | ^ zma.c:24:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | static void zma_folder(); | ^ zma.c:280:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | start_info(info, filehdr.rsrcLength, filehdr.dataLength); | ^ zma.c:288:15: warning: passing arguments to 'zma_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | zma_wrfile(filehdr.compDLength, filehdr.dataLength, filehdr.what); | ^ zma.c:290:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | crc = (*updcrc)(INIT_CRC, out_buffer, filehdr.dataLength); | ^ zma.c:307:15: warning: passing arguments to 'zma_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | zma_wrfile(filehdr.compRLength, filehdr.rsrcLength, filehdr.what); | ^ zma.c:309:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | crc = (*updcrc)(INIT_CRC, out_buffer, filehdr.rsrcLength); | ^ zma.c:274:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | static void zma_mooz(filehdr) | ^ zma.c:25:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | static void zma_mooz(); | ^ zma.c:342:16: warning: passing arguments to 'zma_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | zma_nocomp(ibytes); | ^ zma.c:351:13: warning: passing arguments to 'zma_lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | zma_lzh(ibytes); | ^ zma.c:326:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | static void zma_wrfile(ibytes, obytes, type) | ^ zma.c:26:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | static void zma_wrfile(); | ^ zma.c:366:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 366 | static void zma_nocomp(ibytes) | ^ zma.c:27:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | static void zma_nocomp(); | ^ zma.c:384:11: warning: passing arguments to 'de_lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | de_lzh((long)ibytes, (long)(-1), &zma_filestart, 13); | ^ zma.c:380:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | static void zma_lzh(ibytes) | ^ zma.c:28:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | static void zma_lzh(); | ^ 57 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c lzh.c In file included from lzh.c:4: ./lzh.h:33:1: warning: typedef requires a name [-Wmissing-declarations] 33 | typedef struct fileHdr { /* 58 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~ lzh.c:26:1: warning: typedef requires a name [-Wmissing-declarations] 26 | typedef struct methodinfo { | ^~~~~~~~~~~~~~~~~~~~~~~~~ lzh.c:90:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | lzh_archive = malloc((unsigned)in_data_size); | ^ lzh.c:93:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | lzh_archive = realloc(lzh_archive, (unsigned)in_data_size); | ^ lzh.c:112:16: warning: passing arguments to 'lzh_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if(lzh_filehdr(&filehdr) == 0) { | ^ lzh.c:115:16: warning: passing arguments to 'lzh_checkm' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | m = lzh_checkm(&filehdr); | ^ lzh.c:120:14: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | lzh_skip(&filehdr); | ^ lzh.c:127:10: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | !strncmp(lzh_finfo, filehdr.extend, lzh_fsize)) { | ^ lzh.c:127:10: note: include the header or explicitly provide a declaration for 'strncmp' lzh.c:129:11: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | lzh_skip(&filehdr); | ^ lzh.c:142:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | transname(lzh_finfo + i, loc_name, lzh_fsize - i - 1); | ^ lzh.c:150:16: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | do_indent(indent); | ^ lzh.c:163:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | transname(lzh_finfo + lzh_fsize, loc_name, i - lzh_fsize); | ^ lzh.c:168:10: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | copy(dirinfo + I_NAMEOFF + 1, lzh_finfo + lzh_fsize, i - lzh_fsize); | ^ lzh.c:171:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | do_indent(indent); | ^ lzh.c:183:11: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | do_mkdir(loc_name, dirinfo); | ^ lzh.c:190:14: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | lzh_skip(&filehdr); | ^ lzh.c:192:16: warning: passing arguments to 'lzh_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | lzh_wrfile(&filehdr, m); | ^ lzh.c:200:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | transname(lzh_finfo + i, loc_name, lzh_fsize - i - 1); | ^ lzh.c:210:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | do_indent(indent); | ^ lzh.c:76:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | void lzh(kind) | ^ lzh.c:247:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | copy(&(f->method[0]), hdr + L_METHOD, 5); | ^ lzh.c:248:21: warning: passing arguments to 'get4i' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | f->psize = get4i(hdr + L_PSIZE); | ^ lzh.c:249:22: warning: passing arguments to 'get4i' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | f->upsize = get4i(hdr + L_UPSIZE); | ^ lzh.c:250:23: warning: passing arguments to 'get4i' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | f->lastmod = get4i(hdr + L_LASTMOD); | ^ lzh.c:268:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | copy(info + I_NAMEOFF + 1, hdr + L_NAME, (int)f->nlength); | ^ lzh.c:269:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | transname(hdr + L_NAME, text, (int)f->nlength); | ^ lzh.c:271:16: warning: passing arguments to 'get2i' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | f->crc = get2i(hdr + ext_ptr + L_CRC); | ^ lzh.c:285:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | copy(info + I_NAMEOFF + 1, hdr + L_2EXTEND + 2, (int)f->nlength); | ^ lzh.c:286:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | transname(hdr + L_2EXTEND + 2, text, (int)f->nlength); | ^ lzh.c:288:16: warning: passing arguments to 'get2i' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | f->crc = get2i(hdr + L_2CRC); | ^ lzh.c:217:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | static int lzh_filehdr(f) | ^ lzh.c:55:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 55 | static int lzh_filehdr(); | ^ lzh.c:339:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 339 | static int lzh_checkm(f) | ^ lzh.c:56:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | static int lzh_checkm(); | ^ lzh.c:355:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | static char *lzh_methname(n) | ^ lzh.c:57:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static char *lzh_methname(); | ^ lzh.c:376:23: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | lzh_file = malloc((unsigned)filehdr->upsize); | ^ lzh.c:378:24: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | lzh_file = realloc(lzh_file, (unsigned)filehdr->upsize); | ^ lzh.c:387:12: warning: passing arguments to 'lzh_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | lzh_nocomp((unsigned long)128); | ^ lzh.c:391:11: warning: passing arguments to 'lzh_lzss1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | lzh_lzss1((unsigned long)128); | ^ lzh.c:394:11: warning: passing arguments to 'lzh_lzss2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | lzh_lzss2((unsigned long)128); | ^ lzh.c:398:12: warning: passing arguments to 'lzh_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 398 | lzh_nocomp((unsigned long)128); | ^ lzh.c:401:10: warning: passing arguments to 'lzh_lzah' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | lzh_lzah((unsigned long)128); | ^ lzh.c:413:11: warning: passing arguments to 'lzh_lzh12' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | lzh_lzh12((unsigned long)128); | ^ lzh.c:417:11: warning: passing arguments to 'lzh_lzh13' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 417 | lzh_lzh13((unsigned long)128); | ^ lzh.c:422:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | do_indent(indent); | ^ lzh.c:425:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | do_indent(indent); | ^ lzh.c:428:14: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | lzh_skip(filehdr); | ^ lzh.c:440:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | do_indent(indent); | ^ lzh.c:446:10: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | lzh_skip(filehdr); | ^ lzh.c:449:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | copy(info, lzh_file, 128); | ^ lzh.c:450:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | rsrcLength = get4(info + I_RLENOFF); | ^ lzh.c:451:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | dataLength = get4(info + I_DLENOFF); | ^ lzh.c:452:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | transname(info + I_TYPEOFF, ftype, 4); | ^ lzh.c:453:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | transname(info + I_AUTHOFF, fauth, 4); | ^ lzh.c:455:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | do_indent(indent); | ^ lzh.c:471:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | define_name(text); | ^ lzh.c:472:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 472 | start_info(info, (unsigned long)rsrcLength, (unsigned long)dataLength); | ^ lzh.c:480:16: warning: passing arguments to 'lzh_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 480 | lzh_nocomp(filehdr->upsize); | ^ lzh.c:490:15: warning: passing arguments to 'lzh_lzss1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | lzh_lzss1(filehdr->upsize); | ^ lzh.c:499:15: warning: passing arguments to 'lzh_lzss2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | lzh_lzss2(filehdr->upsize); | ^ lzh.c:508:16: warning: passing arguments to 'lzh_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | lzh_nocomp(filehdr->upsize); | ^ lzh.c:517:14: warning: passing arguments to 'lzh_lzah' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | lzh_lzah(filehdr->upsize); | ^ lzh.c:547:15: warning: passing arguments to 'lzh_lzh12' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | lzh_lzh12(filehdr->upsize); | ^ lzh.c:557:15: warning: passing arguments to 'lzh_lzh13' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | lzh_lzh13(filehdr->upsize); | ^ lzh.c:561:17: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | crc = (*updcrc)(INIT_CRC, lzh_file, filehdr->upsize); | ^ lzh.c:572:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | copy(out_ptr, lzh_file + 128, (int)(filehdr->upsize - 128)); | ^ lzh.c:580:13: warning: passing arguments to 'lzh_skip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | lzh_skip(filehdr); | ^ lzh.c:364:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | static void lzh_wrfile(filehdr, method) | ^ lzh.c:58:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void lzh_wrfile(); | ^ lzh.c:583:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | static void lzh_skip(filehdr) | ^ lzh.c:59:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | static void lzh_skip(); | ^ lzh.c:596:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | copy(lzh_file, lzh_data, (int)obytes); | ^ lzh.c:593:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | static void lzh_nocomp(obytes) | ^ lzh.c:60:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | static void lzh_nocomp(); | ^ lzh.c:603:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | static void lzh_lzss1(obytes) | ^ lzh.c:62:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 62 | static void lzh_lzss1(); | ^ lzh.c:684:19: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | if(bit_be_getbits(1) == 0) { | ^ lzh.c:685:25: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | ch = bit_be_getbits(8); | ^ lzh.c:691:28: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 691 | lzptr = bit_be_getbits(11); | ^ lzh.c:692:28: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | lzcnt = bit_be_getbits(4) + 3; | ^ lzh.c:666:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | static void lzh_lzss2(obytes) | ^ lzh.c:63:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 63 | static void lzh_lzss2(); | ^ lzh.c:717:12: warning: passing arguments to 'de_lzah' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | de_lzah(obytes); | ^ lzh.c:710:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | static void lzh_lzah(obytes) | ^ lzh.c:65:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 65 | static void lzh_lzah(); | ^ lzh.c:755:11: warning: passing arguments to 'de_lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 755 | de_lzh((long)(-1), (long)obytes, &lzh_current, 12); | ^ lzh.c:748:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | static void lzh_lzh12(obytes) | ^ lzh.c:72:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | static void lzh_lzh12(); | ^ lzh.c:770:11: warning: passing arguments to 'de_lzh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | de_lzh((long)(-1), (long)obytes, &lzh_current, 13); | ^ lzh.c:763:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | static void lzh_lzh13(obytes) | ^ lzh.c:74:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 74 | static void lzh_lzh13(); | ^ 92 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dd.c In file included from dd.c:4: ./dd.h:55:1: warning: typedef requires a name [-Wmissing-declarations] 55 | typedef struct fileHdr { /* 124 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~ ./dd.h:76:1: warning: typedef requires a name [-Wmissing-declarations] 76 | typedef struct fileCHdr { /* 84 bytes */ | ^~~~~~~~~~~~~~~~~~~~~~~ dd.c:48:1: warning: typedef requires a name [-Wmissing-declarations] 48 | typedef struct methodinfo { | ^~~~~~~~~~~~~~~~~~~~~~~~~ dd.c:88:12: warning: passing arguments to 'dd_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | dd_name(bin_hdr); | ^ dd.c:92:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | transname(info + I_NAMEOFF + 1, text, (int)info[I_NAMEOFF] & BYTEMASK); | ^ dd.c:93:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | data_size = get4(info + I_DLENOFF); | ^ dd.c:96:42: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | dd_archive = (unsigned char *)malloc((unsigned)data_size); | ^ dd.c:98:43: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | dd_archive = (unsigned char *)realloc((char *)dd_archive, | ^ dd.c:116:16: warning: passing arguments to 'dd_cfilehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | dd_cfilehdr(&cf); | ^ dd.c:119:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | do_indent(indent); | ^ dd.c:120:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | transname(info + I_TYPEOFF, ftype, 4); | ^ dd.c:121:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | transname(info + I_AUTHOFF, fauth, 4); | ^ dd.c:125:13: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | (long)get4(info + I_DLENOFF), (long)get4(info + I_RLENOFF)); | ^ dd.c:125:43: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | (long)get4(info + I_DLENOFF), (long)get4(info + I_RLENOFF)); | ^ dd.c:135:17: warning: passing arguments to 'dd_valid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | if(!dd_valid((int)cf.datamethod, (int)cf.rsrcmethod)) { | ^ dd.c:145:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | define_name(text); | ^ dd.c:148:11: warning: passing arguments to 'dd_expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | dd_expand(cf, dd_data_ptr); | ^ dd.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | void dd_file(bin_hdr) | ^ dd.c:164:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | data_size = get4((char *)bin_hdr + I_DLENOFF); | ^ dd.c:167:42: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | dd_archive = (unsigned char *)malloc((unsigned)data_size); | ^ dd.c:169:43: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | dd_archive = (unsigned char *)realloc((char *)dd_archive, | ^ dd.c:179:12: warning: passing arguments to 'dd_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | dd_name(bin_hdr); | ^ dd.c:188:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | transname(info + I_NAMEOFF + 1, text, nlength); | ^ dd.c:191:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | do_indent(indent); | ^ dd.c:203:10: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | do_mkdir(text, info); | ^ dd.c:206:8: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 206 | if(strncmp((char *)dd_archive, "DDAR", 4)) { | ^ dd.c:206:8: note: include the header or explicitly provide a declaration for 'strncmp' dd.c:213:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | crc = (*updcrc)(crcinit, dd_archive, ARCHHDRSIZE - 2); | ^ dd.c:214:19: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | filecrc = get2((char *)dd_archive + ARCHHDRCRC); | ^ dd.c:225:19: warning: passing arguments to 'dd_filehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | switch(dd_filehdr(&f, &cf, dir_skip)) { | ^ dd.c:227:15: warning: passing arguments to 'dd_chksum' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | dd_chksum(f, dd_data_ptr); | ^ dd.c:228:15: warning: passing arguments to 'dd_expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | dd_expand(cf, dd_data_ptr); | ^ dd.c:233:13: warning: passing arguments to 'dd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | dd_copy(f, dd_data_ptr); | ^ dd.c:239:15: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | do_mkdir(text, info); | ^ dd.c:243:38: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | dd_dirst = (unsigned char *)malloc(64); | ^ dd.c:245:39: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | dd_dirst = (unsigned char *)realloc((char *)dd_dirst, | ^ dd.c:266:16: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | do_indent(indent); | ^ dd.c:281:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | do_indent(indent); | ^ dd.c:152:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | void dd_arch(bin_hdr) | ^ dd.c:286:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | static void dd_name(bin_hdr) | ^ dd.c:20:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | static void dd_name(); | ^ dd.c:340:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | crc = (*updcrc)(crc, hdr, FILEHDRSIZE - 2); | ^ dd.c:342:21: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | f->hdrcrc = get2((char *)hdr + D_HDRCRC); | ^ dd.c:357:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | copy(info + I_NAMEOFF + 1, (char *)hdr + D_FNAME + 1, n); | ^ dd.c:358:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 358 | transname((char *)hdr + D_FNAME + 1, text, n); | ^ dd.c:361:19: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | f->datacrc = get2((char *)hdr + D_DATACRC); | ^ dd.c:362:19: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | f->rsrccrc = get2((char *)hdr + D_RSRCCRC); | ^ dd.c:363:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | f->dataLength = get4((char *)hdr + D_DATALENGTH); | ^ dd.c:364:22: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | f->rsrcLength = get4((char *)hdr + D_RSRCLENGTH); | ^ dd.c:365:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | copy(info + I_DLENOFF, (char *)hdr + D_DATALENGTH, 4); | ^ dd.c:366:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 366 | copy(info + I_RLENOFF, (char *)hdr + D_RSRCLENGTH, 4); | ^ dd.c:367:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | copy(info + I_CTIMOFF, (char *)hdr + D_CTIME, 4); | ^ dd.c:368:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | copy(info + I_MTIMOFF, (char *)hdr + D_MTIME, 4); | ^ dd.c:369:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 369 | copy(info + I_TYPEOFF, (char *)hdr + D_FTYPE, 4); | ^ dd.c:370:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | copy(info + I_AUTHOFF, (char *)hdr + D_CREATOR, 4); | ^ dd.c:371:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | copy(info + I_FLAGOFF, (char *)hdr + D_FNDRFLAGS, 2); | ^ dd.c:379:13: warning: passing arguments to 'dd_cfilehdr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | dd_cfilehdr(cf); | ^ dd.c:391:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | do_indent(indent); | ^ dd.c:396:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 396 | transname(info + I_TYPEOFF, ftype, 4); | ^ dd.c:397:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | transname(info + I_AUTHOFF, fauth, 4); | ^ dd.c:413:18: warning: passing arguments to 'dd_valid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 413 | if(!dd_valid((int)cf->datamethod, (int)cf->rsrcmethod)) { | ^ dd.c:425:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | define_name(text); | ^ dd.c:321:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | static int dd_filehdr(f, cf, skip) | ^ dd.c:21:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | static int dd_filehdr(); | ^ dd.c:439:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | crc = (*updcrc)(crc, hdr, CFILEHDRSIZE - 2); | ^ dd.c:441:21: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | f->hdrcrc = get2((char *)hdr + C_HDRCRC); | ^ dd.c:451:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | f->dataLength = get4((char *)hdr + C_DATALENGTH); | ^ dd.c:452:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | f->dataCLength = get4((char *)hdr + C_DATACLENGTH); | ^ dd.c:453:25: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | f->rsrcLength = get4((char *)hdr + C_RSRCLENGTH); | ^ dd.c:454:26: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 454 | f->rsrcCLength = get4((char *)hdr + C_RSRCCLENGTH); | ^ dd.c:457:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 457 | f->datacrc = get2((char *)hdr + C_DATACRC); | ^ dd.c:458:22: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | f->rsrccrc = get2((char *)hdr + C_RSRCCRC); | ^ dd.c:459:23: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | f->datainfo = get2((char *)hdr + C_DATAINFO); | ^ dd.c:460:23: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | f->rsrcinfo = get2((char *)hdr + C_RSRCINFO); | ^ dd.c:461:23: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 461 | f->datacrc2 = get2((char *)hdr + C_DATACRC2); | ^ dd.c:462:23: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | f->rsrccrc2 = get2((char *)hdr + C_RSRCCRC2); | ^ dd.c:465:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 465 | copy(info + I_DLENOFF, (char *)hdr + C_DATALENGTH, 4); | ^ dd.c:466:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | copy(info + I_RLENOFF, (char *)hdr + C_RSRCLENGTH, 4); | ^ dd.c:467:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | copy(info + I_CTIMOFF, (char *)hdr + C_CTIME, 4); | ^ dd.c:468:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | copy(info + I_MTIMOFF, (char *)hdr + C_MTIME, 4); | ^ dd.c:469:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | copy(info + I_TYPEOFF, (char *)hdr + C_FTYPE, 4); | ^ dd.c:470:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 470 | copy(info + I_AUTHOFF, (char *)hdr + C_CREATOR, 4); | ^ dd.c:471:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 471 | copy(info + I_FLAGOFF, (char *)hdr + C_FNDRFLAGS, 2); | ^ dd.c:430:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | static void dd_cfilehdr(f) | ^ dd.c:22:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | static void dd_cfilehdr(); | ^ dd.c:482:21: warning: passing arguments to 'dd_valid1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | return dd_valid1(dmethod) | dd_valid1(rmethod); | ^ dd.c:482:42: warning: passing arguments to 'dd_valid1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | return dd_valid1(dmethod) | dd_valid1(rmethod); | ^ dd.c:479:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | static int dd_valid(dmethod, rmethod) | ^ dd.c:23:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | static int dd_valid(); | ^ dd.c:485:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | static int dd_valid1(method) | ^ dd.c:24:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | static int dd_valid1(); | ^ dd.c:504:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | static char *dd_methname(n) | ^ dd.c:25:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | static char *dd_methname(); | ^ dd.c:517:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | static unsigned long dd_checksum(init, buffer, length) | ^ dd.c:26:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | static unsigned long dd_checksum(); | ^ dd.c:532:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 532 | static void dd_chksum(hdr, data) | ^ dd.c:27:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 27 | static void dd_chksum(); | ^ dd.c:553:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | static unsigned long dd_checkor(init, buffer, length) | ^ dd.c:28:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | static unsigned long dd_checkor(); | ^ dd.c:577:10: warning: passing arguments to 'dd_delta' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | dd_delta(out_ptr, nbytes); | ^ dd.c:580:11: warning: passing arguments to 'dd_delta3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | dd_delta3(out_ptr, nbytes); | ^ dd.c:568:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | static void dd_do_delta(out_ptr, nbytes, kind) | ^ dd.c:29:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | static void dd_do_delta(); | ^ dd.c:591:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | static void dd_delta(out_ptr, nbytes) | ^ dd.c:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | static void dd_delta(); | ^ dd.c:603:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 603 | static void dd_delta3(out_ptr, nbytes) | ^ dd.c:31:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | static void dd_delta3(); | ^ dd.c:633:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 633 | start_info(info, hdr.rsrcLength, hdr.dataLength); | ^ dd.c:641:16: warning: passing arguments to 'dd_copyfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | dd_copyfile(hdr.dataLength, data); | ^ dd.c:658:16: warning: passing arguments to 'dd_copyfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 658 | dd_copyfile(hdr.rsrcLength, data); | ^ dd.c:626:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | static void dd_copy(hdr, data) | ^ dd.c:32:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | static void dd_copy(); | ^ dd.c:686:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | copy(out_ptr, (char *)data, (int)obytes); | ^ dd.c:678:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | static void dd_copyfile(obytes, data) | ^ dd.c:33:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | static void dd_copyfile(); | ^ dd.c:701:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | start_info(info, hdr.rsrcLength, hdr.dataLength); | ^ dd.c:710:18: warning: passing arguments to 'dd_expandfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | dd_expandfile(hdr.dataLength, hdr.dataCLength, (int)hdr.datamethod, | ^ dd.c:715:22: warning: passing arguments to 'arc_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | cks = arc_updcrc(INIT_CRC, (unsigned char *)out_buf, | ^ dd.c:735:18: warning: passing arguments to 'dd_expandfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | dd_expandfile(hdr.rsrcLength, hdr.rsrcCLength, (int)hdr.rsrcmethod, | ^ dd.c:740:22: warning: passing arguments to 'arc_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | cks = arc_updcrc(INIT_CRC, (unsigned char *)out_buf, | ^ dd.c:693:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 693 | static void dd_expand(hdr, data) | ^ dd.c:34:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 34 | static void dd_expand(); | ^ dd.c:780:15: warning: passing arguments to 'dd_nocomp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | dd_nocomp(obytes, data); | ^ dd.c:794:12: warning: passing arguments to 'dd_lzc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 794 | dd_lzc(ibytes - 3, obytes, data, sub_method, chksum, cksinit); | ^ dd.c:804:12: warning: passing arguments to 'dd_rle' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 804 | dd_rle(ibytes, data); | ^ dd.c:824:13: warning: passing arguments to 'dd_lzss' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | dd_lzss(data, chksum); | ^ dd.c:829:19: warning: passing arguments to 'get2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 829 | sub_method = get2((char *)data); | ^ dd.c:846:19: warning: passing arguments to 'dd_cpt_compat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 846 | dd_cpt_compat(ibytes, obytes, data, sub_method, chksum); | ^ dd.c:759:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | static void dd_expandfile(obytes, ibytes, method, kind, data, chksum) | ^ dd.c:35:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | static void dd_expandfile(); | ^ dd.c:864:9: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | copy(out_ptr, (char *)data, (int)obytes); | ^ dd.c:860:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | static void dd_nocomp(obytes, data) | ^ dd.c:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | static void dd_nocomp(); | ^ dd.c:880:18: warning: passing arguments to 'core_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 880 | core_compress((char *)data); | ^ dd.c:881:16: warning: passing arguments to 'de_compress' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 881 | de_compress(ibytes, mb); | ^ dd.c:870:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 870 | static void dd_lzc(ibytes, obytes, data, mb, chksum, ckinit) | ^ dd.c:37:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 37 | static void dd_lzc(); | ^ dd.c:904:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 904 | static void dd_rle(ibytes, data) | ^ dd.c:39:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 39 | static void dd_rle(); | ^ dd.c:917:16: warning: implicit conversion from 'int' to 'char' changes value from 324 to 68 [-Wconstant-conversion] 917 | *out_ptr++ = ESC; | ~ ^~~ ./dd.h:124:14: note: expanded from macro 'ESC' 124 | #define ESC 0x144 /* Repeat packing escape */ | ^~~~~ dd.c:953:17: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 953 | data += get4((char *)data + 6); | ^ dd.c:956:15: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 956 | if(dd_getbits(1) == 0) { | ^ dd.c:957:50: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 957 | *out_ptr++ = dd_LZbuff[LZptr++] = dd_getbits(8); | ^ dd.c:960:19: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 960 | if(dd_getbits(1) == 0) { | ^ dd.c:961:22: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 961 | LZbptr = dd_getbits(11); | ^ dd.c:963:22: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 963 | LZbptr = dd_getbits(7); | ^ dd.c:969:27: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 969 | LZlength = dd_getbits(2); | ^ dd.c:971:25: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 971 | LZlength += dd_getbits(2); | ^ dd.c:974:18: warning: passing arguments to 'dd_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | i = dd_getbits(4); | ^ dd.c:945:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 945 | static void dd_lzss(data, chksum) | ^ dd.c:43:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 43 | static void dd_lzss(); | ^ dd.c:999:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 999 | static int dd_getbits(n) | ^ dd.c:44:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 44 | static int dd_getbits(); | ^ dd.c:1027:16: warning: passing arguments to 'cpt_wrfile1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1027 | cpt_wrfile1(data, ibytes, obytes, sub_method, (unsigned long)0x0fff0); | ^ dd.c:1028:21: warning: passing arguments to 'arc_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | cks = arc_updcrc(INIT_CRC, (unsigned char *)optr, (int)obytes); | ^ dd.c:1019:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | static void dd_cpt_compat(ibytes, obytes, data, sub_method, chksum) | ^ dd.c:46:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | static void dd_cpt_compat(); | ^ 156 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c de_huffman.c de_huffman.c:40:15: warning: call to undeclared function 'gethuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 40 | *out_ptr++ = gethuffbyte(nodelist); | ^ de_huffman.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void de_huffman(obytes) | ^ de_huffman.c:51:16: warning: call to undeclared function 'gethuffbyte'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | while((c = gethuffbyte(nodelist)) != term) { | ^ de_huffman.c:46:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | void de_huffman_end(term) | ^ de_huffman.c:56:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | void set_huffman(endian) | ^ de_huffman.c:97:10: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | b = getb(infp) & BYTEMASK; | ^ de_huffman.c:111:10: warning: passing arguments to 'getb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | b = getb(infp) & BYTEMASK; | ^ de_huffman.c:124:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | int gethuffbyte(l_nodelist) | ^ 8 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c de_compress.c de_compress.c:47:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | void de_compress(ibytes, mb) | ^ de_compress.c:158:23: warning: passing arguments to 'core_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | size = core_bytes((char *)buf, (n_bits < toread ? n_bits : toread)); | ^ de_compress.c:160:23: warning: passing arguments to 'file_bytes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | size = file_bytes((char *)buf, (n_bits < toread ? n_bits : toread)); | ^ de_compress.c:197:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | static int file_bytes(buf, length) | ^ de_compress.c:125:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 125 | static int file_bytes(); | ^ de_compress.c:204:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | static int core_bytes(buf, length) | ^ de_compress.c:126:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 126 | static int core_bytes(); | ^ de_compress.c:216:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | void core_compress(ptr) | ^ 8 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c de_lzah.c de_lzah.c:149:18: warning: passing arguments to 'lzah_outchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | lzah_outchar((char)ch); | ^ de_lzah.c:173:15: warning: passing arguments to 'lzah_outchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | lzah_outchar(lzah_buf[offs++ & 0xfff]); | ^ de_lzah.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | void de_lzah(obytes) | ^ de_lzah.c:223:11: warning: passing arguments to 'lzah_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | lzah_move(Frequ + k, Frequ + k + 1, j - k); | ^ de_lzah.c:225:11: warning: passing arguments to 'lzah_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | lzah_move(ForwTree + k, ForwTree + k + 1, j - k); | ^ de_lzah.c:239:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | static void lzah_move(p, q, n) | ^ de_lzah.c:84:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 84 | static void lzah_move(); | ^ de_lzah.c:266:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | static void lzah_outchar(ch) | ^ de_lzah.c:86:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 86 | static void lzah_outchar(); | ^ 9 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c de_lzh.c de_lzh.c:27:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | void de_lzh(ibytes, obytes, data, bits) | ^ de_lzh.c:97:23: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | n = bit_be_getbits(nbit); | ^ de_lzh.c:99:20: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | c = bit_be_getbits(nbit); | ^ de_lzh.c:117:20: warning: passing arguments to 'bit_be_fillbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | bit_be_fillbuf((c < 7) ? 3 : c - 3); | ^ de_lzh.c:120:21: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | c = bit_be_getbits(2); | ^ de_lzh.c:129:12: warning: passing arguments to 'make_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | make_table(nn, pt_len, 8, pt_table); | ^ de_lzh.c:89:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | static void read_pt_len(nn, nbit, i_special) | ^ de_lzh.c:138:23: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | n = bit_be_getbits(CBIT); | ^ de_lzh.c:140:20: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | c = bit_be_getbits(CBIT); | ^ de_lzh.c:162:20: warning: passing arguments to 'bit_be_fillbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | bit_be_fillbuf((int)pt_len[c]); | ^ de_lzh.c:167:25: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | c = bit_be_getbits(4) + 3; | ^ de_lzh.c:169:25: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | c = bit_be_getbits(CBIT) + 20; | ^ de_lzh.c:181:12: warning: passing arguments to 'make_table' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | make_table(NC, c_len, 12, c_table); | ^ de_lzh.c:190:28: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | blocksize = bit_be_getbits(16); | ^ de_lzh.c:212:19: warning: passing arguments to 'bit_be_fillbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | bit_be_fillbuf((int)c_len[j]); | ^ de_lzh.c:232:19: warning: passing arguments to 'bit_be_fillbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | bit_be_fillbuf((int)pt_len[j]); | ^ de_lzh.c:234:48: warning: passing arguments to 'bit_be_getbits' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | j = ((unsigned) 1 << (j - 1)) + bit_be_getbits((int) (j - 1)); | ^ de_lzh.c:239:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | static void make_table(nchar, bitlen, tablebits, table) | ^ de_lzh.c:24:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | static void make_table(); | ^ 19 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c crc.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c bits_be.c bits_be.c:11:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | void bit_be_fillbuf(n) /* Shift bit_be_bitbuf n bits left, read n bits */ | ^ In file included from bits_be.c:2: ./bits_be.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void bit_be_fillbuf(); | ^ bits_be.c:29:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | unsigned int bit_be_getbits(n) | ^ In file included from bits_be.c:2: ./bits_be.h:8:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern unsigned int bit_be_getbits(); | ^ 4 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o macunpack macunpack.o globals.o macbinary.o dir.o mcb.o bin.o jdw.o stf.o lzc.o pit.o sit.o dia.o cpt.o zma.o lzh.o dd.o de_huffman.o de_compress.o de_lzah.o de_lzh.o crc.o bits_be.o ../util/transname.o ../util/util.o ../fileio/wrfile.o ../fileio/fileglob.o ../crc/libcrc.a ld: warning: macunpack.c(macunpack.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: sprintf() is often misused, please use snprintf() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: strcpy() is almost always misused, please use strlcpy() (cd hexbin; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c hexbin.c In file included from hexbin.c:5: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from hexbin.c:15: ./../util/curtime.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern time_t time(); | ^ /usr/include/time.h:123:8: note: conflicting prototype is here 123 | time_t time(time_t *); | ^ hexbin.c:59:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | while((c = getopt(argc, argv, options)) != EOF) { | ^ hexbin.c:75:12: warning: passing arguments to 'backtrans' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | backtrans(macname, optarg); | ^ hexbin.c:136:10: warning: passing arguments to 'do_files' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | do_files(filename, macname); | ^ hexbin.c:41:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | int main(argc, argv) | ^ hexbin.c:206:26: warning: passing arguments to 'find_header' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | qformat = find_header(again); /* eat mailer header &cetera, intuit format */ | ^ hexbin.c:211:4: warning: passing arguments to 'dl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | dl(macname, filename); | ^ hexbin.c:216:6: warning: passing arguments to 'hecx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | hecx(macname, filename); | ^ hexbin.c:221:5: warning: passing arguments to 'hqx' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | hqx(macname); | ^ hexbin.c:227:4: warning: passing arguments to 'mu' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | mu(macname); | ^ hexbin.c:163:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | static void do_files(filename, macname) | ^ hexbin.c:36:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 36 | static void do_files(); | ^ hexbin.c:263:11: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | ds = get4(header + I_DLENOFF); | ^ hexbin.c:264:11: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | rs = get4(header + I_RLENOFF); | ^ hexbin.c:297:11: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 297 | while(readline()) { | ^ hexbin.c:238:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | static int find_header(again) | ^ hexbin.c:37:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 37 | static int find_header(); | ^ 19 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dl.c In file included from dl.c:3: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ dl.c:58:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | transname(mh.m_name, trname, n); | ^ dl.c:59:16: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | define_name(trname); | ^ dl.c:60:18: warning: passing arguments to 'print_header0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | print_header0(0); | ^ dl.c:61:18: warning: passing arguments to 'print_header1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | print_header1(0, 0); | ^ dl.c:62:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | set_put(1); | ^ dl.c:64:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | set_put(0); | ^ dl.c:70:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | put4(info + I_DLENOFF, (unsigned long)mh.m_datalen); | ^ dl.c:71:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | put4(info + I_RLENOFF, (unsigned long)mh.m_rsrclen); | ^ dl.c:72:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | put4(info + I_CTIMOFF, (unsigned long)mh.m_createtime); | ^ dl.c:73:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | put4(info + I_MTIMOFF, (unsigned long)mh.m_modifytime); | ^ dl.c:74:18: warning: passing arguments to 'print_header2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | print_header2(0); | ^ dl.c:21:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | void dl(macname, filename) | ^ dl.c:93:14: warning: passing arguments to 'put_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | put_byte((char)v); | ^ dl.c:103:15: warning: passing arguments to 'verify_crc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | verify_crc(bytes + crc, c); | ^ dl.c:124:5: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 124 | if(readline() == 0) { | ^ 17 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c hecx.c In file included from hecx.c:3: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ hecx.c:73:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | transname(mh.m_name, trname, n); | ^ hecx.c:74:16: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | define_name(trname); | ^ hecx.c:83:18: warning: passing arguments to 'print_header0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | print_header0(0); | ^ hecx.c:84:18: warning: passing arguments to 'print_header1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | print_header1(0, 0); | ^ hecx.c:89:9: warning: passing arguments to 'put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | put2(info + I_FLAGOFF, (unsigned long)mh.m_flags); | ^ hecx.c:90:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | put4(info + I_DLENOFF, (unsigned long)mh.m_datalen); | ^ hecx.c:91:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | put4(info + I_RLENOFF, (unsigned long)mh.m_rsrclen); | ^ hecx.c:92:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | put4(info + I_CTIMOFF, (unsigned long)mh.m_createtime); | ^ hecx.c:93:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | put4(info + I_MTIMOFF, (unsigned long)mh.m_modifytime); | ^ hecx.c:94:18: warning: passing arguments to 'print_header2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | print_header2(0); | ^ hecx.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void hecx(macname, filename) | ^ hecx.c:105:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | set_put(0); | ^ hecx.c:106:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | set_put(1); | ^ hecx.c:107:25: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | while(!found_crc && readline()) { | ^ hecx.c:116:13: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | set_put(1); | ^ hecx.c:117:30: warning: passing arguments to 'make_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | mh.m_datalen = make_file(compressed); | ^ hecx.c:122:13: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | set_put(0); | ^ hecx.c:123:30: warning: passing arguments to 'make_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | mh.m_rsrclen = make_file(compressed); | ^ hecx.c:143:12: warning: passing arguments to 'verify_crc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | verify_crc(calc_crc, file_crc); | ^ hecx.c:158:11: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 158 | while(readline()) { | ^ hecx.c:153:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | static long make_file(compressed) | ^ hecx.c:16:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | static long make_file(); | ^ hecx.c:174:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | static void comp_c_crc(c) | ^ hecx.c:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | static void comp_c_crc(); | ^ hecx.c:181:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | static void comp_e_crc(c) | ^ hecx.c:18:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | static void comp_e_crc(); | ^ hecx.c:215:10: warning: passing arguments to 'put_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | put_byte(obuf[n]); | ^ hecx.c:229:11: warning: passing arguments to 'hexit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | c = hexit((int)*ip++); | ^ hecx.c:230:44: warning: passing arguments to 'hexit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | comp_e_crc((unsigned)(c = (c << 4) | hexit((int)*ip++))); | ^ hecx.c:231:10: warning: passing arguments to 'put_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | put_byte((char)c); | ^ hecx.c:236:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | static int hexit(c) | ^ hecx.c:21:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | static int hexit(); | ^ 34 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c hqx.c In file included from hqx.c:3: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ hqx.c:19:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 19 | static getqbuf(); | ~~~~~~ ^ | int hqx.c:153:9: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | if(readline()) { | ^ hqx.c:217:10: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 217 | if(!readline()) { | ^ hqx.c:232:18: warning: passing arguments to 'print_header2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | print_header2(verbose); | ^ hqx.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | void hqx(macname) | ^ hqx.c:247:12: warning: passing arguments to 'getqbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | getqbuf(trname, n); /* read name */ | ^ hqx.c:259:12: warning: passing arguments to 'getqbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | getqbuf(mh.m_type, 4); | ^ hqx.c:260:12: warning: passing arguments to 'getqbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | getqbuf(mh.m_author, 4); | ^ hqx.c:267:15: warning: passing arguments to 'verify_crc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | verify_crc(calc_crc, file_crc); | ^ hqx.c:271:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | transname(mh.m_name, trname, n); | ^ hqx.c:272:16: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | define_name(trname); | ^ hqx.c:273:18: warning: passing arguments to 'print_header0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | print_header0(0); | ^ hqx.c:274:18: warning: passing arguments to 'print_header1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | print_header1(0, verbose); | ^ hqx.c:279:9: warning: passing arguments to 'put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | put2(info + I_FLAGOFF, (unsigned long)mh.m_flags); | ^ hqx.c:280:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | put4(info + I_DLENOFF, (unsigned long)mh.m_datalen); | ^ hqx.c:281:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | put4(info + I_RLENOFF, (unsigned long)mh.m_rsrclen); | ^ hqx.c:282:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | put4(info + I_CTIMOFF, (unsigned long)mh.m_createtime); | ^ hqx.c:283:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | put4(info + I_MTIMOFF, (unsigned long)mh.m_modifytime); | ^ hqx.c:298:13: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | set_put(1); | ^ hqx.c:304:13: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | set_put(0); | ^ hqx.c:316:11: warning: passing arguments to 'put_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | put_byte((char)(oq[i])); | ^ hqx.c:318:18: warning: passing arguments to 'comp_q_crc_n' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | comp_q_crc_n(oq, oq+n); | ^ hqx.c:335:16: warning: passing arguments to 'verify_crc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | verify_crc(calc_crc, file_crc); | ^ hqx.c:339:57: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 339 | (void)fprintf(stderr, "%d excess bytes ignored\n", op-oq); | ~~ ^~~~~ | %ld hqx.c:359:15: warning: passing arguments to 'comp_q_crc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | comp_q_crc((unsigned)c); | ^ hqx.c:383:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 383 | static getqbuf(buf, n) | ~~~~~~ ^ | int hqx.c:383:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] hqx.c:19:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | static getqbuf(); | ^ hqx.c:392:1: warning: non-void function does not return a value [-Wreturn-type] 392 | } | ^ 31 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c mu.c In file included from mu.c:3: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ mu.c:49:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | transname(mh.m_name, trname, n); | ^ mu.c:50:16: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | define_name(trname); | ^ mu.c:51:18: warning: passing arguments to 'print_header0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | print_header0(0); | ^ mu.c:52:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | set_put(0); | ^ mu.c:53:12: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | set_put(1); | ^ mu.c:56:9: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | if(!readline()) { | ^ mu.c:71:9: warning: passing arguments to 'set_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | set_put(0); | ^ mu.c:105:21: warning: passing arguments to 'mu_convert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | (void)mu_convert(line, info + I_TYPEOFF); | ^ mu.c:113:18: warning: passing arguments to 'mu_convert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if(mu_convert(line, line)) { | ^ mu.c:137:18: warning: passing arguments to 'print_header1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | print_header1(0, 0); | ^ mu.c:138:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | put4(info + I_DLENOFF, (unsigned long)mh.m_datalen); | ^ mu.c:139:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | put4(info + I_RLENOFF, (unsigned long)mh.m_rsrclen); | ^ mu.c:140:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | put4(info + I_CTIMOFF, (unsigned long)mh.m_createtime); | ^ mu.c:141:9: warning: passing arguments to 'put4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | put4(info + I_MTIMOFF, (unsigned long)mh.m_modifytime); | ^ mu.c:142:18: warning: passing arguments to 'print_header2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | print_header2(0); | ^ mu.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void mu(macname) | ^ mu.c:150:11: warning: call to undeclared function 'readline'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | while(readline()) { | ^ mu.c:187:26: warning: passing arguments to 'mu_convert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | outcount = mu_convert(line, obuf); | ^ mu.c:189:10: warning: passing arguments to 'put_byte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | put_byte(obuf[n]); | ^ mu.c:196:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | static int mu_convert(ibuf, obuf) | ^ mu.c:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | static int mu_convert(); | ^ 23 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c buffer.c In file included from buffer.c:1: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ buffer.c:21:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | data_fork = malloc(1024); | ^ buffer.c:23:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | data_fork = realloc(data_fork, (unsigned)max_data_size + 1024); | ^ buffer.c:35:21: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | rsrc_fork = malloc(1024); | ^ buffer.c:37:22: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | rsrc_fork = realloc(rsrc_fork, (unsigned)max_rsrc_size + 1024); | ^ buffer.c:15:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | void put_byte(c) | ^ In file included from buffer.c:3: ./buffer.h:3:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 3 | extern void put_byte(); | ^ buffer.c:49:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | void set_put(data) | ^ In file included from buffer.c:3: ./buffer.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void set_put(); | ^ buffer.c:65:15: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | start_info(info, (unsigned long)rsrc_size, (unsigned long)data_size); | ^ buffer.c:68:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | copy(out_ptr, data_fork, data_size); | ^ buffer.c:72:6: warning: passing arguments to 'copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | copy(out_ptr, rsrc_fork, rsrc_size); | ^ 13 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c crc.c In file included from crc.c:7: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ crc.c:19:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | crc = binhex_updcrc(crc, &cc, 1); | ^ crc.c:14:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void comp_q_crc(c) | ^ In file included from crc.c:5: ./crc.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void comp_q_crc(); | ^ crc.c:25:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | crc = binhex_updcrc(crc, s, e - s); | ^ crc.c:22:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | void comp_q_crc_n(s, e) | ^ In file included from crc.c:5: ./crc.h:8:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern void comp_q_crc_n(); | ^ crc.c:29:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | void verify_crc(calc_crc, file_crc) | ^ In file included from crc.c:5: ./crc.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void verify_crc(); | ^ 10 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c readline.c In file included from readline.c:1: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c printhdr.c In file included from printhdr.c:2: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ printhdr.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void print_header0(skip) | ^ In file included from printhdr.c:1: ./printhdr.h:1:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1 | extern void print_header0(); | ^ printhdr.c:22:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | transname(mh.m_type, ftype, 4); | ^ printhdr.c:23:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | transname(mh.m_author, fauth, 4); | ^ printhdr.c:17:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | void print_header1(skip1, skip2) | ^ In file included from printhdr.c:1: ./printhdr.h:2:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 2 | extern void print_header1(); | ^ printhdr.c:36:20: warning: parameter 'skip' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 36 | void print_header2(skip) | ^ 37 | { printhdr.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void print_header2(skip) | ^ In file included from printhdr.c:1: ./printhdr.h:3:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 3 | extern void print_header2(); | ^ 11 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c globals.c In file included from globals.c:1: ./globals.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 4 | extern char *rindex(); | ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 16 | typedef struct macheader { | ^~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o hexbin hexbin.o dl.o hecx.o hqx.o mu.o buffer.o crc.o readline.o printhdr.o globals.o ../util/transname.o ../util/backtrans.o ../util/util.o ../fileio/wrfile.o ../fileio/fileglob.o ../crc/libcrc.a ld: warning: hexbin.c(hexbin.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: hexbin.c(hexbin.o:(main)): warning: sprintf() is often misused, please use snprintf() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: strcpy() is almost always misused, please use strlcpy() (cd mixed; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c macsave.c macsave.c:31:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 31 | while((c = getopt(argc, argv, options)) != EOF) { | ^ macsave.c:16:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | int main(argc, argv) | ^ 2 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c globals.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c macbinary.c macbinary.c:30:9: warning: passing arguments to 'dir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | dir(header); | ^ macbinary.c:33:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | in_data_size = get4(header + I_DLENOFF); | ^ macbinary.c:34:21: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | in_rsrc_size = get4(header + I_RLENOFF); | ^ macbinary.c:40:15: warning: passing arguments to 'skip_file' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | skip_file(in_ds + in_rs); | ^ macbinary.c:51:9: warning: passing arguments to 'mcb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | mcb(header, (unsigned long)in_rsrc_size, | ^ macbinary.c:61:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | static void skip_file(skip) | ^ macbinary.c:10:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | static void skip_file(); | ^ 7 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dir.c dir.c:26:15: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | do_indent(indent); | ^ dir.c:43:24: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | dir_stack = malloc(64); | ^ dir.c:45:25: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | dir_stack = realloc(dir_stack, (unsigned)dir_max + 64); | ^ dir.c:53:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | transname(hdr + I_NAMEOFF + 1, dir_stack + dir_ptr, | ^ dir.c:57:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | do_indent(indent); | ^ dir.c:71:10: warning: passing arguments to 'do_mkdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | do_mkdir(dir_stack + dir_ptr, hdr); | ^ dir.c:14:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void dir(hdr) | ^ 7 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c mcb.c mcb.c:31:14: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | transname(hdr + I_NAMEOFF + 1, text, n); | ^ mcb.c:41:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | transname(hdr + I_TYPEOFF, ftype, 4); | ^ mcb.c:42:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | transname(hdr + I_AUTHOFF, fauth, 4); | ^ mcb.c:43:11: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | do_indent(indent); | ^ mcb.c:47:25: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | if(un_self_extract && !strncmp(hdr + I_TYPEOFF, "APPL", 4)) { | ^ mcb.c:47:25: note: include the header or explicitly provide a declaration for 'strncmp' mcb.c:60:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | do_indent(indent); | ^ mcb.c:63:9: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | (void)strncpy(hdr + I_TYPEOFF, "SITD", 4); | ^ mcb.c:63:9: note: include the header or explicitly provide a declaration for 'strncpy' mcb.c:70:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | do_indent(indent); | ^ mcb.c:80:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | do_indent(indent); | ^ mcb.c:90:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | do_indent(indent); | ^ mcb.c:102:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | do_indent(indent); | ^ mcb.c:168:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | do_indent(indent); | ^ mcb.c:188:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | define_name(text); | ^ mcb.c:190:16: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | start_info(info, 0, dataLength); | ^ mcb.c:192:16: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | start_info(info, rsrcLength, dataLength); | ^ mcb.c:196:15: warning: passing arguments to 'mcb_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | mcb_wrfile(dataLength); | ^ mcb.c:202:12: warning: passing arguments to 'mcb_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | mcb_wrfile(rsrcLength); | ^ mcb.c:205:12: warning: passing arguments to 'mcb_wrfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | mcb_wrfile(rsrcLength); | ^ mcb.c:12:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | void mcb(hdr, rsrcLength, dataLength, toread) | ^ mcb.c:212:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | static void mcb_wrfile(ibytes) | ^ mcb.c:10:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | static void mcb_wrfile(); | ^ 21 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o macsave macsave.o globals.o macbinary.o dir.o mcb.o ../util/transname.o ../util/util.o ../fileio/wrfile.o ../fileio/fileglob.o ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: sprintf() is often misused, please use snprintf() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: strcpy() is almost always misused, please use strlcpy() ld: warning: wrfile.c(../fileio/wrfile.o:(do_mkdir)): warning: strcat() is almost always misused, please use strlcat() cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c macstream.c macstream.c:39:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | while((c = getopt(argc, argv, options)) != EOF) { | ^ macstream.c:84:10: warning: passing arguments to 'setup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | setup(argc - optind, argv + optind); | ^ macstream.c:97:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | transname(file_info + I_NAMEOFF + 1, text, n); | ^ macstream.c:99:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | transname(file_info + I_TYPEOFF, ftype, 4); | ^ macstream.c:100:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | transname(file_info + I_AUTHOFF, fauth, 4); | ^ macstream.c:104:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | do_indent(indent); | ^ macstream.c:109:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | do_indent(indent); | ^ macstream.c:113:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | dir_stack = malloc(64); | ^ macstream.c:115:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | dir_stack = realloc(dir_stack, (unsigned)dir_max + 64); | ^ macstream.c:130:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | do_indent(indent); | ^ macstream.c:140:18: warning: call to undeclared function 'do_query'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | write_it = do_query(); | ^ macstream.c:23:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | int main(argc, argv) | ^ 12 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o macstream macstream.o ../util/transname.o ../util/backtrans.o ../util/util.o ../fileio/rdfile.o ../fileio/fileglob.o ld: warning: macstream.c(macstream.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: rdfile.c(../fileio/rdfile.o:(nextfile)): warning: strcpy() is almost always misused, please use strlcpy() touch all (cd binhex; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c binhex.c binhex.c:41:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | while((c = getopt(argc, argv, options)) != EOF) { | ^ binhex.c:90:10: warning: passing arguments to 'setup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | setup(argc - optind, argv + optind); | ^ binhex.c:103:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | transname(file_info + I_NAMEOFF + 1, text, n); | ^ binhex.c:105:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | transname(file_info + I_TYPEOFF, ftype, 4); | ^ binhex.c:106:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | transname(file_info + I_AUTHOFF, fauth, 4); | ^ binhex.c:110:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | do_indent(indent); | ^ binhex.c:115:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | do_indent(indent); | ^ binhex.c:119:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | dir_stack = malloc(64); | ^ binhex.c:121:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | dir_stack = realloc(dir_stack, (unsigned)dir_max + 64); | ^ binhex.c:136:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | do_indent(indent); | ^ binhex.c:146:18: warning: call to undeclared function 'do_query'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 146 | write_it = do_query(); | ^ binhex.c:25:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | int main(argc, argv) | ^ 12 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c dofile.c dofile.c:28:11: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 28 | (void)printf("(This file must be converted; you knew that already.)\n"); | ^ dofile.c:28:11: note: include the header or explicitly provide a declaration for 'printf' dofile.c:34:12: warning: passing arguments to 'outchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | outchar(':'); | ^ dofile.c:36:11: warning: passing arguments to 'dofork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | dofork(data_fork, data_size); | ^ dofile.c:37:11: warning: passing arguments to 'dofork' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | dofork(rsrc_fork, rsrc_size); | ^ dofile.c:39:11: warning: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | (void)putchar(':'); | ^ dofile.c:50:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | crc = binhex_updcrc(crc, file_info + I_NAMEOFF, n + 1); | ^ dofile.c:52:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | outbyte(file_info[I_NAMEOFF + i]); | ^ dofile.c:55:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | crc = binhex_updcrc(crc, (char *)&n, 1); | ^ dofile.c:56:12: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | outbyte(0); | ^ dofile.c:57:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | crc = binhex_updcrc(crc, file_info + I_TYPEOFF, 4); | ^ dofile.c:59:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | outbyte(file_info[I_TYPEOFF + i]); | ^ dofile.c:61:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | crc = binhex_updcrc(crc, file_info + I_AUTHOFF, 4); | ^ dofile.c:63:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | outbyte(file_info[I_AUTHOFF + i]); | ^ dofile.c:65:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | crc = binhex_updcrc(crc, file_info + I_FLAGOFF, 2); | ^ dofile.c:67:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | outbyte(file_info[I_FLAGOFF + i]); | ^ dofile.c:69:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | crc = binhex_updcrc(crc, file_info + I_DLENOFF, 4); | ^ dofile.c:71:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | outbyte(file_info[I_DLENOFF + i]); | ^ dofile.c:73:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | crc = binhex_updcrc(crc, file_info + I_RLENOFF, 4); | ^ dofile.c:75:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | outbyte(file_info[I_RLENOFF + i]); | ^ dofile.c:77:12: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | outbyte((int)(crc >> 8)); | ^ dofile.c:78:12: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | outbyte((int)(crc & 0xff)); | ^ dofile.c:88:24: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | crc = binhex_updcrc(binhex_crcinit, fork, size); | ^ dofile.c:90:9: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | outbyte(fork[i]); | ^ dofile.c:92:12: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | outbyte((int)(crc >> 8)); | ^ dofile.c:93:12: warning: passing arguments to 'outbyte' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | outbyte((int)(crc & 0xff)); | ^ dofile.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | void dofork(fork, size) | ^ dofile.c:19:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | void dofork(); | ^ dofile.c:102:14: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | outbyte1(RUNCHAR); | ^ dofile.c:103:14: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | outbyte1(255); | ^ dofile.c:110:11: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | outbyte1(RUNCHAR); | ^ dofile.c:111:11: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | outbyte1(rep_count + 1); | ^ dofile.c:114:15: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | outbyte1(rep_char); | ^ dofile.c:118:10: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | outbyte1(b); | ^ dofile.c:120:14: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | outbyte1(0); | ^ dofile.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | void outbyte(b) | ^ dofile.c:20:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | void outbyte(); | ^ dofile.c:133:14: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | outbyte1(RUNCHAR); | ^ dofile.c:134:14: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | outbyte1(rep_count + 1); | ^ dofile.c:137:11: warning: passing arguments to 'outbyte1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | outbyte1(rep_char); | ^ dofile.c:143:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | out6bit(savebits << 4); | ^ dofile.c:146:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | out6bit(savebits << 2); | ^ dofile.c:158:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | out6bit(b >> 2); | ^ dofile.c:164:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | out6bit(b >> 4); | ^ dofile.c:170:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | out6bit(b >> 6); | ^ dofile.c:171:9: warning: passing arguments to 'out6bit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | out6bit(b & 0x3f); | ^ dofile.c:153:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | void outbyte1(b) | ^ dofile.c:22:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | void outbyte1(); | ^ dofile.c:180:12: warning: passing arguments to 'outchar' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | outchar(codes[c & 0x3f]); | ^ dofile.c:177:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | void out6bit(c) | ^ dofile.c:23:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | void out6bit(); | ^ dofile.c:186:11: warning: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | (void)putchar(c); | ^ dofile.c:183:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | void outchar(c) | ^ dofile.c:24:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | void outchar(); | ^ 53 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o binhex binhex.o dofile.o ../util/transname.o ../util/backtrans.o ../util/util.o ../fileio/rdfile.o ../fileio/fileglob.o ../crc/libcrc.a ld: warning: binhex.c(binhex.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: rdfile.c(../fileio/rdfile.o:(nextfile)): warning: strcpy() is almost always misused, please use strlcpy() (cd comm; make CF='-O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS') cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c tomac.c tomac.c:48:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | while((c = getopt(argc, argv, options)) != EOF) { | ^ tomac.c:161:10: warning: passing arguments to 'setup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | setup(argc - optind, argv + optind); | ^ tomac.c:174:11: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | transname(file_info + I_NAMEOFF + 1, text, n); | ^ tomac.c:176:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | transname(file_info + I_TYPEOFF, ftype, 4); | ^ tomac.c:177:15: warning: passing arguments to 'transname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | transname(file_info + I_AUTHOFF, fauth, 4); | ^ tomac.c:181:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | do_indent(indent); | ^ tomac.c:186:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | do_indent(indent); | ^ tomac.c:190:22: warning: passing arguments to 'malloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | dir_stack = malloc(64); | ^ tomac.c:192:23: warning: passing arguments to 'realloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | dir_stack = realloc(dir_stack, (unsigned)dir_max + 64); | ^ tomac.c:207:12: warning: passing arguments to 'do_indent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | do_indent(indent); | ^ tomac.c:217:18: warning: call to undeclared function 'do_query'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 217 | write_it = do_query(); | ^ tomac.c:237:7: warning: call to undeclared function 'xm_to'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 237 | xm_to(); | ^ tomac.c:242:7: warning: call to undeclared function 'ym_to'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 242 | ym_to(); | ^ tomac.c:32:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | int main(argc, argv) | ^ 14 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c xm_to.c xm_to.c:44:14: warning: passing arguments to 'send_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | send_part(file_info, DATABYTES, 1); | ^ xm_to.c:48:14: warning: passing arguments to 'send_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | send_part(data_fork, data_size, 1); | ^ xm_to.c:52:14: warning: passing arguments to 'send_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | send_part(rsrc_fork, rsrc_size, 0); | ^ xm_to.c:61:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | tputc(ESC); | ^ xm_to.c:63:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | tputc('a'); | ^ xm_to.c:65:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | tputc('b'); | ^ xm_to.c:67:18: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | while((c = tgetc(ACKTIMO)) != TMO) { | ^ xm_to.c:79:12: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | tputc(ACK); | ^ 8 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c ym_to.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c zm_to.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c to.c to.c:32:14: warning: passing arguments to 'send_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | send_rec(info, databytes, recno); | ^ to.c:33:20: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | status = tgetc(ACKTIMO); | ^ to.c:46:6: warning: call to undeclared function 'cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | cleanup(-1); | ^ to.c:53:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | tputc(EOT); | ^ to.c:55:20: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | status = tgetc(ACKTIMO); | ^ to.c:58:20: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | status = tgetc(ACKTIMO); | ^ to.c:16:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | void send_part(info, size, more) | ^ to.c:78:21: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | crc = binhex_updcrc(binhex_crcinit, buf, bufsize); | ^ to.c:81:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | tputc(SOH); | ^ to.c:83:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | tputc(STX); | ^ to.c:85:10: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | tputc((unsigned char)recno); | ^ to.c:86:10: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | tputc((unsigned char)(MAXRECNO - recno)); | ^ to.c:87:12: warning: passing arguments to 'tputrec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | tputrec(buf, bufsize); | ^ to.c:89:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | tputc((char)(cksum & BYTEMASK)); | ^ to.c:91:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | tputc((char)((crc >> 8) & BYTEMASK)); | ^ to.c:92:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | tputc((char)(crc & BYTEMASK)); | ^ to.c:63:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | static void send_rec(buf, bufsize, recno) | ^ to.c:14:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | static void send_rec(); | ^ 18 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c tty.c tty.c:61:11: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | (void)sleep(1); /* Wait for output to drain */ | ^ tty.c:72:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | exit(sig); | ^ tty.c:72:5: note: include the header or explicitly provide a declaration for 'exit' tty.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | void cleanup(sig) int sig; | ^ tty.c:13:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | void cleanup(); | ^ tty.c:91:8: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | (void)alarm(timeout); | ^ tty.c:93:9: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | i = read(ttyfd, &c, 1); | ^ tty.c:101:8: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | (void)alarm(0); | ^ tty.c:81:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | int tgetc(timeout) | ^ tty.c:15:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | int tgetc(); | ^ tty.c:110:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 110 | tgetrec(buf, count, timeout) | ^ | int tty.c:120:8: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | (void)alarm(timeout); | ^ tty.c:123:6: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | i = read(ttyfd, buf, cc); | ^ tty.c:138:8: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | (void)alarm(0); | ^ tty.c:110:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | tgetrec(buf, count, timeout) | ^ tty.c:155:11: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 155 | (void)write(ttyfd, &cc, 1); | ^ tty.c:143:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | void tputc(c) | ^ tty.c:16:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | void tputc(); | ^ tty.c:168:11: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | (void)write(ttyfd, buf, count); | ^ tty.c:158:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | void tputrec(buf, count) | ^ 19 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c globals.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o tomac tomac.o xm_to.o ym_to.o zm_to.o to.o tty.o globals.o ../util/transname.o ../util/backtrans.o ../util/util.o ../fileio/rdfile.o ../fileio/fileglob.o ../crc/libcrc.a ld: warning: tomac.c(tomac.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: rdfile.c(../fileio/rdfile.o:(nextfile)): warning: strcpy() is almost always misused, please use strlcpy() cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c frommac.c frommac.c:41:11: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | (void)strcat(options, get_wrfileopt()); | ^ frommac.c:41:11: note: include the header or explicitly provide a declaration for 'strcat' frommac.c:45:16: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | while((c = getopt(argc, argv, options)) != EOF) { | ^ frommac.c:147:6: warning: call to undeclared function 'xm_from'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | xm_from(); | ^ frommac.c:152:6: warning: call to undeclared function 'ym_from'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | ym_from(); | ^ frommac.c:163:6: warning: call to undeclared function 'transname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 163 | transname(info + I_NAMEOFF + 1, tname, info[I_NAMEOFF]); | ^ frommac.c:169:7: warning: call to undeclared function 'get4'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | get4(info + I_DLENOFF), get4(info + I_RLENOFF)); | ^ frommac.c:169:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 167 | "name=\"%s\", type=%4.4s, author=%4.4s, data=%ld, rsrc=%ld", | ~~~ | %d 168 | tname, ftype, fauth, 169 | get4(info + I_DLENOFF), get4(info + I_RLENOFF)); | ^~~~~~~~~~~~~~~~~~~~~~ frommac.c:169:31: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 167 | "name=\"%s\", type=%4.4s, author=%4.4s, data=%ld, rsrc=%ld", | ~~~ | %d 168 | tname, ftype, fauth, 169 | get4(info + I_DLENOFF), get4(info + I_RLENOFF)); | ^~~~~~~~~~~~~~~~~~~~~~ frommac.c:28:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | int main(argc, argv) | ^ 9 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c xm_from.c xm_from.c:27:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | receive_part(info, DATABYTES, 1, use_crc); | ^ xm_from.c:28:2: warning: call to undeclared function 'transname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 28 | transname(info + I_NAMEOFF + 1, text, info[I_NAMEOFF]); | ^ xm_from.c:29:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | define_name(text); | ^ xm_from.c:30:14: warning: call to undeclared function 'get4'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | data_size = get4(info + I_DLENOFF); | ^ xm_from.c:32:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | start_info(info, rsrc_size, data_size); | ^ xm_from.c:38:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | receive_part(out_buffer, data_size, 1, 0); | ^ xm_from.c:44:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | receive_part(out_buffer, rsrc_size, 0, 0); | ^ xm_from.c:54:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | c = tgetc(60); | ^ xm_from.c:65:6: warning: call to undeclared function 'cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | cleanup(); | ^ xm_from.c:73:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | c = tgetc(1); | ^ xm_from.c:88:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | tputc(ACK); | ^ xm_from.c:90:7: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | tputc('C'); | ^ xm_from.c:91:15: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | if((c = tgetc(SOHTIMO)) == SOH || c == STX) { | ^ xm_from.c:94:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | tputc(NAK); | ^ 14 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c ym_from.c ym_from.c:28:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | receive_part(info, DATABYTES, 1, use_crc); | ^ ym_from.c:29:2: warning: call to undeclared function 'transname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | transname(info + I_NAMEOFF + 1, text, info[I_NAMEOFF]); | ^ ym_from.c:30:13: warning: passing arguments to 'define_name' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | define_name(text); | ^ ym_from.c:31:14: warning: call to undeclared function 'get4'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 31 | data_size = get4(info + I_DLENOFF); | ^ ym_from.c:33:12: warning: passing arguments to 'start_info' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | start_info(info, rsrc_size, data_size); | ^ ym_from.c:39:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | receive_part(out_buffer, data_size, 1, 0); | ^ ym_from.c:45:14: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | receive_part(out_buffer, rsrc_size, 0, 0); | ^ ym_from.c:55:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | c = tgetc(60); | ^ ym_from.c:66:6: warning: call to undeclared function 'cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 66 | cleanup(); | ^ ym_from.c:74:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | c = tgetc(1); | ^ ym_from.c:85:10: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | tputc('C'); | ^ ym_from.c:88:17: warning: passing arguments to 'receive_part' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | receive_part(info, DATABYTES, 1, 0); | ^ ym_from.c:89:10: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | tputc(ACK); | ^ ym_from.c:90:10: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | tputc('C'); | ^ 14 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c zm_from.c cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c from.c from.c:25:22: warning: passing arguments to 'receive_rec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | status = receive_rec(info, DATABYTES, skip); | ^ from.c:35:8: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | tputc(ACK); | ^ from.c:38:8: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | tputc(NAK); | ^ from.c:44:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | tputc(ACK); | ^ from.c:54:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | tputc(ACK); | ^ from.c:59:8: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | tputc(NAK); | ^ from.c:63:11: warning: passing arguments to 'tputc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | tputc(CAN); | ^ from.c:64:6: warning: call to undeclared function 'cleanup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | cleanup(-1); | ^ from.c:17:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | void receive_part(info, size, more, skip) | ^ from.c:76:24: warning: passing arguments to 'receive_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | status = receive_block(skip); | ^ from.c:69:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | static int receive_rec(buf, bufsize, skip) | ^ from.c:14:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | static int receive_rec(); | ^ from.c:99:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | c = tgetc(SOHTIMO); | ^ from.c:119:16: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | rec = tgetc(CHRTIMO); | ^ from.c:123:19: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | recbar = tgetc(CHRTIMO); | ^ from.c:130:15: warning: passing arguments to 'tgetrec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if(tgetrec(buffer, numdata, LINTIMO) == TMO) { | ^ from.c:140:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | c = tgetc(CHRTIMO); | ^ from.c:148:21: warning: passing arguments to 'binhex_updcrc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | crc = binhex_updcrc(binhex_crcinit, buf_ptr, numdata); | ^ from.c:149:14: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | crc1 = tgetc(CHRTIMO); | ^ from.c:153:11: warning: passing arguments to 'tgetc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | c = tgetc(CHRTIMO); | ^ from.c:91:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | static int receive_block(skip) | ^ from.c:15:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | static int receive_block(); | ^ 22 warnings generated. cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -o frommac frommac.o xm_from.o ym_from.o zm_from.o from.o tty.o globals.o ../util/transname.o ../util/util.o ../fileio/wrfile.o ../fileio/fileglob.o ../crc/libcrc.a ld: warning: frommac.c(frommac.o:(main)): warning: strcat() is almost always misused, please use strlcat() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: sprintf() is often misused, please use snprintf() ld: warning: wrfile.c(../fileio/wrfile.o:(define_name)): warning: strcpy() is almost always misused, please use strlcpy() touch all >>> Running package in archivers/macutil at 1764443019.50 ===> archivers/macutil ===> Faking installation for macutil-2.0b3p4 /exopi-obj/pobj/macutil-2.0b3/bin/install -c -s -m 755 /exopi-obj/pobj/macutil-2.0b3/macutil/macunpack/macunpack /exopi-obj/pobj/macutil-2.0b3/macutil/hexbin/hexbin /exopi-obj/pobj/macutil-2.0b3/macutil/mixed/macsave /exopi-obj/pobj/macutil-2.0b3/macutil/mixed/macstream /exopi-obj/pobj/macutil-2.0b3/macutil/binhex/binhex /exopi-obj/pobj/macutil-2.0b3/macutil/comm/tomac /exopi-obj/pobj/macutil-2.0b3/macutil/comm/frommac /exopi-obj/pobj/macutil-2.0b3/fake-amd64/usr/local/bin /exopi-obj/pobj/macutil-2.0b3/bin/install -c -m 644 /exopi-obj/pobj/macutil-2.0b3/macutil/man/macunpack.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/hexbin.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/macsave.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/macstream.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/binhex.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/tomac.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/frommac.1 /exopi-obj/pobj/macutil-2.0b3/macutil/man/macutil.1 /exopi-obj/pobj/macutil-2.0b3/fake-amd64/usr/local/man/man1 /exopi-obj/pobj/macutil-2.0b3/bin/install -d -m 755 /exopi-obj/pobj/macutil-2.0b3/fake-amd64/usr/local/share/doc/macutil /exopi-obj/pobj/macutil-2.0b3/bin/install -c -m 644 /exopi-obj/pobj/macutil-2.0b3/macutil/README /exopi-obj/pobj/macutil-2.0b3/fake-amd64/usr/local/share/doc/macutil ===> Building package for macutil-2.0b3p4 Create /exopi-cvs/ports/packages/amd64/all/macutil-2.0b3p4.tgz Creating package macutil-2.0b3p4 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|** | 4% checksumming|***** | 8% checksumming|******* | 12% checksumming|********* | 15% checksumming|************ | 19% checksumming|************** | 23% checksumming|**************** | 27% checksumming|******************* | 31% checksumming|********************* | 35% checksumming|*********************** | 38% checksumming|************************** | 42% checksumming|**************************** | 46% checksumming|******************************* | 50% checksumming|********************************* | 54% checksumming|*********************************** | 58% checksumming|************************************** | 62% checksumming|**************************************** | 65% checksumming|****************************************** | 69% checksumming|********************************************* | 73% checksumming|*********************************************** | 77% checksumming|************************************************* | 81% checksumming|**************************************************** | 85% checksumming|****************************************************** | 88% checksumming|******************************************************** | 92% checksumming|*********************************************************** | 96% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|****** | 9% archiving|*********** | 17% archiving|****************** | 28% archiving|*********************** | 35% archiving|*************************** | 43% archiving|************************************************* | 76% archiving|******************************************************* | 85% archiving|******************************************************* | 86% archiving|******************************************************** | 87% archiving|******************************************************** | 88% archiving|********************************************************* | 89% archiving|********************************************************** | 90% archiving|********************************************************** | 91% archiving|*********************************************************** | 92% archiving|****************************************************************|100% >>> Running clean in archivers/macutil at 1764443022.83 ===> archivers/macutil ===> Cleaning for macutil-2.0b3p4 >>> Ended at 1764443023.33 max_stuck=0.61/build=25.85/package=3.30/clean=0.55