==> Updating pacman database cache :: Synchronizing package databases... core downloading... extra downloading... ==> Building xloadimage -> repo: extra-staging -> arch: aarch64 -> worker: ben-5 ==> Building xloadimage for [extra-staging] (aarch64) :: Synchronizing package databases... core-staging downloading... core-testing downloading... core downloading... extra-staging downloading... extra-testing downloading... aur downloading... extra downloading... :: Starting full system upgrade... there is nothing to do ==> Building in chroot for [extra-staging] (aarch64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-staging-aarch64/root] -> [ben-5]...done ==> Making package: xloadimage 4.1-16 (Wed Sep 16 20:37:13 2026) ==> Retrieving sources... -> Downloading xloadimage.4.1-1.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 0 100 608.9k 100 608.9k 0 0 993.8k 0 0 100 608.9k 100 608.9k 0 0 993.7k 0 0 100 608.9k 100 608.9k 0 0 993.5k 0 0 -> Found license.txt -> Found enable-image-types.patch -> Found png15-tiff4.patch ==> Validating source files with sha256sums... xloadimage.4.1-1.tar.gz ... Passed license.txt ... Passed enable-image-types.patch ... Passed png15-tiff4.patch ... Passed ==> Making package: xloadimage 4.1-16 (Thu Sep 17 03:37:20 2026) ==> Checking runtime dependencies... ==> Installing missing dependencies... dependencies... looking for conflicting packages... Package (13) New Version Net Change extra-testing/jbigkit 2.1-8 0.42 MiB extra-testing/libdeflate 1.26-1 0.22 MiB extra-testing/libjpeg-turbo 3.2.0-2 2.49 MiB extra-testing/libwebp 1.6.0-2 0.89 MiB extra-testing/libxau 1.0.12-1 0.07 MiB extra-testing/libxcb 1.17.0-1 4.90 MiB extra-testing/libxdmcp 1.1.5-2 0.17 MiB extra-testing/xcb-proto 1.17.0-4 1.03 MiB extra-testing/xorgproto 2025.1-1 1.47 MiB extra-testing/libpng 1.6.58-2 0.76 MiB extra-testing/libtiff 4.7.2-1 2.09 MiB extra-testing/libx11 1.8.13-1 9.91 MiB extra-testing/libxext 1.3.7-1 0.36 MiB Total Installed Size: 24.76 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... libx11-1.8.13-1-aarch64 downloading... libxcb-1.17.0-1-aarch64 downloading... libjpeg-turbo-3.2.0-2-aarch64 downloading... libtiff-4.7.2-1-aarch64 downloading... libwebp-1.6.0-2-aarch64 downloading... libpng-1.6.58-2-aarch64 downloading... libxext-1.3.7-1-aarch64 downloading... libdeflate-1.26-1-aarch64 downloading... jbigkit-2.1-8-aarch64 downloading... libxdmcp-1.1.5-2-aarch64 downloading... libxau-1.0.12-1-aarch64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing jbigkit... installing libdeflate... installing libjpeg-turbo... installing libwebp... Optional dependencies for libwebp libwebp-utils: WebP conversion and inspection tools installing libtiff... Optional dependencies for libtiff freeglut: for using tiffgt installing libpng... installing xcb-proto... installing xorgproto... installing libxdmcp... installing libxau... installing libxcb... installing libx11... installing libxext... :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... ==> Checking buildtime dependencies... ==> Installing missing dependencies... dependencies... looking for conflicting packages... Package (1) New Version Net Change Download Size extra-testing/imake 1.0.11-1 1.41 MiB 0.28 MiB Total Download Size: 0.28 MiB Total Installed Size: 1.41 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... imake-1.0.11-1-aarch64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing imake... Optional dependencies for imake perl: for mkhtmlindex [installed] :: Running post-transaction hooks... (1/1) Arming ConditionNeedsUpdate... ==> Retrieving sources... -> Found xloadimage.4.1-1.tar.gz -> Found license.txt -> Found enable-image-types.patch -> Found png15-tiff4.patch ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting xloadimage.4.1-1.tar.gz with bsdtar ==> Starting build()... patching file imagetypes.h patching file Imakefile patching file Makefile patching file png.c patching file jpeg.c patching file png.c Hunk #1 succeeded at 76 (offset 1 line). Hunk #2 succeeded at 165 (offset 1 line). Hunk #3 succeeded at 221 (offset 1 line). patching file tiff.c mv -f Makefile Makefile.bak imake -DUseInstalled -I/usr/lib/X11/config gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o new.o new.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o niff.o niff.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o value.o value.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o zio.o zio.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o cmuwmraster.o cmuwmraster.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o faces.o faces.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o fbm.o fbm.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o gif.o gif.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o imagetypes.o imagetypes.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o img.o img.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o mac.o mac.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o mcidas.o mcidas.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o mc_tables.o mc_tables.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o pbm.o pbm.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o pcx.o pcx.c gcc -O2 -fno-strict-aliasing -I/usr/include -Dlinux -D__aarch64__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DFUNCPROTO=15 -DNARROWPROTO -DSYSPATHFILE=\"/usr/lib/X11/app-defaults/Xloadimage\" -DHAS_TIFF -DHAS_JPEG -DHAS_PNG -DHAVE_LIBJPEG -DHAVE_LIBTIFF -DHAVE_LIBPNG -c -o pdsuncomp.o pdsuncomp.c In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from new.c:12: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from value.c:14: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from zio.c:14: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ new.c: In function ‘colorsToDepth’: new.c:58:15: warning: old-style function definition [-Wold-style-definition] 58 | unsigned long colorsToDepth(ncolors) | ^~~~~~~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from niff.c:11: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ value.c: In function ‘doMemToVal’: value.c:16:15: warning: old-style function definition [-Wold-style-definition] 16 | unsigned long doMemToVal(p, len) | ^~~~~~~~~~ value.c:19:1: error: number of arguments doesn’t match prototype 19 | { unsigned int a; | ^ image.h:291:15: error: prototype declaration 291 | unsigned long doMemToVal _ArgProto((byte *p, unsigned int len)); | ^~~~~~~~~~ value.c: In function ‘doValToMem’: value.c:28:15: warning: old-style function definition [-Wold-style-definition] 28 | unsigned long doValToMem(val, p, len) | ^~~~~~~~~~ value.c:32:1: error: number of arguments doesn’t match prototype 32 | { int a; | ^ image.h:292:15: error: prototype declaration 292 | unsigned long doValToMem _ArgProto((unsigned long val, byte *p, unsigned int len)); | ^~~~~~~~~~ value.c: In function ‘doMemToValLSB’: value.c:41:15: warning: old-style function definition [-Wold-style-definition] 41 | unsigned long doMemToValLSB(p, len) | ^~~~~~~~~~~~~ value.c:44:1: error: number of arguments doesn’t match prototype 44 | { int val, a; | ^ image.h:293:15: error: prototype declaration 293 | unsigned long doMemToValLSB _ArgProto((byte *p, unsigned int len)); | ^~~~~~~~~~~~~ value.c: In function ‘doValToMemLSB’: value.c:55:15: warning: old-style function definition [-Wold-style-definition] 55 | unsigned long doValToMemLSB(val, p, len) | ^~~~~~~~~~~~~ value.c:59:1: error: number of arguments doesn’t match prototype 59 | { | ^ image.h:294:15: error: prototype declaration 294 | unsigned long doValToMemLSB _ArgProto((unsigned long val, byte *p, unsigned int len)); | ^~~~~~~~~~~~~ value.c: In function ‘flipBits’: value.c:70:6: warning: old-style function definition [-Wold-style-definition] 70 | void flipBits(p, len) | ^~~~~~~~ value.c:73:1: error: number of arguments doesn’t match prototype 73 | { static int init= 0; | ^ image.h:295:15: error: prototype declaration 295 | void flipBits _ArgProto((byte *p, unsigned int len)); | ^~~~~~~~ make: *** [: value.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from fbm.c:17: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ new.c:60:1: error: number of arguments doesn’t match prototype 60 | { unsigned long a; | ^ image.h:256:15: error: prototype declaration 256 | unsigned long colorsToDepth(); | ^~~~~~~~~~~~~ new.c: In function ‘goodImage’: new.c:81:6: warning: old-style function definition [-Wold-style-definition] 81 | void goodImage(image, func) | ^~~~~~~~~ new.c:84:1: error: number of arguments doesn’t match prototype 84 | { | ^ image.h:238:8: error: prototype declaration 238 | void goodImage _ArgProto((Image *image, char *where)); | ^~~~~~~~~ new.c:87:5: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 87 | exit(0); | ^~~~ new.c:13:1: note: include ‘’ or provide a declaration of ‘exit’ 12 | #include "image.h" +++ |+#include 13 | #ifdef HAVE_MALLOC_H new.c:87:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 87 | exit(0); | ^~~~ new.c:87:5: note: include ‘’ or provide a declaration of ‘exit’ new.c:96:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 96 | exit(0); | ^~~~ new.c:96:5: note: include ‘’ or provide a declaration of ‘exit’ new.c: In function ‘dupString’: new.c:99:7: warning: old-style function definition [-Wold-style-definition] 99 | char *dupString(s) | ^~~~~~~~~ new.c:101:1: error: number of arguments doesn’t match prototype 101 | { char *d; | ^ image.h:257:8: error: prototype declaration 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ new.c:105:14: error: too many arguments to function ‘lmalloc’; expected 0, have 1 105 | d= (char *)lmalloc(strlen(s) + 1); | ^~~~~~~ ~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c: In function ‘newRGBMapData’: new.c:110:6: warning: old-style function definition [-Wold-style-definition] 110 | void newRGBMapData(rgb, size) | ^~~~~~~~~~~~~ new.c:113:1: error: number of arguments doesn’t match prototype 113 | { | ^ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from cmuwmraster.c:14: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ image.h:264:8: error: prototype declaration 264 | void newRGBMapData _ArgProto((RGBMap *rgb, unsigned int size)); | ^~~~~~~~~~~~~ new.c:117:26: error: too many arguments to function ‘lmalloc’; expected 0, have 1 117 | rgb->red= (Intensity *)lmalloc(sizeof(Intensity) * size); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c:118:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1 118 | rgb->green= (Intensity *)lmalloc(sizeof(Intensity) * size); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c:119:27: error: too many arguments to function ‘lmalloc’; expected 0, have 1 119 | rgb->blue= (Intensity *)lmalloc(sizeof(Intensity) * size); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c: In function ‘freeRGBMapData’: new.c:122:6: warning: old-style function definition [-Wold-style-definition] 122 | void freeRGBMapData(rgb) | ^~~~~~~~~~~~~~ new.c:124:1: error: number of arguments doesn’t match prototype 124 | { | ^ image.h:265:8: error: prototype declaration 265 | void freeRGBMapData _ArgProto((RGBMap *rgb)); | ^~~~~~~~~~~~~~ new.c:125:3: error: too many arguments to function ‘lfree’; expected 0, have 1 125 | lfree((byte *)rgb->red); | ^~~~~ ~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c:126:3: error: too many arguments to function ‘lfree’; expected 0, have 1 126 | lfree((byte *)rgb->green); | ^~~~~ ~~~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c:127:3: error: too many arguments to function ‘lfree’; expected 0, have 1 127 | lfree((byte *)rgb->blue); | ^~~~~ ~~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c: In function ‘newBitImage’: new.c:130:8: warning: old-style function definition [-Wold-style-definition] 130 | Image *newBitImage(width, height) | ^~~~~~~~~~~ zio.c: In function ‘doRead’: zio.c:30:12: warning: old-style function definition [-Wold-style-definition] 30 | static int doRead(zf, buf, len) | ^~~~~~ new.c:132:1: error: number of arguments doesn’t match prototype 132 | { Image *image; | ^ zio.c:57:50: error: too many arguments to function ‘lmalloc’; expected 0, have 1 57 | zf->data= zf->dataptr= (struct cache *)lmalloc(sizeof(struct cache)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:60:46: error: too many arguments to function ‘lmalloc’; expected 0, have 1 60 | zf->dataptr->next= (struct cache *)lmalloc(sizeof(struct cache)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:67:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 67 | exit(1); | ^~~~ zio.c:15:1: note: include ‘’ or provide a declaration of ‘exit’ 14 | #include "image.h" +++ |+#include 15 | zio.c:67:11: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 67 | exit(1); | ^~~~ zio.c:67:11: note: include ‘’ or provide a declaration of ‘exit’ image.h:258:8: error: prototype declaration 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ new.c:135:19: error: too many arguments to function ‘lmalloc’; expected 0, have 1 135 | image= (Image *)lmalloc(sizeof(Image)); | ^~~~~~~ ~~~~~~~~~~~~~ zio.c: In function ‘zreset’: image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:88:6: warning: old-style function definition [-Wold-style-definition] 88 | void zreset(filename) | ^~~~~~ zio.c:90:1: error: number of arguments doesn’t match prototype 90 | { int a; | ^ image.h:304:8: error: prototype declaration 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ new.c:138:3: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2 138 | newRGBMapData(&(image->rgb), (unsigned int)2); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~ new.c:110:6: note: declared here 110 | void newRGBMapData(rgb, size) | ^~~~~~~~~~~~~ zio.c:99:9: error: too many arguments to function ‘zreset’; expected 0, have 1 99 | zreset(ZFileTable[a].filename); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ zio.c:88:6: note: declared here 88 | void zreset(filename) | ^~~~~~ zio.c:116:5: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 116 | free(old); | ^~~~ zio.c:116:5: note: include ‘’ or provide a declaration of ‘free’ zio.c:116:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] zio.c:116:5: note: include ‘’ or provide a declaration of ‘free’ new.c:146:33: error: too many arguments to function ‘lcalloc’; expected 0, have 1 146 | image->data= (unsigned char *)lcalloc(ovmul(linelen, height)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ zio.c:118:3: error: too many arguments to function ‘lfree’; expected 0, have 1 118 | lfree((byte *)ZFileTable[a].filename); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ image.h:266:8: note: declared here 266 | byte *lcalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c: In function ‘newRGBImage’: new.c:150:8: warning: old-style function definition [-Wold-style-definition] 150 | Image *newRGBImage(width, height, depth) | ^~~~~~~~~~~ new.c:152:1: error: number of arguments doesn’t match prototype 152 | { Image *image; | ^ image.h:259:8: error: prototype declaration 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ zio.c:137:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 137 | exit(1); | ^~~~ zio.c:137:5: note: include ‘’ or provide a declaration of ‘exit’ zio.c: In function ‘zopen’: zio.c:141:8: warning: old-style function definition [-Wold-style-definition] 141 | ZFILE *zopen(name) | ^~~~~ zio.c:143:1: error: number of arguments doesn’t match prototype 143 | { int a; | ^ image.h:298:8: error: prototype declaration 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ new.c:159:19: error: too many arguments to function ‘lmalloc’; expected 0, have 1 159 | image= (Image *)lmalloc(sizeof(Image)); | ^~~~~~~ ~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c:162:3: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2 162 | newRGBMapData(&(image->rgb), numcolors); | ^~~~~~~~~~~~~ ~~~~~~~~~~~~~ new.c:110:6: note: declared here 110 | void newRGBMapData(rgb, size) | ^~~~~~~~~~~~~ new.c:167:33: error: too many arguments to function ‘lmalloc’; expected 0, have 1 167 | image->data= (unsigned char *)lmalloc(ovmul(ovmul(width, height), pixlen)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:166:9: error: too many arguments to function ‘zreset’; expected 0, have 1 166 | zreset(ZFileTable[a].filename); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ zio.c:88:6: note: declared here 88 | void zreset(filename) | ^~~~~~ new.c: In function ‘newTrueImage’: new.c:171:8: warning: old-style function definition [-Wold-style-definition] 171 | Image *newTrueImage(width, height) | ^~~~~~~~~~~~ new.c:173:1: error: number of arguments doesn’t match prototype 173 | { Image *image; | ^ image.h:261:8: error: prototype declaration 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ new.c:175:19: error: too many arguments to function ‘lmalloc’; expected 0, have 1 175 | image= (Image *)lmalloc(sizeof(Image)); | ^~~~~~~ ~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:185:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 185 | exit(1); | ^~~~ zio.c:185:5: note: include ‘’ or provide a declaration of ‘exit’ niff.c: In function ‘babble’: new.c:183:33: error: too many arguments to function ‘lmalloc’; expected 0, have 1 183 | image->data= (unsigned char *)lmalloc(ovmul(ovmul(width, height), 3)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:189:17: error: too many arguments to function ‘dupString’; expected 0, have 1 189 | zf->filename= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ niff.c:17:13: warning: old-style function definition [-Wold-style-definition] 17 | static void babble(name, header, title) | ^~~~~~ new.c:184:33: error: too many arguments to function ‘lmalloc’; expected 0, have 1 184 | image->data= (unsigned char *)lmalloc(width * height * 3); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c: In function ‘freeImageData’: new.c:188:6: warning: old-style function definition [-Wold-style-definition] 188 | void freeImageData(image) | ^~~~~~~~~~~~~ new.c:190:1: error: number of arguments doesn’t match prototype 190 | { | ^ image.h:263:8: error: prototype declaration 263 | void freeImageData _ArgProto((Image *image)); | ^~~~~~~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from img.c:13: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ zio.c:221:34: error: too many arguments to function ‘lmalloc’; expected 0, have 1 221 | s = fname = (char *) lmalloc(1 + (5 * strlen(name)) + 1 + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c:236:13: error: too many arguments to function ‘lfree’; expected 0, have 1 236 | lfree (fname); | ^~~~~ ~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ zio.c:238:9: error: too many arguments to function ‘lfree’; expected 0, have 1 238 | lfree((byte *)zf->filename); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ zio.c:258:5: error: too many arguments to function ‘lfree’; expected 0, have 1 258 | lfree((byte *)zf->filename); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ new.c:192:5: error: too many arguments to function ‘lfree’; expected 0, have 1 192 | lfree((byte *)image->title); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c:196:5: error: too many arguments to function ‘freeRGBMapData’; expected 0, have 1 196 | freeRGBMapData(&(image->rgb)); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~ new.c:122:6: note: declared here 122 | void freeRGBMapData(rgb) | ^~~~~~~~~~~~~~ new.c:197:3: error: too many arguments to function ‘lfree’; expected 0, have 1 197 | lfree(image->data); | ^~~~~ ~~~~~~~~~~~ zio.c: In function ‘zread’: In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from gif.c:16: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c: In function ‘freeImage’: new.c:200:6: warning: old-style function definition [-Wold-style-definition] 200 | void freeImage(image) | ^~~~~~~~~ new.c:202:1: error: number of arguments doesn’t match prototype 202 | { | ^ image.h:262:8: error: prototype declaration 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ new.c:203:3: error: too many arguments to function ‘goodImage’; expected 0, have 2 203 | goodImage(image, "freeImage"); | ^~~~~~~~~ ~~~~~ new.c:81:6: note: declared here 81 | void goodImage(image, func) | ^~~~~~~~~ new.c:204:3: error: too many arguments to function ‘freeImageData’; expected 0, have 1 204 | freeImageData(image); | ^~~~~~~~~~~~~ ~~~~~ new.c:188:6: note: declared here 188 | void freeImageData(image) | ^~~~~~~~~~~~~ new.c:206:3: error: too many arguments to function ‘lfree’; expected 0, have 1 206 | lfree((byte *)image); | ^~~~~ ~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c: In function ‘lmalloc’: new.c:209:7: warning: old-style function definition [-Wold-style-definition] 209 | byte *lmalloc(size) | ^~~~~~~ new.c:211:1: error: number of arguments doesn’t match prototype 211 | { byte *area; | ^ image.h:267:8: error: prototype declaration 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c:218:23: error: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration] 218 | if (!(area= (byte *)malloc(size))) { | ^~~~~~ new.c:218:23: note: include ‘’ or provide a declaration of ‘malloc’ new.c:218:23: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] new.c:218:23: note: include ‘’ or provide a declaration of ‘malloc’ new.c: In function ‘lcalloc’: new.c:225:7: warning: old-style function definition [-Wold-style-definition] 225 | byte *lcalloc(size) | ^~~~~~~ new.c:227:1: error: number of arguments doesn’t match prototype 227 | { byte *area; | ^ image.h:266:8: error: prototype declaration 266 | byte *lcalloc _ArgProto((unsigned int size)); | ^~~~~~~ new.c:234:23: error: implicit declaration of function ‘calloc’ [-Wimplicit-function-declaration] 234 | if (!(area= (byte *)calloc(1, size))) { | ^~~~~~ new.c:234:23: note: include ‘’ or provide a declaration of ‘calloc’ new.c:234:23: warning: incompatible implicit declaration of built-in function ‘calloc’ [-Wbuiltin-declaration-mismatch] new.c:234:23: note: include ‘’ or provide a declaration of ‘calloc’ new.c: In function ‘lfree’: niff.c: In function ‘readHeader’: niff.c:47:12: warning: old-style function definition [-Wold-style-definition] 47 | static int readHeader(zf, header, rtitle) | ^~~~~~~~~~ zio.c:265:5: warning: old-style function definition [-Wold-style-definition] 265 | int zread(zf, buf, len) | ^~~~~ niff.c:56:7: error: too many arguments to function ‘zread’; expected 0, have 3 56 | if (zread(zf, (byte *)header, sizeof(struct niff_header)) != | ^~~~~ ~~ new.c:241:6: warning: old-style function definition [-Wold-style-definition] 241 | void lfree(area) | ^~~~~ new.c:243:1: error: number of arguments doesn’t match prototype 243 | { | ^ image.h:268:8: error: prototype declaration 268 | void lfree _ArgProto((byte *area)); | ^~~~~ new.c:244:3: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration] 244 | free(area); | ^~~~ new.c:244:3: note: include ‘’ or provide a declaration of ‘free’ new.c:244:3: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] new.c:244:3: note: include ‘’ or provide a declaration of ‘free’ zio.c:269:1: error: number of arguments doesn’t match prototype 269 | { | ^ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ image.h:299:8: error: prototype declaration 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ niff.c:58:5: error: too many arguments to function ‘zclose’; expected 0, have 1 58 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ zio.c: In function ‘zgetc’: zio.c:273:5: warning: old-style function definition [-Wold-style-definition] 273 | int zgetc(zf) | ^~~~~ zio.c:275:1: error: number of arguments doesn’t match prototype 275 | { unsigned char c; | ^ image.h:300:8: error: prototype declaration 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ zio.c: In function ‘zgets’: zio.c:283:7: warning: old-style function definition [-Wold-style-definition] 283 | char *zgets(buf, size, zf) | ^~~~~ zio.c:287:1: error: number of arguments doesn’t match prototype 287 | { int p= 0; | ^ image.h:301:8: error: prototype declaration 301 | char *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf)); | ^~~~~ mc_tables.c: In function ‘mc_sensor’: mc_tables.c:11:1: warning: old-style function definition [-Wold-style-definition] 11 | mc_sensor(sscode) | ^~~~~~~~~ zio.c: In function ‘znocache’: zio.c:305:6: warning: old-style function definition [-Wold-style-definition] 305 | void znocache(zf) | ^~~~~~~~ zio.c:307:1: error: number of arguments doesn’t match prototype 307 | { | ^ image.h:303:8: error: prototype declaration 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ niff.c:71:20: error: too many arguments to function ‘lmalloc’; expected 0, have 1 71 | title= (char *)lmalloc(title_len + 1); | ^~~~~~~ ~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ zio.c: In function ‘zclose’: zio.c:316:6: warning: old-style function definition [-Wold-style-definition] 316 | void zclose(zf) | ^~~~~~ zio.c:318:1: error: number of arguments doesn’t match prototype 318 | { | ^ niff.c:72:9: error: too many arguments to function ‘zread’; expected 0, have 3 72 | if (zread(zf, (byte *)title, title_len) != title_len) { | ^~~~~ ~~ image.h:302:8: error: prototype declaration 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ niff.c:73:7: error: too many arguments to function ‘lfree’; expected 0, have 1 73 | lfree((byte *)title); | ^~~~~ ~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ niff.c:81:5: error: too many arguments to function ‘lfree’; expected 0, have 1 81 | lfree((byte *)title); | ^~~~~ ~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ niff.c: In function ‘niffIdent’: niff.c:85:5: warning: old-style function definition [-Wold-style-definition] 85 | int niffIdent(fullname, name) | ^~~~~~~~~ niff.c:91:14: error: too many arguments to function ‘zopen’; expected 0, have 1 91 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ niff.c:96:3: error: too many arguments to function ‘zclose’; expected 0, have 1 96 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ niff.c:98:3: error: too many arguments to function ‘lfree’; expected 0, have 1 98 | lfree((byte *)title); | ^~~~~ ~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from faces.c:12: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ niff.c: In function ‘readColormap’: niff.c:102:12: warning: old-style function definition [-Wold-style-definition] 102 | static int readColormap(zf, image) | ^~~~~~~~~~~~ niff.c:109:9: error: too many arguments to function ‘zread’; expected 0, have 3 109 | if (zread(zf, (byte *)&cmap, sizeof(struct niff_cmap)) != sizeof(struct niff_cmap)) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from mac.c:21: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ niff.c: In function ‘niffLoad’: niff.c:120:8: warning: old-style function definition [-Wold-style-definition] 120 | Image *niffLoad(fullname, name, verbose) | ^~~~~~~~ niff.c:130:14: error: too many arguments to function ‘zopen’; expected 0, have 1 130 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ niff.c:134:5: error: too many arguments to function ‘zclose’; expected 0, have 1 134 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ niff.c:139:3: error: too many arguments to function ‘znocache’; expected 0, have 1 139 | znocache(zf); | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from pbm.c:14: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ niff.c:146:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 146 | image= newBitImage(width, height); | ^~~~~~~~~~~ ~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ niff.c:150:7: error: too many arguments to function ‘freeImage’; expected 0, have 1 150 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ niff.c:151:7: error: too many arguments to function ‘zclose’; expected 0, have 1 151 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ niff.c:157:12: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 157 | image= newRGBImage(width, height, depth); | ^~~~~~~~~~~ ~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ niff.c:164:7: error: too many arguments to function ‘freeImage’; expected 0, have 1 164 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ niff.c:165:7: error: too many arguments to function ‘zclose’; expected 0, have 1 165 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ niff.c:171:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 171 | image= newTrueImage(width, height); | ^~~~~~~~~~~~ ~~~~~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ niff.c:179:7: error: too many arguments to function ‘zread’; expected 0, have 3 179 | if (zread(zf, image->data, data_size) != data_size) | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ niff.c:181:3: error: too many arguments to function ‘zclose’; expected 0, have 1 181 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ niff.c: In function ‘niffDump’: niff.c:188:6: warning: old-style function definition [-Wold-style-definition] 188 | void niffDump(image, options, filename, verbose) | ^~~~~~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from xloadimage.h:10, from mcidas.c:7: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ make: *** [: new.o] Error 1 cmuwmraster.c: In function ‘babble’: cmuwmraster.c:19:6: warning: old-style function definition [-Wold-style-definition] 19 | void babble(name, headerp) | ^~~~~~ make: *** [: zio.o] Error 1 cmuwmraster.c: In function ‘cmuwmIdent’: cmuwmraster.c:30:5: warning: old-style function definition [-Wold-style-definition] 30 | int cmuwmIdent(fullname, name) | ^~~~~~~~~~ cmuwmraster.c:37:16: error: too many arguments to function ‘zopen’; expected 0, have 1 37 | if (!(zf = zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ cmuwmraster.c:43:13: error: too many arguments to function ‘zread’; expected 0, have 3 43 | switch (zread(zf, (byte *)&header, sizeof(struct cmuwm_header))) | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ cmuwmraster.c:65:5: error: too many arguments to function ‘zclose’; expected 0, have 1 65 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ cmuwmraster.c: In function ‘cmuwmLoad’: cmuwmraster.c:70:8: warning: old-style function definition [-Wold-style-definition] 70 | Image* cmuwmLoad(fullname, name, verbose) | ^~~~~~~~~ cmuwmraster.c:80:15: error: too many arguments to function ‘zopen’; expected 0, have 1 80 | if (!(zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ cmuwmraster.c:86:13: error: too many arguments to function ‘zread’; expected 0, have 3 86 | switch (zread(zf, (byte *)&header, sizeof(struct cmuwm_header))) | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ cmuwmraster.c:90:11: error: too many arguments to function ‘zclose’; expected 0, have 1 90 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ cmuwmraster.c:91:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 91 | exit(1); | ^~~~ cmuwmraster.c:16:1: note: include ‘’ or provide a declaration of ‘exit’ 15 | #include "cmuwmraster.h" +++ |+#include 16 | cmuwmraster.c:91:11: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 91 | exit(1); | ^~~~ cmuwmraster.c:91:11: note: include ‘’ or provide a declaration of ‘exit’ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from imagetypes.c:12: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ niff.c:235:5: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration] 235 | unlink(filename); | ^~~~~~ cmuwmraster.c:96:17: error: too many arguments to function ‘zclose’; expected 0, have 1 96 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ cmuwmraster.c:103:11: error: too many arguments to function ‘zclose’; expected 0, have 1 103 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ gif.c: In function ‘gifin_open_file’: In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from image.h:20, from pdsuncomp.c:48: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ gif.c:108:12: warning: old-style function definition [-Wold-style-definition] 108 | static int gifin_open_file(s) | ^~~~~~~~~~~~~~~ gif.c:120:7: error: too many arguments to function ‘zread’; expected 0, have 3 120 | if (zread(ins, buf, GIF_SIG_LEN) != GIF_SIG_LEN) | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ gif.c:129:7: error: too many arguments to function ‘zread’; expected 0, have 3 129 | if (zread(ins, buf, GIF_SD_SIZE) != GIF_SD_SIZE) | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ cmuwmraster.c:111:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 111 | (int) header.depth); | ^ gif.c:148:9: error: too many arguments to function ‘gifin_load_cmap’; expected 0, have 2 148 | if (gifin_load_cmap(gifin_g_cmap, gifin_g_ncolors) != GIFIN_SUCCESS) | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~ In file included from gif.c:17: gif.h:49:12: note: declared here 49 | static int gifin_load_cmap(); | ^~~~~~~~~~~~~~~ gif.c: In function ‘gifin_open_image’: gif.c:186:17: error: too many arguments to function ‘zgetc’; expected 0, have 1 186 | separator = zgetc(ins); | ^~~~~ ~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ cmuwmraster.c:115:13: error: too many arguments to function ‘newBitImage’; expected 0, have 2 115 | image = newBitImage(width = memToVal(header.width, sizeof(long)), | ^~~~~~~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ gif.c:204:7: error: too many arguments to function ‘zread’; expected 0, have 3 204 | if (zread(ins, buf, GIF_ID_SIZE) != GIF_ID_SIZE) | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ cmuwmraster.c:123:15: error: too many arguments to function ‘zread’; expected 0, have 3 123 | r = zread(zf, lineptr, linelen); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ cmuwmraster.c:128:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 128 | exit(1); | ^~~~ cmuwmraster.c:128:17: note: include ‘’ or provide a declaration of ‘exit’ cmuwmraster.c:134:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 134 | exit(1); | ^~~~ gif.c:221:9: error: too many arguments to function ‘gifin_load_cmap’; expected 0, have 2 221 | if (gifin_load_cmap(gifin_l_cmap, gifin_l_ncolors) != GIFIN_SUCCESS) | ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~ cmuwmraster.c:134:17: note: include ‘’ or provide a declaration of ‘exit’ gif.h:49:12: note: declared here 49 | static int gifin_load_cmap(); | ^~~~~~~~~~~~~~~ gif.c:230:15: error: too many arguments to function ‘zgetc’; expected 0, have 1 230 | root_size = zgetc(ins); | ^~~~~ ~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ cmuwmraster.c:145:5: error: too many arguments to function ‘zclose’; expected 0, have 1 145 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ cmuwmraster.c:147:20: error: too many arguments to function ‘dupString’; expected 0, have 1 147 | image->title = dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ gif.c: In function ‘gifin_get_pixel’: gif.c:258:12: warning: old-style function definition [-Wold-style-definition] 258 | static int gifin_get_pixel(pel) | ^~~~~~~~~~~~~~~ gif.c:306:7: error: too many arguments to function ‘gifin_push_string’; expected 0, have 1 306 | gifin_push_string(code); | ^~~~~~~~~~~~~~~~~ ~~~~ gif.h:52:12: note: declared here 52 | static int gifin_push_string(); | ^~~~~~~~~~~~~~~~~ gif.c:313:17: error: too many arguments to function ‘gifin_push_string’; expected 0, have 1 313 | first = gifin_push_string(code); | ^~~~~~~~~~~~~~~~~ ~~~~ gif.h:52:12: note: declared here 52 | static int gifin_push_string(); | ^~~~~~~~~~~~~~~~~ gif.c:29:5: error: too many arguments to function ‘gifin_fatal’; expected 0, have 1 29 | gifin_fatal("pixel stack overflow in PUSH_PIXEL()"); \ | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gif.c:318:9: note: in expansion of macro ‘PUSH_PIXEL’ 318 | PUSH_PIXEL(NULL_CODE); | ^~~~~~~~~~ gif.h:54:13: note: declared here 54 | static void gifin_fatal(); | ^~~~~~~~~~~ gif.c:319:17: error: too many arguments to function ‘gifin_push_string’; expected 0, have 1 319 | first = gifin_push_string(prev_code); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~ gif.h:52:12: note: declared here 52 | static int gifin_push_string(); | ^~~~~~~~~~~~~~~~~ gif.c:323:7: error: too many arguments to function ‘gifin_add_string’; expected 0, have 2 323 | gifin_add_string(prev_code, first); | ^~~~~~~~~~~~~~~~ ~~~~~~~~~ gif.h:53:13: note: declared here 53 | static void gifin_add_string(); | ^~~~~~~~~~~~~~~~ gif.c: In function ‘gifin_load_cmap’: gif.c:384:12: warning: old-style function definition [-Wold-style-definition] 384 | static int gifin_load_cmap(cmap, ncolors) | ^~~~~~~~~~~~~~~ gif.c:392:9: error: too many arguments to function ‘zread’; expected 0, have 3 392 | if (zread(ins, buf, 3) != 3) | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ faces.c: In function ‘nextInt’: gif.c: In function ‘gifin_skip_extension’: gif.c:412:3: error: too many arguments to function ‘zgetc’; expected 0, have 1 412 | zgetc(ins); | ^~~~~ ~~~ faces.c:58:12: warning: old-style function definition [-Wold-style-definition] 58 | static int nextInt(zf, len) | ^~~~~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ gif.c: In function ‘gifin_read_data_block’: gif.c:433:13: error: too many arguments to function ‘zgetc’; expected 0, have 1 433 | buf_cnt = zgetc(ins); | ^~~~~ ~~~ faces.c:67:8: error: too many arguments to function ‘zgetc’; expected 0, have 1 67 | c= zgetc(zf); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ gif.c:436:7: error: too many arguments to function ‘zread’; expected 0, have 3 436 | if (zread(ins, buf, buf_cnt) != buf_cnt) | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ gif.c: In function ‘gifin_push_string’: gif.c:450:12: warning: old-style function definition [-Wold-style-definition] 450 | static int gifin_push_string(code) | ^~~~~~~~~~~~~~~~~ gif.c:29:5: error: too many arguments to function ‘gifin_fatal’; expected 0, have 1 29 | gifin_fatal("pixel stack overflow in PUSH_PIXEL()"); \ | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gif.c:457:5: note: in expansion of macro ‘PUSH_PIXEL’ 457 | PUSH_PIXEL(extnsn[code]); | ^~~~~~~~~~ faces.c: In function ‘facesLoad’: gif.h:54:13: note: declared here 54 | static void gifin_fatal(); | ^~~~~~~~~~~ faces.c:86:8: warning: old-style function definition [-Wold-style-definition] 86 | Image *facesLoad(fullname, name, verbose) | ^~~~~~~~~ faces.c:86:8: error: type of ‘verbose’ defaults to ‘int’ [-Wimplicit-int] gif.c:29:5: error: too many arguments to function ‘gifin_fatal’; expected 0, have 1 29 | gifin_fatal("pixel stack overflow in PUSH_PIXEL()"); \ | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gif.c:461:3: note: in expansion of macro ‘PUSH_PIXEL’ 461 | PUSH_PIXEL(extnsn[code]); | ^~~~~~~~~~ gif.h:54:13: note: declared here 54 | static void gifin_fatal(); | ^~~~~~~~~~~ faces.c:102:14: error: too many arguments to function ‘zopen’; expected 0, have 1 102 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ gif.c: In function ‘gifin_add_string’: gif.c:471:13: warning: old-style function definition [-Wold-style-definition] 471 | static void gifin_add_string(p, e) | ^~~~~~~~~~~~~~~~ faces.c:107:10: error: too many arguments to function ‘zgets’; expected 0, have 3 107 | while (zgets((byte *)buf, BUFSIZ - 1, zf)) { | ^~~~~ ~~~~~~~~~~~ image.h:301:8: note: declared here 301 | char *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf)); | ^~~~~ gif.c: In function ‘gifin_fatal’: gif.c:491:13: warning: old-style function definition [-Wold-style-definition] 491 | static void gifin_fatal(msg) | ^~~~~~~~~~~ gif.c:495:3: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 495 | exit(0); | ^~~~ gif.c:19:1: note: include ‘’ or provide a declaration of ‘exit’ 18 | #include "kljcpyrght.h" +++ |+#include 19 | gif.c:495:3: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 495 | exit(0); | ^~~~ gif.c:495:3: note: include ‘’ or provide a declaration of ‘exit’ gif.c: In function ‘tellAboutImage’: gif.c:505:13: warning: old-style function definition [-Wold-style-definition] 505 | static void tellAboutImage(name) | ^~~~~~~~~~~~~~ faces.c:123:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 123 | exit(1); | ^~~~ faces.c:13:1: note: include ‘’ or provide a declaration of ‘exit’ 12 | #include "image.h" +++ |+#include 13 | faces.c:123:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 123 | exit(1); | ^~~~ gif.c: In function ‘gifLoad’: faces.c:123:9: note: include ‘’ or provide a declaration of ‘exit’ gif.c:514:8: warning: old-style function definition [-Wold-style-definition] 514 | Image *gifLoad(fullname, name, verbose) | ^~~~~~~ gif.c:522:14: error: too many arguments to function ‘zopen’; expected 0, have 1 522 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ faces.c:129:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 129 | exit(1); | ^~~~ faces.c:129:9: note: include ‘’ or provide a declaration of ‘exit’ gif.c:524:8: error: too many arguments to function ‘gifin_open_file’; expected 0, have 1 524 | if ((gifin_open_file(zf) != GIFIN_SUCCESS) || /* read GIF header */ | ^~~~~~~~~~~~~~~ ~~ faces.c:134:5: error: too many arguments to function ‘zclose’; expected 0, have 1 134 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ gif.c:108:12: note: declared here 108 | static int gifin_open_file(s) | ^~~~~~~~~~~~~~~ faces.c:137:3: error: too many arguments to function ‘znocache’; expected 0, have 1 137 | znocache(zf); | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ faces.c:143:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 143 | image= newRGBImage(w, h, d); | ^~~~~~~~~~~ ~ gif.c:527:5: error: too many arguments to function ‘zclose’; expected 0, have 1 527 | zclose(zf); | ^~~~~~ ~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ gif.c:532:3: error: too many arguments to function ‘znocache’; expected 0, have 1 532 | znocache(zf); | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ gif.c:533:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 533 | image= newRGBImage(gifin_img_width, gifin_img_height, (gifin_l_cmap_flag ? | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ pbm.c: In function ‘pbmReadChar’: faces.c:147:17: error: too many arguments to function ‘dupString’; expected 0, have 1 147 | image->title= dupString(fname); | ^~~~~~~~~ ~~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ pbm.c:59:12: warning: old-style function definition [-Wold-style-definition] 59 | static int pbmReadChar(zf) | ^~~~~~~~~~~ pbm.c:63:11: error: too many arguments to function ‘zgetc’; expected 0, have 1 63 | if ((c= zgetc(zf)) == EOF) { | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ faces.c:168:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 168 | exit(1); | ^~~~ pbm.c:64:5: error: too many arguments to function ‘zclose’; expected 0, have 1 64 | zclose(zf); | ^~~~~~ ~~ faces.c:168:9: note: include ‘’ or provide a declaration of ‘exit’ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ faces.c:173:3: error: too many arguments to function ‘zclose’; expected 0, have 1 173 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:69:15: error: too many arguments to function ‘zgetc’; expected 0, have 1 69 | if ((c= zgetc(zf)) == EOF) | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ gif.c:574:15: error: too many arguments to function ‘gifin_get_pixel’; expected 0, have 1 574 | if (gifin_get_pixel(&pixel) != GIFIN_SUCCESS) { | ^~~~~~~~~~~~~~~ ~~~~~~ pbm.c: In function ‘pbmReadInt’: faces.c: In function ‘facesIdent’: pbm.c:75:12: warning: old-style function definition [-Wold-style-definition] 75 | static int pbmReadInt(zf) | ^~~~~~~~~~ faces.c:177:5: warning: old-style function definition [-Wold-style-definition] 177 | int facesIdent(fullname, name) | ^~~~~~~~~~ gif.c:258:12: note: declared here 258 | static int gifin_get_pixel(pel) | ^~~~~~~~~~~~~~~ faces.c:182:5: error: too many arguments to function ‘freeImage’; expected 0, have 1 182 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ pbm.c: In function ‘isPBM’: pbm.c:98:12: warning: old-style function definition [-Wold-style-definition] 98 | static int isPBM(zf, name, width, height, maxval, verbose) | ^~~~~ pbm.c:108:7: error: too many arguments to function ‘zread’; expected 0, have 3 108 | if (zread(zf, buf, 2) != 2) | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ gif.c:594:13: error: too many arguments to function ‘gifin_get_pixel’; expected 0, have 1 594 | if (gifin_get_pixel(&pixel) != GIFIN_SUCCESS) { | ^~~~~~~~~~~~~~~ ~~~~~~ gif.c:258:12: note: declared here 258 | static int gifin_get_pixel(pel) | ^~~~~~~~~~~~~~~ gif.c:603:3: error: too many arguments to function ‘zclose’; expected 0, have 1 603 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ gif.c:604:17: error: too many arguments to function ‘dupString’; expected 0, have 1 604 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ gif.c: In function ‘gifIdent’: gif.c:608:5: warning: old-style function definition [-Wold-style-definition] 608 | int gifIdent(fullname, name) | ^~~~~~~~ gif.c:613:14: error: too many arguments to function ‘zopen’; expected 0, have 1 613 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ gif.c:615:8: error: too many arguments to function ‘gifin_open_file’; expected 0, have 1 615 | if ((gifin_open_file(zf) == GIFIN_SUCCESS) && | ^~~~~~~~~~~~~~~ ~~ pbm.c:127:9: error: too many arguments to function ‘zread’; expected 0, have 3 127 | if (zread(zf, buf, 4) != 4) | ^~~~~ ~~ gif.c:108:12: note: declared here 108 | static int gifin_open_file(s) | ^~~~~~~~~~~~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ gif.c:623:3: error: too many arguments to function ‘zclose’; expected 0, have 1 623 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ make: *** [: cmuwmraster.o] Error 1 pbm.c: In function ‘pbmIdent’: pbm.c:175:5: warning: old-style function definition [-Wold-style-definition] 175 | int pbmIdent(fullname, name) | ^~~~~~~~ pbm.c:180:14: error: too many arguments to function ‘zopen’; expected 0, have 1 180 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ pbm.c:184:3: error: too many arguments to function ‘zclose’; expected 0, have 1 184 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c: In function ‘pbmLoad’: pbm.c:188:8: warning: old-style function definition [-Wold-style-definition] 188 | Image *pbmLoad(fullname, name, verbose) | ^~~~~~~ make: *** [: niff.o] Error 1 pbm.c:202:14: error: too many arguments to function ‘zopen’; expected 0, have 1 202 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ pbm.c:207:5: error: too many arguments to function ‘zclose’; expected 0, have 1 207 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:210:3: error: too many arguments to function ‘znocache’; expected 0, have 1 210 | znocache(zf); | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ pbm.c:213:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 213 | image= newBitImage(width, height); | ^~~~~~~~~~~ ~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ make: *** [: faces.o] Error 1 pbm.c:223:13: error: too many arguments to function ‘zclose’; expected 0, have 1 223 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:228:13: error: too many arguments to function ‘zclose’; expected 0, have 1 228 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:244:11: error: too many arguments to function ‘zclose’; expected 0, have 1 244 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:253:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 253 | image= newBitImage(width, height); | ^~~~~~~~~~~ ~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ pbm.c:262:14: error: too many arguments to function ‘zgetc’; expected 0, have 1 262 | src= zgetc(zf); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pbm.c:265:11: error: too many arguments to function ‘zclose’; expected 0, have 1 265 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:278:17: error: too many arguments to function ‘zgetc’; expected 0, have 1 278 | src = zgetc(zf); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pbm.c:281:13: error: too many arguments to function ‘zclose’; expected 0, have 1 281 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:291:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 291 | image= newBitImage(width, height); | ^~~~~~~~~~~ ~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ pbm.c:296:11: error: too many arguments to function ‘zgetc’; expected 0, have 1 296 | src = zgetc(zf); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pbm.c:299:7: error: too many arguments to function ‘zclose’; expected 0, have 1 299 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:314:17: error: too many arguments to function ‘zgetc’; expected 0, have 1 314 | src = zgetc(zf); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pbm.c:317:13: error: too many arguments to function ‘zclose’; expected 0, have 1 317 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:326:12: error: too many arguments to function ‘colorsToDepth’; expected 0, have 1 326 | depth= colorsToDepth(maxval); | ^~~~~~~~~~~~~ ~~~~~~ image.h:256:15: note: declared here 256 | unsigned long colorsToDepth(); | ^~~~~~~~~~~~~ pbm.c:328:15: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 328 | image = newTrueImage(width, height); | ^~~~~~~~~~~~ ~~~~~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ pbm.c:330:15: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 330 | image = newRGBImage(width, height, depth); | ^~~~~~~~~~~ ~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ imagetypes.c: In function ‘loadImage’: imagetypes.c:24:8: warning: old-style function definition [-Wold-style-definition] 24 | Image *loadImage(globalopts, options, name, verbose) | ^~~~~~~~~ imagetypes.c:29:1: error: number of arguments doesn’t match prototype 29 | { char fullname[BUFSIZ]; | ^ pbm.c:347:11: error: too many arguments to function ‘zread’; expected 0, have 3 347 | if (zread(zf, image->data, size) != size) { | ^~~~~ ~~ In file included from imagetypes.c:14: options.h:101:8: error: prototype declaration 101 | Image *loadImage _ArgProto((OptionSet *globalopts, OptionSet *options, | ^~~~~~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pbm.c:349:9: error: too many arguments to function ‘zclose’; expected 0, have 1 349 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pbm.c:350:9: error: too many arguments to function ‘freeImage’; expected 0, have 1 350 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ imagetypes.c:44:15: error: too many arguments to function ‘getOption’; expected 0, have 2 44 | if (! (opt= getOption(globalopts, TYPE))) | ^~~~~~~~~ ~~~~~~~~~~ options.h:95:9: note: declared here 95 | Option *getOption(); /* options.c */ | ^~~~~~~~~ imagetypes.c:45:10: error: too many arguments to function ‘getOption’; expected 0, have 2 45 | opt= getOption(options, TYPE); | ^~~~~~~~~ ~~~~~~~ options.h:95:9: note: declared here 95 | Option *getOption(); /* options.c */ | ^~~~~~~~~ imagetypes.c:49:21: error: too many arguments to function ‘ImageTypes[a].loader’; expected 0, have 3 49 | if ((image= ImageTypes[a].loader(fullname, name, verbose))) { | ^~~~~~~~~~ ~~~~~~~~ pbm.c:358:20: error: too many arguments to function ‘zgetc’; expected 0, have 1 358 | if ((src = zgetc(zf)) == EOF) { | ^~~~~ ~~ In file included from imagetypes.c:13: imagetypes.h:89:12: note: declared here 89 | Image *(*loader)(); /* load image if this kind of image */ | ^~~~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ imagetypes.c:50:11: error: too many arguments to function ‘zreset’; expected 0, have 1 50 | zreset(NULL); | ^~~~~~ ~~~~ pbm.c:360:11: error: too many arguments to function ‘zclose’; expected 0, have 1 360 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ pbm.c:361:11: error: too many arguments to function ‘freeImage’; expected 0, have 1 361 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ make: *** [: gif.o] Error 1 imagetypes.c:59:27: error: too many arguments to function ‘flatten’; expected 0, have 1 59 | new_image = flatten(image); | ^~~~~~~ ~~~~~ pbm.c:373:12: error: too many arguments to function ‘colorsToDepth’; expected 0, have 1 373 | depth= colorsToDepth(maxval); | ^~~~~~~~~~~~~ ~~~~~~ image.h:256:15: note: declared here 256 | unsigned long colorsToDepth(); | ^~~~~~~~~~~~~ image.h:275:8: note: declared here 275 | Image *flatten _ArgProto((Image *image)); | ^~~~~~~ pbm.c:375:14: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 375 | image= newTrueImage(width, height); | ^~~~~~~~~~~~ ~~~~~ imagetypes.c:61:19: error: too many arguments to function ‘freeImage’; expected 0, have 1 61 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ pbm.c:377:14: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 377 | image= newRGBImage(width, height, depth); | ^~~~~~~~~~~ ~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ imagetypes.c:69:9: error: too many arguments to function ‘zreset’; expected 0, have 1 69 | zreset(NULL); | ^~~~~~ ~~~~ image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ pbm.c:392:11: error: too many arguments to function ‘zclose’; expected 0, have 1 392 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ imagetypes.c:82:17: error: too many arguments to function ‘ImageTypes[a].loader’; expected 0, have 3 82 | if ((image= ImageTypes[a].loader(fullname, name, verbose))) { | ^~~~~~~~~~ ~~~~~~~~ imagetypes.h:89:12: note: declared here 89 | Image *(*loader)(); /* load image if this kind of image */ | ^~~~~~ imagetypes.c:83:7: error: too many arguments to function ‘zreset’; expected 0, have 1 83 | zreset(NULL); | ^~~~~~ ~~~~ pbm.c:414:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 414 | image= newTrueImage(width, height); | ^~~~~~~~~~~~ ~~~~~ image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ pbm.c:416:9: error: too many arguments to function ‘zread’; expected 0, have 3 416 | if (zread(zf, image->data, size) != size) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ imagetypes.c:89:23: error: too many arguments to function ‘flatten’; expected 0, have 1 89 | new_image = flatten(image); | ^~~~~~~ ~~~~~ image.h:275:8: note: declared here 275 | Image *flatten _ArgProto((Image *image)); | ^~~~~~~ pbm.c:418:7: error: too many arguments to function ‘zclose’; expected 0, have 1 418 | zclose(zf); | ^~~~~~ ~~ imagetypes.c:91:15: error: too many arguments to function ‘freeImage’; expected 0, have 1 91 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ pbm.c:419:7: error: too many arguments to function ‘freeImage’; expected 0, have 1 419 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ pdsuncomp.c: In function ‘huff_tree’: imagetypes.c:99:3: error: too many arguments to function ‘zreset’; expected 0, have 1 99 | zreset(NULL); | ^~~~~~ ~~~~ pdsuncomp.c:66:7: warning: old-style function definition [-Wold-style-definition] 66 | NODE *huff_tree(hist) | ^~~~~~~~~ image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ pbm.c:429:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 429 | image= newTrueImage(width, height); | ^~~~~~~~~~~~ ~~~~~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ imagetypes.c: In function ‘identifyImage’: imagetypes.c:106:6: warning: old-style function definition [-Wold-style-definition] 106 | void identifyImage(name) | ^~~~~~~~~~~~~ imagetypes.c:108:1: error: number of arguments doesn’t match prototype 108 | { char fullname[BUFSIZ]; | ^ pbm.c:438:11: error: too many arguments to function ‘zclose’; expected 0, have 1 438 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ options.h:103:8: error: prototype declaration 103 | void identifyImage _ArgProto((char *name)); | ^~~~~~~~~~~~~ pdsuncomp.c:100:25: error: too many arguments to function ‘lmalloc’; expected 0, have 1 100 | node_list = (NODE **) lmalloc(sizeof(temp)*512); | ^~~~~~~ ~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ pbm.c:447:17: error: too many arguments to function ‘dupString’; expected 0, have 1 447 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ pbm.c:448:3: error: too many arguments to function ‘zclose’; expected 0, have 1 448 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ imagetypes.c:119:9: error: too many arguments to function ‘ImageTypes[a].identifier’; expected 0, have 2 119 | if (ImageTypes[a].identifier(fullname, name)) { | ^~~~~~~~~~ ~~~~~~~~ imagetypes.h:88:12: note: declared here 88 | int (*identifier)(); /* print out image info if this kind of image */ | ^~~~~~~~~~ pdsuncomp.c:103:5: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 103 | exit(1); | ^~~~ imagetypes.c:120:7: error: too many arguments to function ‘zreset’; expected 0, have 1 120 | zreset(NULL); | ^~~~~~ ~~~~ pdsuncomp.c:50:1: note: include ‘’ or provide a declaration of ‘exit’ 49 | #include "pds.h" +++ |+#include 50 | image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ pdsuncomp.c:103:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 103 | exit(1); | ^~~~ pdsuncomp.c:103:5: note: include ‘’ or provide a declaration of ‘exit’ imagetypes.c:124:3: error: too many arguments to function ‘zreset’; expected 0, have 1 124 | zreset(NULL); | ^~~~~~ ~~~~ image.h:304:8: note: declared here 304 | void zreset _ArgProto((char *filename)); | ^~~~~~ pbm.c: In function ‘pbmDump’: pbm.c:452:6: warning: old-style function definition [-Wold-style-definition] 452 | void pbmDump(image, options, file, verbose) | ^~~~~~~ imagetypes.c: In function ‘dumpImage’: imagetypes.c:130:6: warning: old-style function definition [-Wold-style-definition] 130 | void dumpImage(image, type, filename, verbose) | ^~~~~~~~~ pbm.c:469:10: error: too many arguments to function ‘getNextTypeOption’; expected 0, have 3 469 | while (getNextTypeOption(&options, &name, &value) > 0) { | ^~~~~~~~~~~~~~~~~ ~~~~~~~~ In file included from pbm.c:15: options.h:98:5: note: declared here 98 | int getNextTypeOption(); | ^~~~~~~~~~~~~~~~~ pdsuncomp.c:122:12: error: too many arguments to function ‘new_node’; expected 0, have 1 122 | temp = new_node(num_nodes); | ^~~~~~~~ ~~~~~~~~~ pdsuncomp.c:63:14: note: declared here 63 | static NODE *new_node(); | ^~~~~~~~ pdsuncomp.c:133:3: error: too many arguments to function ‘sort_freq’; expected 0, have 3 133 | sort_freq(freq_list,node_list,num_freq); | ^~~~~~~~~ ~~~~~~~~~ pdsuncomp.c:90:8: note: declared here 90 | void sort_freq(); | ^~~~~~~~~ imagetypes.c:156:9: error: too many arguments to function ‘ImageTypes[a].dumper’; expected 0, have 4 156 | ImageTypes[a].dumper(image, optptr, filename, verbose); | ^~~~~~~~~~ ~~~~~ imagetypes.h:90:12: note: declared here 90 | void (*dumper)(); /* dump image of this kind */ | ^~~~~~ pdsuncomp.c:152:12: error: too many arguments to function ‘new_node’; expected 0, have 1 152 | temp = new_node(znull); | ^~~~~~~~ ~~~~~ pdsuncomp.c:63:14: note: declared here 63 | static NODE *new_node(); | ^~~~~~~~ pdsuncomp.c:158:5: error: too many arguments to function ‘sort_freq’; expected 0, have 3 158 | sort_freq(fp,np,num_freq); | ^~~~~~~~~ ~~ pdsuncomp.c:90:8: note: declared here 90 | void sort_freq(); | ^~~~~~~~~ pdsuncomp.c: In function ‘new_node’: pdsuncomp.c:164:14: warning: old-style function definition [-Wold-style-definition] 164 | static NODE *new_node(value) | ^~~~~~~~ pdsuncomp.c:177:19: error: too many arguments to function ‘lmalloc’; expected 0, have 1 177 | temp = (NODE *) lmalloc(sizeof(NODE)); | ^~~~~~~ ~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ pdsuncomp.c: In function ‘sort_freq’: pdsuncomp.c:90:8: warning: old-style function definition [-Wold-style-definition] 90 | void sort_freq(); | ^~~~~~~~~ pdsuncomp.c:192:1: error: number of arguments doesn’t match prototype 192 | { | ^ pdsuncomp.c:90:8: error: prototype declaration 90 | void sort_freq(); | ^~~~~~~~~ pdsuncomp.c: In function ‘free_node’: pdsuncomp.c:277:17: warning: old-style function definition [-Wold-style-definition] 277 | static long int free_node(pnode,total_free) | ^~~~~~~~~ pdsuncomp.c:285:18: error: too many arguments to function ‘free_node’; expected 0, have 2 285 | total_free = free_node(pnode->right,total_free); | ^~~~~~~~~ ~~~~~~~~~~~~ pdsuncomp.c:277:17: note: declared here 277 | static long int free_node(pnode,total_free) | ^~~~~~~~~ pdsuncomp.c:287:18: error: too many arguments to function ‘free_node’; expected 0, have 2 287 | total_free = free_node(pnode->left,total_free); | ^~~~~~~~~ ~~~~~~~~~~~ pdsuncomp.c:277:17: note: declared here 277 | static long int free_node(pnode,total_free) | ^~~~~~~~~ pdsuncomp.c:289:3: error: too many arguments to function ‘lfree’; expected 0, have 1 289 | lfree((byte *) pnode); | ^~~~~ ~~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ pdsuncomp.c: In function ‘decompress’: pdsuncomp.c:295:12: warning: old-style function definition [-Wold-style-definition] 295 | static int decompress(ibuf,obuf,nin,nout) | ^~~~~~~~~~ pdsuncomp.c: In function ‘read_var’: pdsuncomp.c:351:12: warning: old-style function definition [-Wold-style-definition] 351 | static int read_var(zf, ibuf) | ^~~~~~~~ pdsuncomp.c:359:12: error: too many arguments to function ‘zread’; expected 0, have 3 359 | result = zread(zf,buf,2); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pdsuncomp.c:361:10: error: too many arguments to function ‘zread’; expected 0, have 3 361 | nlen = zread(zf,(byte *)ibuf,length+(length%2)); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pdsuncomp.c: In function ‘skip_record’: pdsuncomp.c:365:6: warning: old-style function definition [-Wold-style-definition] 365 | void skip_record(zf) | ^~~~~~~~~~~ pdsuncomp.c:372:3: error: too many arguments to function ‘zread’; expected 0, have 3 372 | zread(zf, buf, 2); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ fbm.c: In function ‘fbmin_open_image’: fbm.c:107:12: warning: old-style function definition [-Wold-style-definition] 107 | static int fbmin_open_image(s) | ^~~~~~~~~~~~~~~~ pdsuncomp.c:374:18: error: too many arguments to function ‘lmalloc’; expected 0, have 1 374 | dummy= (char *)lmalloc(value); | ^~~~~~~ ~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ pdsuncomp.c:375:3: error: too many arguments to function ‘zread’; expected 0, have 3 375 | zread(zf, (byte *)dummy, value); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ fbm.c:122:7: error: too many arguments to function ‘zread’; expected 0, have 3 122 | if (zread(ins, (byte *)hp, sizeof(phdr)) != sizeof(phdr)) | ^~~~~ ~~~ pdsuncomp.c:376:3: error: too many arguments to function ‘lfree’; expected 0, have 1 376 | lfree((byte *)dummy); | ^~~~~ ~~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ pdsuncomp.c: In function ‘pdsInit’: pdsuncomp.c:383:6: warning: old-style function definition [-Wold-style-definition] 383 | void pdsInit(zf, type) | ^~~~~~~ In file included from fbm.c:20: image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pdsuncomp.c: In function ‘pdsRead’: pdsuncomp.c:412:5: warning: old-style function definition [-Wold-style-definition] 412 | int pdsRead(zf, buf, size) | ^~~~~~~ pdsuncomp.c:449:12: error: too many arguments to function ‘zread’; expected 0, have 3 449 | return(zread(zf, (byte *)buf, size)); | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ fbm.c:129:24: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration] 129 | fbmin_img_width = atoi(phdr.cols); | ^~~~ In file included from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:28, from pcx.c:29: /usr/include/features.h:205:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp] 205 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" | ^~~~~~~ fbm.c:136:24: error: implicit declaration of function ‘atof’ [-Wimplicit-function-declaration] 136 | fbmin_img_aspect = atof(phdr.aspect); | ^~~~ fbm.c: In function ‘tellAboutImage’: fbm.c:187:13: warning: old-style function definition [-Wold-style-definition] 187 | static void tellAboutImage(name) | ^~~~~~~~~~~~~~ make: *** [: imagetypes.o] Error 1 fbm.c: In function ‘fbmLoad’: fbm.c:198:8: warning: old-style function definition [-Wold-style-definition] 198 | Image *fbmLoad(fullname, name, verbose) | ^~~~~~~ fbm.c:209:14: error: too many arguments to function ‘zopen’; expected 0, have 1 209 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ fbm.c:213:5: error: too many arguments to function ‘zclose’; expected 0, have 1 213 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ fbm.c:218:3: error: too many arguments to function ‘znocache’; expected 0, have 1 218 | znocache(zf); | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ fbm.c:220:11: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 220 | image = newRGBImage(fbmin_img_width, fbmin_img_height, fbmin_img_bits); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ fbm.c:225:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1 225 | cm = (unsigned char *) lmalloc(fbmin_img_clrlen); | ^~~~~~~ ~~~~~~~~~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ fbm.c:227:9: error: too many arguments to function ‘zread’; expected 0, have 3 227 | if (zread(ins, cm, fbmin_img_clrlen) != fbmin_img_clrlen) { | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ fbm.c:246:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1 246 | cm = (unsigned char *) lmalloc(map_size); | ^~~~~~~ ~~~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ fbm.c:270:11: error: too many arguments to function ‘zread’; expected 0, have 3 270 | if (zread(ins, pixptr, rowlen) != rowlen) { | ^~~~~ ~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ fbm.c:272:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 272 | exit(1); | ^~~~ fbm.c:22:1: note: include ‘’ or provide a declaration of ‘exit’ 21 | # include "fbm.h" +++ |+#include 22 | fbm.c:272:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 272 | exit(1); | ^~~~ fbm.c:272:9: note: include ‘’ or provide a declaration of ‘exit’ fbm.c:278:5: error: too many arguments to function ‘lfree’; expected 0, have 1 278 | lfree(cm); | ^~~~~ ~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ fbm.c:281:3: error: too many arguments to function ‘zclose’; expected 0, have 1 281 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ fbm.c:284:19: error: too many arguments to function ‘dupString’; expected 0, have 1 284 | image->title= dupString(fbmin_img_title); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ fbm.c:286:19: error: too many arguments to function ‘dupString’; expected 0, have 1 286 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ fbm.c: In function ‘fbmIdent’: fbm.c:291:5: warning: old-style function definition [-Wold-style-definition] 291 | int fbmIdent(fullname, name) | ^~~~~~~~ fbm.c:297:14: error: too many arguments to function ‘zopen’; expected 0, have 1 297 | if (! (zf= zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ fbm.c:305:3: error: too many arguments to function ‘zclose’; expected 0, have 1 305 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ make: *** [: pdsuncomp.o] Error 1 make: *** [: pbm.o] Error 1 mcidas.c: In function ‘convert_date’: mcidas.c:33:14: warning: old-style function definition [-Wold-style-definition] 33 | static char *convert_date(time, date) | ^~~~~~~~~~~~ mcidas.c: In function ‘vhtonl’: mcidas.c:76:1: warning: old-style function definition [-Wold-style-definition] 76 | vhtonl(lend) | ^~~~~~ mcidas.c: In function ‘babble’: mcidas.c:93:13: warning: old-style function definition [-Wold-style-definition] 93 | static void babble(name, dir) | ^~~~~~ mcidas.c:100:10: error: too many arguments to function ‘mc_sensor’; expected 0, have 1 100 | mc_sensor(dir->satid), | ^~~~~~~~~ ~~~~~~~~~~ mcidas.c:10:7: note: declared here 10 | char *mc_sensor(); | ^~~~~~~~~ mcidas.c: In function ‘swap_bytes’: mcidas.c:108:13: warning: old-style function definition [-Wold-style-definition] 108 | static void swap_bytes(dir) | ^~~~~~~~~~ mcidas.c: In function ‘mcidasIdent’: mcidas.c:122:5: warning: old-style function definition [-Wold-style-definition] 122 | int mcidasIdent(fullname, name) | ^~~~~~~~~~~ mcidas.c:128:14: error: too many arguments to function ‘zopen’; expected 0, have 1 128 | if (! (zf= zopen(fullname))) { | ^~~~~ ~~~~~~~~ In file included from xloadimage.h:15: image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ mcidas.c:132:11: error: too many arguments to function ‘zread’; expected 0, have 3 132 | switch (zread(zf, (byte *)&dir, sizeof(struct area_dir))) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ mcidas.c:153:3: error: too many arguments to function ‘zclose’; expected 0, have 1 153 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mcidas.c: In function ‘mcidasLoad’: mcidas.c:158:8: warning: old-style function definition [-Wold-style-definition] 158 | Image *mcidasLoad(fullname, name, verbose) | ^~~~~~~~~~ mcidas.c:167:14: error: too many arguments to function ‘zopen’; expected 0, have 1 167 | if (! (zf= zopen(fullname))) { | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ mcidas.c:171:11: error: too many arguments to function ‘zread’; expected 0, have 3 171 | switch (zread(zf, (byte *)&dir, sizeof(struct area_dir))) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ mcidas.c:174:5: error: too many arguments to function ‘zclose’; expected 0, have 1 174 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mcidas.c:175:5: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 175 | exit(1); | ^~~~ mcidas.c:9:1: note: include ‘’ or provide a declaration of ‘exit’ 8 | #include "mcidas.h" +++ |+#include 9 | mcidas.c:175:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 175 | exit(1); | ^~~~ make: *** [: fbm.o] Error 1 mcidas.c:175:5: note: include ‘’ or provide a declaration of ‘exit’ mac.c: In function ‘macin_open_image’: mac.c:55:12: warning: old-style function definition [-Wold-style-definition] 55 | static int macin_open_image(s) | ^~~~~~~~~~~~~~~~ mac.c:79:7: error: too many arguments to function ‘zread’; expected 0, have 3 79 | if (zread(ins, (byte *)hp, ADD_HDR_LEN) != ADD_HDR_LEN) | ^~~~~ ~~~ mcidas.c:179:7: error: too many arguments to function ‘zclose’; expected 0, have 1 179 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ In file included from mac.c:24: image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ mcidas.c:187:5: error: too many arguments to function ‘zclose’; expected 0, have 1 187 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mac.c:87:9: error: too many arguments to function ‘zread’; expected 0, have 3 87 | if (zread(ins, (byte *)hp, MAC_HDR_LEN) != MAC_HDR_LEN) | ^~~~~ ~~~ mcidas.c:194:3: error: too many arguments to function ‘znocache’; expected 0, have 1 194 | znocache(zf); | ^~~~~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ mac.c:91:9: error: too many arguments to function ‘zread’; expected 0, have 3 91 | if (zread(ins, (byte *)hp, MAC_HDR_LEN - ADD_HDR_LEN) != MAC_HDR_LEN - ADD_HDR_LEN) | ^~~~~ ~~~ mcidas.c:196:7: error: too many arguments to function ‘zread’; expected 0, have 3 196 | if( zread(zf, (byte *)&nav, sizeof(struct navigation)) != | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ mcidas.c:198:7: error: too many arguments to function ‘zclose’; expected 0, have 1 198 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mcidas.c:204:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 204 | image= newRGBImage(dir.esiz, dir.lsiz, dir.zsiz * 8); | ^~~~~~~~~~~ ~~~~~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ mac.c: In function ‘tellAboutImage’: mac.c:144:13: warning: old-style function definition [-Wold-style-definition] 144 | static void tellAboutImage(name) | ^~~~~~~~~~~~~~ mcidas.c:218:3: error: too many arguments to function ‘zread’; expected 0, have 3 218 | zread(zf, image->data, dir.esiz * dir.lsiz * dir.zsiz) ; | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ mac.c: In function ‘macLoad’: mac.c:151:8: warning: old-style function definition [-Wold-style-definition] 151 | Image *macLoad(fullname, name, verbose) | ^~~~~~~ mcidas.c:222:3: error: too many arguments to function ‘zclose’; expected 0, have 1 222 | zclose(zf); | ^~~~~~ ~~ mac.c:162:15: error: too many arguments to function ‘zopen’; expected 0, have 1 162 | if (! (zf = zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ mcidas.c:223:17: error: too many arguments to function ‘dupString’; expected 0, have 1 223 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ mac.c:164:7: error: too many arguments to function ‘macin_open_image’; expected 0, have 1 164 | if (macin_open_image(zf) != MACIN_SUCCESS) { /* read image header */ | ^~~~~~~~~~~~~~~~ ~~ mac.c:55:12: note: declared here 55 | static int macin_open_image(s) | ^~~~~~~~~~~~~~~~ mac.c:166:5: error: too many arguments to function ‘zclose’; expected 0, have 1 166 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mac.c:170:11: error: too many arguments to function ‘newBitImage’; expected 0, have 2 170 | image = newBitImage(macin_img_width, macin_img_height); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ mac.c:176:18: error: too many arguments to function ‘zgetc’; expected 0, have 1 176 | if ((eof = zgetc(zf)) == -1) break; | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ mac.c:182:30: error: too many arguments to function ‘zgetc’; expected 0, have 1 182 | if ((eof = zgetc(zf)) == -1) break; | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ mac.c:191:22: error: too many arguments to function ‘zgetc’; expected 0, have 1 191 | if ((eof = zgetc(zf)) == -1) break; | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ mac.c:205:7: error: too many arguments to function ‘zclose’; expected 0, have 1 205 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mac.c:213:3: error: too many arguments to function ‘zclose’; expected 0, have 1 213 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ mac.c:214:18: error: too many arguments to function ‘dupString’; expected 0, have 1 214 | image->title = dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ mac.c: In function ‘macIdent’: mac.c:218:5: warning: old-style function definition [-Wold-style-definition] 218 | int macIdent(fullname, name) | ^~~~~~~~ mac.c:224:15: error: too many arguments to function ‘zopen’; expected 0, have 1 224 | if (! (zf = zopen(fullname))) | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ mac.c:226:7: error: too many arguments to function ‘macin_open_image’; expected 0, have 1 226 | if (macin_open_image(zf) == MACIN_SUCCESS) { | ^~~~~~~~~~~~~~~~ ~~ mac.c:55:12: note: declared here 55 | static int macin_open_image(s) | ^~~~~~~~~~~~~~~~ mac.c:232:3: error: too many arguments to function ‘zclose’; expected 0, have 1 232 | zclose(zf); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c: In function ‘transf0’: img.c:100:13: warning: old-style function definition [-Wold-style-definition] 100 | static void transf0(bitimage, plane, value, planes) | ^~~~~~~ img.c: In function ‘transf1’: img.c:112:13: warning: old-style function definition [-Wold-style-definition] 112 | static void transf1(bitimage, plane, value, planes) | ^~~~~~~ img.c: In function ‘transf3’: img.c:155:13: warning: old-style function definition [-Wold-style-definition] 155 | static void transf3(bitimage, plane, value, planes) | ^~~~~~~ pcx.c: In function ‘pcxIdent’: pcx.c:43:14: warning: old-style function definition [-Wold-style-definition] 43 | unsigned int pcxIdent ( fullname, name ) | ^~~~~~~~ pcx.c:56:21: error: too many arguments to function ‘zopen’; expected 0, have 1 56 | if (! (zf = zopen ( fullname ))) | ^~~~~ ~~~~~~~~ In file included from pcx.c:30: image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ img.c: In function ‘xread_line’: pcx.c:58:30: error: too many arguments to function ‘lmalloc’; expected 0, have 1 58 | PCXH = (PCXHeader *) lmalloc ( PCXHsize ); | ^~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ img.c:184:13: warning: old-style function definition [-Wold-style-definition] 184 | static void xread_line (file, planes) | ^~~~~~~~~~ pcx.c:59:13: error: too many arguments to function ‘zread’; expected 0, have 3 59 | if (zread ( zf, (byte *)PCXH, PCXHsize ) == PCXHsize) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:192:7: error: too many arguments to function ‘xread_img’; expected 0, have 3 192 | xread_img (file, TRUE, planes); | ^~~~~~~~~ ~~~~ img.c:83:15: note: declared here 83 | static void xread_img (); | ^~~~~~~~~ img.c: In function ‘xread_img’: img.c:201:13: warning: old-style function definition [-Wold-style-definition] 201 | static void xread_img (file, linie, planes) | ^~~~~~~~~ img.c:209:10: error: too many arguments to function ‘zgetc’; expected 0, have 1 209 | wert = zgetc(file); | ^~~~~ ~~~~ In file included from img.c:18: image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pcx.c:77:9: error: too many arguments to function ‘zclose’; expected 0, have 1 77 | zclose ( zf ); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:215:14: error: too many arguments to function ‘zgetc’; expected 0, have 1 215 | wert = zgetc(file); | ^~~~~ ~~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pcx.c:78:9: error: too many arguments to function ‘lfree’; expected 0, have 1 78 | lfree ( (byte *)PCXH ); | ^~~~~ ~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ img.c:221:26: error: too many arguments to function ‘zread’; expected 0, have 3 221 | LEAVE_ON_ERROR(zread(file, tmp, 2L)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ pcx.c: In function ‘PCX_Load_Raster’: image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pcx.c:95:13: warning: old-style function definition [-Wold-style-definition] 95 | static void PCX_Load_Raster ( zf, image, depth ) | ^~~~~~~~~~~~~~~ img.c:225:13: error: too many arguments to function ‘xread_line’; expected 0, have 2 225 | xread_line (file, planes); | ^~~~~~~~~~ ~~~~ img.c:184:13: note: declared here 184 | static void xread_line (file, planes) | ^~~~~~~~~~ pcx.c:120:21: error: too many arguments to function ‘zgetc’; expected 0, have 1 120 | while ((b = zgetc(zf)) != EOF) { /* Are we done ? */ | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pcx.c:123:21: error: too many arguments to function ‘zgetc’; expected 0, have 1 123 | b = zgetc ( zf ); /* get real bits */ | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ img.c:259:20: error: too many arguments to function ‘transf’; expected 0, have 4 259 | (*transf)(ptr, plane, Muster[plane][ByteNr], planes); | ~^~~~~~~~ ~~~ img.c:272:28: error: too many arguments to function ‘zread’; expected 0, have 3 272 | LEAVE_ON_ERROR(zread(file, tmp, (long)pattern_len)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ pcx.c: In function ‘PCX_Planes’: image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pcx.c:165:13: warning: old-style function definition [-Wold-style-definition] 165 | static void PCX_Planes ( zf, image, bpp, nr_pl ) | ^~~~~~~~~~ pcx.c:185:32: error: too many arguments to function ‘lcalloc’; expected 0, have 1 185 | sptr = tptr = (byte *) lcalloc ( by_per_row*8 ); | ^~~~~~~ ~~~~~~~~~~~~ image.h:266:8: note: declared here 266 | byte *lcalloc _ArgProto((unsigned int size)); | ^~~~~~~ make: *** [: mcidas.o] Error 1 img.c:287:20: error: too many arguments to function ‘transf’; expected 0, have 4 287 | (*transf)(ptr, plane, tmp[i], planes); | ~^~~~~~~~ ~~~ pcx.c:190:21: error: too many arguments to function ‘zgetc’; expected 0, have 1 190 | while ((b = zgetc(zf)) != EOF) { | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ img.c:294:28: error: too many arguments to function ‘zread’; expected 0, have 3 294 | LEAVE_ON_ERROR(zread(file, tmp, (long)pattern_len)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ pcx.c:193:21: error: too many arguments to function ‘zgetc’; expected 0, have 1 193 | b = zgetc ( zf ); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:303:14: error: too many arguments to function ‘zgetc’; expected 0, have 1 303 | wert = zgetc(file); | ^~~~~ ~~~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ img.c:315:11: error: too many arguments to function ‘zread’; expected 0, have 3 315 | zread(file, ptr, (long)i); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:319:28: error: too many arguments to function ‘zread’; expected 0, have 3 319 | LEAVE_ON_ERROR(zread(file, tmp, (long)wert)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:324:11: error: too many arguments to function ‘zread’; expected 0, have 3 324 | zread(file, tmp, (long)i); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:327:14: error: too many arguments to function ‘transf’; expected 0, have 4 327 | (*transf)(ptr, plane, tmp[k], planes); | ~^~~~~~~~ ~~~ pcx.c: In function ‘PCX_LoadImage’: pcx.c:258:13: warning: old-style function definition [-Wold-style-definition] 258 | static void PCX_LoadImage ( zf ,image ) | ^~~~~~~~~~~~~ img.c:331:28: error: too many arguments to function ‘zread’; expected 0, have 3 331 | LEAVE_ON_ERROR(zread(file, tmp, (long)wert)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:336:9: error: too many arguments to function ‘zread’; expected 0, have 3 336 | zread(file, &Muster[plane][ByteNr], (long)i); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pcx.c:277:21: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration] 277 | exit (1); | ^~~~ pcx.c:33:1: note: include ‘’ or provide a declaration of ‘exit’ 32 | #include "pcx.h" +++ |+#include 33 | pcx.c:277:21: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 277 | exit (1); | ^~~~ pcx.c:277:21: note: include ‘’ or provide a declaration of ‘exit’ img.c:339:26: error: too many arguments to function ‘zread’; expected 0, have 3 339 | LEAVE_ON_ERROR(zread(file, tmp, (long)wert)); | ^~~~~ ~~~~ img.c:33:35: note: in definition of macro ‘LEAVE_ON_ERROR’ 33 | #define LEAVE_ON_ERROR(func) if ((func) <= 0) LEAVE | ^~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pcx.c:282:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 282 | exit (1); | ^~~~ pcx.c:282:17: note: include ‘’ or provide a declaration of ‘exit’ pcx.c: In function ‘pcxLoad’: pcx.c:295:8: warning: old-style function definition [-Wold-style-definition] 295 | Image *pcxLoad ( fullname, name, verbose ) | ^~~~~~~ img.c:359:14: error: too many arguments to function ‘transf’; expected 0, have 4 359 | (*transf)(ptr, plane, status, planes); | ~^~~~~~~~ ~~~ pcx.c:310:22: error: too many arguments to function ‘zopen’; expected 0, have 1 310 | if ( ! (zf = zopen ( fullname ))) /* Open input file */ | ^~~~~ ~~~~~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ pcx.c:312:30: error: too many arguments to function ‘lmalloc’; expected 0, have 1 312 | PCXH = (PCXHeader *) lmalloc ( PCXHsize ); | ^~~~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ img.c: In function ‘ident_img’: pcx.c:313:13: error: too many arguments to function ‘zread’; expected 0, have 3 313 | if (zread ( zf, (byte *)PCXH, PCXHsize ) != PCXHsize) { /* Read header */ | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:369:12: warning: old-style function definition [-Wold-style-definition] 369 | static int ident_img(name) | ^~~~~~~~~ pcx.c:314:13: error: too many arguments to function ‘zclose’; expected 0, have 1 314 | zclose ( zf ); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:385:14: error: too many arguments to function ‘zopen’; expected 0, have 1 385 | if ((file= zopen(name)) == NULL) | ^~~~~ ~~~~ make: *** [: mac.o] Error 1 image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ pcx.c:318:13: error: too many arguments to function ‘zclose’; expected 0, have 1 318 | zclose ( zf ); /* Is it PCX, Version less 5 ? */ | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pcx.c:321:9: error: too many arguments to function ‘znocache’; expected 0, have 1 321 | znocache(zf); /* don't need caching anymore */ | ^~~~~~~~ ~~ image.h:303:8: note: declared here 303 | void znocache _ArgProto((ZFILE *zf)); | ^~~~~~~~ img.c:390:10: error: too many arguments to function ‘zread’; expected 0, have 3 390 | size = zread(file, (byte *)&header, sizeof(header)); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:391:3: error: too many arguments to function ‘zclose’; expected 0, have 1 391 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pcx.c:338:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 338 | exit (1); | ^~~~ pcx.c:338:13: note: include ‘’ or provide a declaration of ‘exit’ pcx.c:344:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 344 | exit (1); | ^~~~ pcx.c:344:13: note: include ‘’ or provide a declaration of ‘exit’ pcx.c:347:21: error: too many arguments to function ‘newBitImage’; expected 0, have 2 347 | image = newBitImage ( xmax, ymax ); | ^~~~~~~~~~~ ~~~~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ pcx.c:349:21: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 349 | image = newRGBImage ( xmax, ymax, 8 ); | ^~~~~~~~~~~ ~~~~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ pcx.c:353:25: error: too many arguments to function ‘zgetc’; expected 0, have 1 353 | while ((i = zgetc(zf)) != PCX_MAPSTART); | ^~~~~ ~~ image.h:300:8: note: declared here 300 | int zgetc _ArgProto((ZFILE *zf)); | ^~~~~ pcx.c:355:33: error: too many arguments to function ‘lmalloc’; expected 0, have 1 355 | cmap = (PCXcolor *) lmalloc ( clen ); | ^~~~~~~ ~~~~ image.h:267:8: note: declared here 267 | byte *lmalloc _ArgProto((unsigned int size)); | ^~~~~~~ pcx.c:356:17: error: too many arguments to function ‘zread’; expected 0, have 3 356 | if (zread ( zf, (byte *)cmap, clen ) != clen) { | ^~~~~ ~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ pcx.c:358:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch] 358 | exit (1); | ^~~~ pcx.c:358:17: note: include ‘’ or provide a declaration of ‘exit’ pcx.c:366:13: error: too many arguments to function ‘lfree’; expected 0, have 1 366 | lfree ( (byte *)cmap ); | ^~~~~ ~~~~~~~~~~~~ image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ pcx.c:376:9: error: too many arguments to function ‘zclose’; expected 0, have 1 376 | zclose ( zf ); | ^~~~~~ ~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ pcx.c:377:9: error: too many arguments to function ‘lfree’; expected 0, have 1 377 | lfree ( (byte *)PCXH ); | ^~~~~ ~~~~~~~~~~~~ img.c: In function ‘load_img’: image.h:268:8: note: declared here 268 | void lfree _ArgProto((byte *area)); | ^~~~~ img.c:418:15: warning: old-style function definition [-Wold-style-definition] 418 | static Image *load_img(name) | ^~~~~~~~ pcx.c:378:24: error: too many arguments to function ‘dupString’; expected 0, have 1 378 | image->title = dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ img.c:427:15: error: too many arguments to function ‘zopen’; expected 0, have 1 427 | if ((file = zopen(name)) == NULL) | ^~~~~ ~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ img.c:432:3: error: too many arguments to function ‘zread’; expected 0, have 3 432 | zread(file, (byte *)&header, sizeof(header)); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:436:5: error: too many arguments to function ‘zread’; expected 0, have 3 436 | zread(file, (byte *)&dummy, 2L); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:449:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 449 | image= newBitImage(w, h); | ^~~~~~~~~~~ ~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ img.c:452:7: error: too many arguments to function ‘zclose’; expected 0, have 1 452 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:463:7: error: too many arguments to function ‘xread_img’; expected 0, have 3 463 | xread_img (file, FALSE, 1); | ^~~~~~~~~ ~~~~ img.c:201:13: note: declared here 201 | static void xread_img (file, linie, planes) | ^~~~~~~~~ img.c:479:14: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 479 | image= newRGBImage(w, h, nplanes); | ^~~~~~~~~~~ ~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ img.c:482:9: error: too many arguments to function ‘zclose’; expected 0, have 1 482 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:490:14: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 490 | image= newTrueImage(w, h); | ^~~~~~~~~~~~ ~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ img.c:493:9: error: too many arguments to function ‘zclose’; expected 0, have 1 493 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:540:11: error: too many arguments to function ‘xread_img’; expected 0, have 3 540 | xread_img (file, FALSE, nplanes); | ^~~~~~~~~ ~~~~ img.c:201:13: note: declared here 201 | static void xread_img (file, linie, planes) | ^~~~~~~~~ img.c:554:5: error: too many arguments to function ‘freeImage’; expected 0, have 1 554 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ img.c:556:5: error: too many arguments to function ‘zclose’; expected 0, have 1 556 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:560:17: error: too many arguments to function ‘dupString’; expected 0, have 1 560 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ img.c:561:3: error: too many arguments to function ‘zclose’; expected 0, have 1 561 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c: In function ‘ident_ximg’: img.c:567:12: warning: old-style function definition [-Wold-style-definition] 567 | static int ident_ximg(name) | ^~~~~~~~~~ img.c:574:15: error: too many arguments to function ‘zopen’; expected 0, have 1 574 | if ((file = zopen(name)) == NULL) | ^~~~~ ~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ img.c:579:10: error: too many arguments to function ‘zread’; expected 0, have 3 579 | size = zread(file, (byte *)&xheader, sizeof(xheader)); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:580:3: error: too many arguments to function ‘zclose’; expected 0, have 1 580 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c: In function ‘vdi2pli’: img.c:607:12: warning: old-style function definition [-Wold-style-definition] 607 | static int vdi2pli(vdi, plimax) | ^~~~~~~ img.c: In function ‘load_ximg’: img.c:634:15: warning: old-style function definition [-Wold-style-definition] 634 | static Image *load_ximg(name) | ^~~~~~~~~ img.c:649:15: error: too many arguments to function ‘zopen’; expected 0, have 1 649 | if ((file = zopen(name)) == NULL) | ^~~~~ ~~~~ image.h:298:8: note: declared here 298 | ZFILE *zopen _ArgProto((char *name)); | ^~~~~ img.c:654:3: error: too many arguments to function ‘zread’; expected 0, have 3 654 | zread(file, (byte *)&xheader, sizeof(xheader)); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ make: *** [: pcx.o] Error 1 img.c:665:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2 665 | image= newBitImage(w, h); | ^~~~~~~~~~~ ~ image.h:258:8: note: declared here 258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~ img.c:668:7: error: too many arguments to function ‘zclose’; expected 0, have 1 668 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:675:12: error: too many arguments to function ‘newRGBImage’; expected 0, have 3 675 | image= newRGBImage(w, h, nplanes); | ^~~~~~~~~~~ ~ image.h:259:8: note: declared here 259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height, | ^~~~~~~~~~~ img.c:678:7: error: too many arguments to function ‘zclose’; expected 0, have 1 678 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:688:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2 688 | image= newTrueImage(w, h); | ^~~~~~~~~~~~ ~ image.h:261:8: note: declared here 261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height)); | ^~~~~~~~~~~~ img.c:691:7: error: too many arguments to function ‘zclose’; expected 0, have 1 691 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:702:5: error: too many arguments to function ‘zread’; expected 0, have 3 702 | zread (file, (byte *)&rgb_list, sizeof(rgb_list)); | ^~~~~ ~~~~ image.h:299:8: note: declared here 299 | int zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len)); | ^~~~~ img.c:705:22: error: too many arguments to function ‘vdi2pli’; expected 0, have 2 705 | image->rgb.red[vdi2pli(color, colors)] = ((unsigned int) (255 * rgb_list.red / 1000)) << 8; | ^~~~~~~ ~~~~~ img.c:607:12: note: declared here 607 | static int vdi2pli(vdi, plimax) | ^~~~~~~ img.c:706:24: error: too many arguments to function ‘vdi2pli’; expected 0, have 2 706 | image->rgb.green[vdi2pli(color, colors)] = ((unsigned int) (255 * rgb_list.green / 1000)) << 8; | ^~~~~~~ ~~~~~ img.c:607:12: note: declared here 607 | static int vdi2pli(vdi, plimax) | ^~~~~~~ img.c:707:23: error: too many arguments to function ‘vdi2pli’; expected 0, have 2 707 | image->rgb.blue[vdi2pli(color, colors)] = ((unsigned int) (255 * rgb_list.blue / 1000)) << 8; | ^~~~~~~ ~~~~~ img.c:607:12: note: declared here 607 | static int vdi2pli(vdi, plimax) | ^~~~~~~ img.c:734:9: error: too many arguments to function ‘xread_img’; expected 0, have 3 734 | xread_img (file, FALSE, nplanes); | ^~~~~~~~~ ~~~~ img.c:201:13: note: declared here 201 | static void xread_img (file, linie, planes) | ^~~~~~~~~ img.c:749:5: error: too many arguments to function ‘freeImage’; expected 0, have 1 749 | freeImage(image); | ^~~~~~~~~ ~~~~~ image.h:262:8: note: declared here 262 | void freeImage _ArgProto((Image *image)); | ^~~~~~~~~ img.c:751:5: error: too many arguments to function ‘zclose’; expected 0, have 1 751 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c:754:17: error: too many arguments to function ‘dupString’; expected 0, have 1 754 | image->title= dupString(name); | ^~~~~~~~~ ~~~~ image.h:257:8: note: declared here 257 | char *dupString _ArgProto((char *s)); | ^~~~~~~~~ img.c:756:3: error: too many arguments to function ‘zclose’; expected 0, have 1 756 | zclose(file); | ^~~~~~ ~~~~ image.h:302:8: note: declared here 302 | void zclose _ArgProto((ZFILE *zf)); | ^~~~~~ img.c: In function ‘imgIdent’: img.c:760:5: warning: old-style function definition [-Wold-style-definition] 760 | int imgIdent(name, name2, verbose) | ^~~~~~~~ img.c:767:21: error: too many arguments to function ‘ident_ximg’; expected 0, have 1 767 | if ((identified = ident_ximg(name)) != 0) | ^~~~~~~~~~ ~~~~ img.c:567:12: note: declared here 567 | static int ident_ximg(name) | ^~~~~~~~~~ img.c:769:16: error: too many arguments to function ‘ident_img’; expected 0, have 1 769 | identified = ident_img(name); | ^~~~~~~~~ ~~~~ img.c:369:12: note: declared here 369 | static int ident_img(name) | ^~~~~~~~~ img.c: In function ‘imgLoad’: img.c:774:8: warning: old-style function definition [-Wold-style-definition] 774 | Image *imgLoad(name, name2, verbose) | ^~~~~~~ img.c:781:7: error: too many arguments to function ‘ident_ximg’; expected 0, have 1 781 | if (ident_ximg(name) != 0) | ^~~~~~~~~~ ~~~~ img.c:567:12: note: declared here 567 | static int ident_ximg(name) | ^~~~~~~~~~ img.c:782:12: error: too many arguments to function ‘load_ximg’; expected 0, have 1 782 | return(load_ximg(name)); | ^~~~~~~~~ ~~~~ img.c:634:15: note: declared here 634 | static Image *load_ximg(name) | ^~~~~~~~~ img.c:783:7: error: too many arguments to function ‘ident_img’; expected 0, have 1 783 | if (ident_img(name) != 0) | ^~~~~~~~~ ~~~~ img.c:369:12: note: declared here 369 | static int ident_img(name) | ^~~~~~~~~ img.c:784:12: error: too many arguments to function ‘load_img’; expected 0, have 1 784 | return(load_img(name)); | ^~~~~~~~ ~~~~ img.c:418:15: note: declared here 418 | static Image *load_img(name) | ^~~~~~~~ make: *** [: img.o] Error 1 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-staging-aarch64/ben-5/build