>>> Building on exopi-2 under archivers/macutil DIST = [archivers/macutil:macutil2.0b3.shar.Z] FULLPKGNAME = macutil-2.0b3p4 distfiles size=167565 >>> Running build in archivers/macutil at 1735132194.14 ===> archivers/macutil ===> Building from scratch macutil-2.0b3p4 ===> Verifying specs: c ===> found c.100.3 ===> 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] initcrctab("zip",0xedb88320,0xffffffff,1,32); ^ makecrc.c:103:35: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] void transname(name, namebuf, n) ^ cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c backtrans.c 1 warning generated. backtrans.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern time_t time(); ^ /usr/include/time.h:123:8: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] (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 function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void)bcopy(info, ptr, 128); ^ wrfile.c:125:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] wr_aufs_info(fp); ^ wrfile.c:381:8: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (void)bcopy(header, buffer, INFOBYTES); ^ wrfile.c:409:11: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (void)chdir(".."); ^ wrfile.c:586:32: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] put4(theinfo.fi_utime, (unsigned long)time((time_t *)0)); ^ wrfile.c:590:5: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bcopy(buffer + I_TYPEOFF, theinfo.fi_fndr, 4); ^ 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void wr_aufs_info(); ^ wrfile.c:577:25: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] theinfo.fi_magic1 = FI_MAGIC1; ~ ^~~~~~~~~ ./aufs.h:4:19: note: expanded from macro 'FI_MAGIC1' #define FI_MAGIC1 255 ^~~ wrfile.c:685:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] while(ch = *mp++) { ~~~^~~~~~~ wrfile.c:685:14: note: place parentheses around the assignment to silence this warning while(ch = *mp++) { ^ ( ) wrfile.c:685:14: note: use '==' to turn this assignment into an equality comparison 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 C2x [-Wdeprecated-non-prototype] 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] char c; ^ ./wrfileopt.h:1:26: note: previous declaration is here 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] void set_wrfileopt(restricted) ^ wrfile.c:805:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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] void set_s_wrfileopt(restricted) ^ wrfile.c:810:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void set_s_wrfileopt(restricted) ^ 33 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern time_t time(); ^ /usr/include/time.h:123:8: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] !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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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] (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] (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] 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] if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || ^~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:788:26: note: place parentheses around the '!=' expression to silence this warning if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || ^ ~~~~~~~~~~~~~~~~~~~~~ rdfile.c:788:26: note: place parentheses around the & expression to evaluate it first if(theinfo.fi_magic1 & BYTEMASK != FI_MAGIC1 || ~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:789:27: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] theinfo.fi_version & BYTEMASK != FI_VERSION || ^~~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:789:27: note: place parentheses around the '!=' expression to silence this warning theinfo.fi_version & BYTEMASK != FI_VERSION || ^ ~~~~~~~~~~~~~~~~~~~~~~ rdfile.c:789:27: note: place parentheses around the & expression to evaluate it first theinfo.fi_version & BYTEMASK != FI_VERSION || ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:790:25: warning: & has lower precedence than !=; != will be evaluated first [-Wparentheses] theinfo.fi_magic & BYTEMASK != FI_MAGIC) { ^~~~~~~~~~~~~~~~~~~~~~ rdfile.c:790:25: note: place parentheses around the '!=' expression to silence this warning theinfo.fi_magic & BYTEMASK != FI_MAGIC) { ^ ~~~~~~~~~~~~~~~~~~~~ rdfile.c:790:25: note: place parentheses around the & expression to evaluate it first theinfo.fi_magic & BYTEMASK != FI_MAGIC) { ~~~~~~~~~~~~~~~~~^~~~~~~~~~ rdfile.c:794:5: warning: call to undeclared function 'bcopy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] bcopy(theinfo.fi_fndr, file_info + I_TYPEOFF, 4); ^ rdfile.c:814:34: warning: passing arguments to 'get4' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] char c; ^ ./rdfileopt.h:1:26: note: previous declaration is here 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] int main(argc, argv) ^ cc -O2 -pipe -DBSD -DTYPES_H -DDIRENT_H -DTERMIOS_H -DAUFSPLUS -c globals.c 3 warnings generated. 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern time_t time(); ^ /usr/include/time.h:123:8: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] typedef struct sitHdr { /* 22 bytes */ ^~~~~~~ ./sit.h:37:1: warning: typedef requires a name [-Wmissing-declarations] typedef struct fileHdr { /* 112 bytes */ ^~~~~~~ sit.c:22:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern time_t time(); ^ /usr/include/time.h:123:8: note: conflicting prototype is here 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] typedef struct cptHdr { /* 8 bytes */ ^~~~~~~ ./cpt.h:90:16: warning: '/*' within block comment [-Wcomment] /* ???? 8 /* unknown */ ^ ./cpt.h:45:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] typedef struct fileHdr { /* 58 bytes */ ^~~~~~~ lzh.c:26:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] !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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] typedef struct fileHdr { /* 124 bytes */ ^~~~~~~ ./dd.h:76:1: warning: typedef requires a name [-Wmissing-declarations] typedef struct fileCHdr { /* 84 bytes */ ^~~~~~~ dd.c:48:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void dd_rle(); ^ dd.c:917:16: warning: implicit conversion from 'int' to 'char' changes value from 324 to 68 [-Wconstant-conversion] *out_ptr++ = ESC; ~ ^~~ ./dd.h:124:14: note: expanded from macro 'ESC' #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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] *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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] *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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern time_t time(); ^ /usr/include/time.h:123:8: note: conflicting prototype is here 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] verify_crc(calc_crc, file_crc); ^ hqx.c:339:57: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] (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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static getqbuf(); ^ hqx.c:392:1: warning: non-void function does not return a value [-Wreturn-type] } ^ 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] void print_header2(skip) ^ printhdr.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] extern char *rindex(); ^ ./globals.h:16:1: warning: typedef requires a name [-Wmissing-declarations] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] static void mcb_wrfile(); ^ 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 21 warnings generated. ld: warning: macsave.c(macsave.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() 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (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] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] int tgetc(); ^ tty.c:110:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 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] (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] 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] (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 C2x [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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] (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 C2x [-Wdeprecated-non-prototype] 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: rdfile.c(../fileio/rdfile.o:(nextfile)): 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] (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] 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] 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] 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] 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] get4(info + I_DLENOFF), get4(info + I_RLENOFF)); ^ frommac.c:169:7: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] get4(info + I_DLENOFF), get4(info + I_RLENOFF)); ^~~~~~~~~~~~~~~~~~~~~~ frommac.c:169:31: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x [-Wdeprecated-non-prototype] 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 C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 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 1735132211.77 ===> 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|******************************************************* | 86% archiving|******************************************************* | 87% archiving|******************************************************** | 87% archiving|********************************************************* | 88% archiving|********************************************************* | 89% archiving|********************************************************** | 90% archiving|********************************************************** | 91% archiving|*********************************************************** | 92% archiving|****************************************************************|100% >>> Running clean in archivers/macutil at 1735132214.44 ===> archivers/macutil ===> Cleaning for macutil-2.0b3p4 >>> Ended at 1735132214.79 max_stuck=0.00/build=17.56/package=2.74/clean=0.39