==> Synchronizing chroot copy [/home/alhp/workspace/chroot/root] -> [build_67ab01e3-d3e5-43b4-b81b-c6dd5d6577d0]...done
==> Making package: xloadimage 4.1-16.1 (Thu Apr 30 19:33:07 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  1.11M      0                              0100 608.9k 100 608.9k   0      0  1.10M      0                              0100 608.9k 100 608.9k   0      0  1.10M      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.1 (Thu Apr 30 17:33:09 2026)
==> Checking runtime dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for conflicting packages...

Package (13)         New Version  Net Change

extra/jbigkit        2.1-8          0.16 MiB
extra/libdeflate     1.25-1         0.14 MiB
extra/libjpeg-turbo  3.1.4.1-1      2.43 MiB
extra/libwebp        1.6.0-2        1.04 MiB
extra/libxau         1.0.12-1       0.02 MiB
extra/libxcb         1.17.0-1       3.87 MiB
extra/libxdmcp       1.1.5-2        0.13 MiB
extra/xcb-proto      1.17.0-4       1.03 MiB
extra/xorgproto      2025.1-1       1.47 MiB
extra/libpng         1.6.58-1       0.58 MiB
extra/libtiff        4.7.1-2        1.26 MiB
extra/libx11         1.8.13-1       9.78 MiB
extra/libxext        1.3.7-1        0.30 MiB

Total Installed Size:  22.20 MiB

:: Proceed with installation? [Y/n] 
checking keyring...
checking package integrity...
loading package files...
checking for file conflicts...
:: Processing package changes...
installing jbigkit...
installing libdeflate...
installing libjpeg-turbo...
Optional dependencies for libjpeg-turbo
    java-runtime>11: for TurboJPEG Java wrapper
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...
resolving dependencies...
looking for conflicting packages...

Package (1)  New Version  Net Change

extra/imake  1.0.11-1       1.25 MiB

Total Installed Size:  1.25 MiB

:: Proceed with installation? [Y/n] 
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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 rle.o rle.c
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 rlelib.o rlelib.c
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 sunraster.o sunraster.c
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 vff.o vff.c
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 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"
      |   ^~~~~~~
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 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"
      |   ^~~~~~~
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 vicar.o vicar.c
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 xbitmap.o xbitmap.c
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 xpixmap.o xpixmap.c
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"
      |   ^~~~~~~
gcc -O2 -fno-strength-reduce -fno-strict-aliasing      -I/usr/include    -Dlinux -D__amd64__ -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 xwd.o xwd.c
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"
      |   ^~~~~~~
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"
      |   ^~~~~~~
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"
      |   ^~~~~~~
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"
      |   ^~~~~~~
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"
      |   ^~~~~~~
mc_tables.c: In function ‘mc_sensor’:
mc_tables.c:11:1: warning: old-style function definition [-Wold-style-definition]
   11 | mc_sensor(sscode)
      | ^~~~~~~~~
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"
      |   ^~~~~~~
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"
      |   ^~~~~~~
zio.c: In function ‘doRead’:
zio.c:30:12: warning: old-style function definition [-Wold-style-definition]
   30 | static int doRead(zf, buf, len)
      |            ^~~~~~
value.c: In function ‘doMemToVal’:
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));
      |                                                  ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~
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:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
image.h:291:15: error: prototype declaration
  291 | unsigned long doMemToVal _ArgProto((byte *p, unsigned int len));
      |               ^~~~~~~~~~
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));
      |        ^~~~~~~
niff.c: In function ‘babble’:
niff.c:17:13: warning: old-style function definition [-Wold-style-definition]
   17 | static void babble(name, header, title)
      |             ^~~~~~
value.c: In function ‘doValToMem’:
zio.c:67:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
   67 |           exit(1);
      |           ^~~~
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;
      | ^
zio.c:15:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   14 | #include "image.h"
  +++ |+#include <stdlib.h>
   15 | 
image.h:292:15: error: prototype declaration
  292 | unsigned long doValToMem _ArgProto((unsigned long val, byte *p, unsigned int len));
      |               ^~~~~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |               ^~~~~~~~~~~~~
zio.c: In function ‘zreset’:
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));
      |        ^~~~~~
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));
      |               ^~~~~~~~
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 ‘<stdlib.h>’ 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 ‘<stdlib.h>’ or provide a declaration of ‘free’
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));
      |        ^~~~~
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 ‘<stdlib.h>’ 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;
      | ^
cmuwmraster.c: In function ‘babble’:
image.h:298:8: error: prototype declaration
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
cmuwmraster.c:19:6: warning: old-style function definition [-Wold-style-definition]
   19 | void babble(name, headerp)
      |      ^~~~~~
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)
      |      ^~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~~~~
faces.c: In function ‘nextInt’:
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));
      |        ^~~~~~~
faces.c:58:12: warning: old-style function definition [-Wold-style-definition]
   58 | static int nextInt(zf, len)
      |            ^~~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~
new.c: In function ‘colorsToDepth’:
cmuwmraster.c: In function ‘cmuwmIdent’:
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));
      |        ^~~~~
cmuwmraster.c:30:5: warning: old-style function definition [-Wold-style-definition]
   30 | int cmuwmIdent(fullname, name)
      |     ^~~~~~~~~~
new.c:58:15: warning: old-style function definition [-Wold-style-definition]
   58 | unsigned long colorsToDepth(ncolors)
      |               ^~~~~~~~~~~~~
new.c:60:1: error: number of arguments doesn’t match prototype
   60 | { unsigned long a;
      | ^
cmuwmraster.c:37:16: error: too many arguments to function ‘zopen’; expected 0, have 1
   37 |     if (!(zf = zopen(fullname)))
      |                ^~~~~ ~~~~~~~~
faces.c: In function ‘facesLoad’:
faces.c:86:8: warning: old-style function definition [-Wold-style-definition]
   86 | Image *facesLoad(fullname, name, verbose)
      |        ^~~~~~~~~
zio.c:258:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  258 |     lfree((byte *)zf->filename);
      |     ^~~~~ ~~~~~~~~~~~~~~~~~~~~
faces.c:86:8: error: type of ‘verbose’ defaults to ‘int’ [-Wimplicit-int]
image.h:256:15: error: prototype declaration
  256 | unsigned long colorsToDepth();
      |               ^~~~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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: In function ‘zread’:
faces.c:102:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  102 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
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:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
zio.c:265:5: warning: old-style function definition [-Wold-style-definition]
  265 | int zread(zf, buf, len)
      |     ^~~~~
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));
      |        ^~~~~
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)) !=
      |       ^~~~~ ~~
image.h:299:8: error: prototype declaration
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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;
      | ^
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:300:8: error: prototype declaration
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:301:8: note: declared here
  301 | char  *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf));
      |        ^~~~~
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 | {
      | ^
niff.c:58:5: error: too many arguments to function ‘zclose’; expected 0, have 1
   58 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:238:8: error: prototype declaration
  238 | void   goodImage _ArgProto((Image *image, char *where));
      |        ^~~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _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));
      |        ^~~~~
new.c:87:5: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
   87 |     exit(0);
      |     ^~~~
new.c:13:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   12 | #include "image.h"
  +++ |+#include <stdlib.h>
   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 ‘<stdlib.h>’ 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 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"
      |   ^~~~~~~
zio.c: In function ‘znocache’:
faces.c:123:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  123 |         exit(1);
      |         ^~~~
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));
      |        ^~~~~~~~
faces.c:13:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   12 | #include "image.h"
  +++ |+#include <stdlib.h>
   13 | 
faces.c:123:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  123 |         exit(1);
      |         ^~~~
new.c:96:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
   96 |     exit(0);
      |     ^~~~
faces.c:123:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
new.c:96:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
cmuwmraster.c:65:5: error: too many arguments to function ‘zclose’; expected 0, have 1
   65 |     zclose(zf);
      |     ^~~~~~ ~~
zio.c: In function ‘zclose’:
zio.c:316:6: warning: old-style function definition [-Wold-style-definition]
  316 | void zclose(zf)
      |      ^~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
zio.c:318:1: error: number of arguments doesn’t match prototype
  318 | {
      | ^
image.h:302:8: error: prototype declaration
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
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));
      |        ^~~~~~~~~
cmuwmraster.c: In function ‘cmuwmLoad’:
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
cmuwmraster.c:70:8: warning: old-style function definition [-Wold-style-definition]
   70 | Image* cmuwmLoad(fullname, name, verbose)
      |        ^~~~~~~~~
new.c:105:14: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  105 |   d= (char *)lmalloc(strlen(s) + 1);
      |              ^~~~~~~ ~~~~~~~~~~~~~
cmuwmraster.c:80:15: error: too many arguments to function ‘zopen’; expected 0, have 1
   80 |     if (!(zf= zopen(fullname)))
      |               ^~~~~ ~~~~~~~~
faces.c:134:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  134 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
faces.c:137:3: error: too many arguments to function ‘znocache’; expected 0, have 1
  137 |   znocache(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:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
new.c: In function ‘newRGBMapData’:
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
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 | {
      | ^
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:264:8: error: prototype declaration
  264 | void   newRGBMapData _ArgProto((RGBMap *rgb, unsigned int  size));
      |        ^~~~~~~~~~~~~
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:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
faces.c:143:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  143 |   image= newRGBImage(w, h, d);
      |          ^~~~~~~~~~~ ~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
cmuwmraster.c:90:11: error: too many arguments to function ‘zclose’; expected 0, have 1
   90 |           zclose(zf);
      |           ^~~~~~ ~~
niff.c:73:7: error: too many arguments to function ‘lfree’; expected 0, have 1
   73 |       lfree((byte *)title);
      |       ^~~~~ ~~~~~~~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
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:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
cmuwmraster.c:91:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
   91 |           exit(1);
      |           ^~~~
cmuwmraster.c:16:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   15 | #include "cmuwmraster.h"
  +++ |+#include <stdlib.h>
   16 | 
new.c:118:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  118 |   rgb->green= (Intensity *)lmalloc(sizeof(Intensity) * size);
      |                            ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
cmuwmraster.c:91:11: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
   91 |           exit(1);
      |           ^~~~
niff.c:81:5: error: too many arguments to function ‘lfree’; expected 0, have 1
   81 |     lfree((byte *)title);
      |     ^~~~~ ~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
cmuwmraster.c:91:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
faces.c:147:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  147 |   image->title= dupString(fname);
      |                 ^~~~~~~~~ ~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
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));
      |        ^~~~~~~
niff.c: In function ‘niffIdent’:
new.c: In function ‘freeRGBMapData’:
niff.c:85:5: warning: old-style function definition [-Wold-style-definition]
   85 | int niffIdent(fullname, name)
      |     ^~~~~~~~~
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));
      |        ^~~~~~~~~~~~~~
niff.c:91:14: error: too many arguments to function ‘zopen’; expected 0, have 1
   91 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
new.c:125:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  125 |   lfree((byte *)rgb->red);
      |   ^~~~~ ~~~~~~~~~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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);
      |   ^~~~~ ~~~~~~~~~~~~~~~~~
niff.c:96:3: error: too many arguments to function ‘zclose’; expected 0, have 1
   96 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
faces.c:168:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  168 |         exit(1);
      |         ^~~~
faces.c:168:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
new.c: In function ‘newBitImage’:
niff.c:98:3: error: too many arguments to function ‘lfree’; expected 0, have 1
   98 |   lfree((byte *)title);
      |   ^~~~~ ~~~~~~~~~~~~~
new.c:130:8: warning: old-style function definition [-Wold-style-definition]
  130 | Image *newBitImage(width, height)
      |        ^~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
new.c:132:1: error: number of arguments doesn’t match prototype
  132 | { Image        *image;
      | ^
cmuwmraster.c:96:17: error: too many arguments to function ‘zclose’; expected 0, have 1
   96 |                 zclose(zf);
      |                 ^~~~~~ ~~
faces.c:173:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  173 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:258:8: error: prototype declaration
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
niff.c: In function ‘readColormap’:
niff.c:102:12: warning: old-style function definition [-Wold-style-definition]
  102 | static int readColormap(zf, image)
      |            ^~~~~~~~~~~~
new.c:135:19: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  135 |   image= (Image *)lmalloc(sizeof(Image));
      |                   ^~~~~~~ ~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
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));
      |        ^~~~~~
new.c:138:3: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2
  138 |   newRGBMapData(&(image->rgb), (unsigned int)2);
      |   ^~~~~~~~~~~~~ ~~~~~~~~~~~~~
faces.c: In function ‘facesIdent’:
new.c:110:6: note: declared here
  110 | void newRGBMapData(rgb, size)
      |      ^~~~~~~~~~~~~
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)) {
      |         ^~~~~ ~~
faces.c:177:5: warning: old-style function definition [-Wold-style-definition]
  177 | int facesIdent(fullname, name)
      |     ^~~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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));
      |        ^~~~~~~~~
new.c:146:33: error: too many arguments to function ‘lcalloc’; expected 0, have 1
  146 |   image->data= (unsigned char *)lcalloc(ovmul(linelen, height));
      |                                 ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~
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;
      | ^
cmuwmraster.c:111:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  111 |                   (int) header.depth);
      |                   ^
image.h:259:8: error: prototype declaration
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
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"
      |   ^~~~~~~
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));
      |        ^~~~~~~
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));
      |                   ^~~~~~~ ~~~~~~~~~~~~~
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:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
niff.c: In function ‘niffLoad’:
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
niff.c:120:8: warning: old-style function definition [-Wold-style-definition]
  120 | Image *niffLoad(fullname, name, verbose)
      |        ^~~~~~~~
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));
      |                                 ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
niff.c:130:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  130 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
cmuwmraster.c:123:15: error: too many arguments to function ‘zread’; expected 0, have 3
  123 |           r = zread(zf, lineptr, linelen);
      |               ^~~~~ ~~
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:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
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));
      |        ^~~~~~
new.c: In function ‘freeImageData’:
new.c:188:6: warning: old-style function definition [-Wold-style-definition]
  188 | void freeImageData(image)
      |      ^~~~~~~~~~~~~
cmuwmraster.c:128:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  128 |                 exit(1);
      |                 ^~~~
new.c:190:1: error: number of arguments doesn’t match prototype
  190 | {
      | ^
cmuwmraster.c:128:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
image.h:263:8: error: prototype declaration
  263 | void   freeImageData _ArgProto((Image *image));
      |        ^~~~~~~~~~~~~
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));
      |        ^~~~~~~~
cmuwmraster.c:134:17: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  134 |                 exit(1);
      |                 ^~~~
new.c:192:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  192 |     lfree((byte *)image->title);
      |     ^~~~~ ~~~~~~~~~~~~~~~~~~~~
cmuwmraster.c:134:17: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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)
      |      ^~~~~~~~~~~~~~
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));
      |        ^~~~~~
new.c:197:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  197 |   lfree(image->data);
      |   ^~~~~ ~~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
cmuwmraster.c:147:20: error: too many arguments to function ‘dupString’; expected 0, have 1
  147 |     image->title = dupString(name);
      |                    ^~~~~~~~~ ~~~~
new.c: In function ‘freeImage’:
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
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 ‘<stdlib.h>’ 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 ‘<stdlib.h>’ or provide a declaration of ‘malloc’
niff.c:146:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  146 |     image= newBitImage(width, height);
      |            ^~~~~~~~~~~ ~~~~~
new.c: In function ‘lcalloc’:
new.c:225:7: warning: old-style function definition [-Wold-style-definition]
  225 | byte *lcalloc(size)
      |       ^~~~~~~
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
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 ‘<stdlib.h>’ 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 ‘<stdlib.h>’ or provide a declaration of ‘calloc’
new.c: In function ‘lfree’:
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 ‘<stdlib.h>’ 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 ‘<stdlib.h>’ or provide a declaration of ‘free’
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)
      |      ^~~~~~~~
make: *** [<builtin>: 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 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"
      |   ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from rlelib.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"
      |   ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/math.h:27,
                 from rle.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"
      |   ^~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from image.h:20,
                 from sunraster.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/ctype.h:25,
                 from vff.c:32:
/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"
      |   ^~~~~~~
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];
      | ^
In file included from imagetypes.c:14:
options.h:101:8: error: prototype declaration
  101 | Image *loadImage _ArgProto((OptionSet *globalopts, OptionSet *options,
      |        ^~~~~~~~~
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))) {
      |                     ^~~~~~~~~~           ~~~~~~~~
In file included from imagetypes.c:13:
imagetypes.h:89:12: note: declared here
   89 |   Image *(*loader)();     /* load image if this kind of image */
      |            ^~~~~~
imagetypes.c:50:11: error: too many arguments to function ‘zreset’; expected 0, have 1
   50 |           zreset(NULL);
      |           ^~~~~~ ~~~~
image.h:304:8: note: declared here
  304 | void   zreset _ArgProto((char *filename));
      |        ^~~~~~
imagetypes.c:59:27: error: too many arguments to function ‘flatten’; expected 0, have 1
   59 |               new_image = flatten(image);
      |                           ^~~~~~~ ~~~~~
image.h:275:8: note: declared here
  275 | Image *flatten _ArgProto((Image *image));
      |        ^~~~~~~
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));
      |        ^~~~~~~~~
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));
      |        ^~~~~~
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);
      |       ^~~~~~ ~~~~
image.h:304:8: note: declared here
  304 | void   zreset _ArgProto((char *filename));
      |        ^~~~~~
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));
      |        ^~~~~~~
niff.c:235:5: error: implicit declaration of function ‘unlink’ [-Wimplicit-function-declaration]
  235 |     unlink(filename);
      |     ^~~~~~
imagetypes.c:91:15: error: too many arguments to function ‘freeImage’; expected 0, have 1
   91 |               freeImage(image);
      |               ^~~~~~~~~ ~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
imagetypes.c:99:3: error: too many arguments to function ‘zreset’; expected 0, have 1
   99 |   zreset(NULL);
      |   ^~~~~~ ~~~~
image.h:304:8: note: declared here
  304 | void   zreset _ArgProto((char *filename));
      |        ^~~~~~
imagetypes.c: In function ‘identifyImage’:
gif.c: In function ‘gifin_open_file’:
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];
      | ^
options.h:103:8: error: prototype declaration
  103 | void   identifyImage _ArgProto((char *name));
      |        ^~~~~~~~~~~~~
make: *** [<builtin>: zio.o] Error 1
gif.c:108:12: warning: old-style function definition [-Wold-style-definition]
  108 | static int gifin_open_file(s)
      |            ^~~~~~~~~~~~~~~
make: *** [<builtin>: cmuwmraster.o] Error 1
make: *** [<builtin>: faces.o] Error 1
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 */
      |            ^~~~~~~~~~
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)
      |       ^~~~~ ~~~
imagetypes.c:120:7: error: too many arguments to function ‘zreset’; expected 0, have 1
  120 |       zreset(NULL);
      |       ^~~~~~ ~~~~
image.h:304:8: note: declared here
  304 | void   zreset _ArgProto((char *filename));
      |        ^~~~~~
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));
      |        ^~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
imagetypes.c: In function ‘dumpImage’:
imagetypes.c:130:6: warning: old-style function definition [-Wold-style-definition]
  130 | void dumpImage(image, type, filename, verbose)
      |      ^~~~~~~~~
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));
      |        ^~~~~
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 */
      |            ^~~~~~
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));
      |        ^~~~~
make: *** [<builtin>: new.o] Error 1
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));
      |        ^~~~~
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)
      |         ^~~~~~~~~~~~~~~ ~~~~~~~~~~~~
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));
      |        ^~~~~
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();
      |            ^~~~~~~~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from xloadimage.h:10,
                 from xpixmap.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"
      |   ^~~~~~~
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));
      |        ^~~~~
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);
      |   ^~~~~ ~~~
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);
      |             ^~~~~ ~~~
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));
      |        ^~~~~
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]);
      |     ^~~~~~~~~~
gif.h:54:13: note: declared here
   54 | static void gifin_fatal();
      |             ^~~~~~~~~~~
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();
      |             ^~~~~~~~~~~
gif.c: In function ‘gifin_add_string’:
In file included from /usr/include/ctype.h:25,
                 from xbitmap.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"
      |   ^~~~~~~
gif.c:471:13: warning: old-style function definition [-Wold-style-definition]
  471 | static void gifin_add_string(p, e)
      |             ^~~~~~~~~~~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
   18 | #include "kljcpyrght.h"
  +++ |+#include <stdlib.h>
   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 ‘<stdlib.h>’ 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)
      |             ^~~~~~~~~~~~~~
gif.c: In function ‘gifLoad’:
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));
      |        ^~~~~
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 */
      |        ^~~~~~~~~~~~~~~ ~~
gif.c:108:12: note: declared here
  108 | static int gifin_open_file(s)
      |            ^~~~~~~~~~~~~~~
gif.c:527:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  527 |     zclose(zf);
      |     ^~~~~~ ~~
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,
      |        ^~~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from xloadimage.h:10,
                 from xwd.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"
      |   ^~~~~~~
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) {
      |               ^~~~~~~~~~~~~~~ ~~~~~~
gif.c:258:12: note: declared here
  258 | static int gifin_get_pixel(pel)
      |            ^~~~~~~~~~~~~~~
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) {
      |             ^~~~~~~~~~~~~~~ ~~~~~~
pbm.c: In function ‘pbmReadChar’:
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) {
      |           ^~~~~ ~~
gif.c:258:12: note: declared here
  258 | static int gifin_get_pixel(pel)
      |            ^~~~~~~~~~~~~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
pbm.c:64:5: error: too many arguments to function ‘zclose’; expected 0, have 1
   64 |     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));
      |        ^~~~~
pbm.c: In function ‘pbmReadInt’:
pbm.c:75:12: warning: old-style function definition [-Wold-style-definition]
   75 | static int pbmReadInt(zf)
      |            ^~~~~~~~~~
In file included from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from vicar.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"
      |   ^~~~~~~
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)
      |            ^~~~~
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);
      |                 ^~~~~~~~~ ~~~~
pbm.c:108:7: error: too many arguments to function ‘zread’; expected 0, have 3
  108 |   if (zread(zf, buf, 2) != 2)
      |       ^~~~~ ~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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) &&
      |        ^~~~~~~~~~~~~~~ ~~
gif.c:108:12: note: declared here
  108 | static int gifin_open_file(s)
      |            ^~~~~~~~~~~~~~~
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: *** [<builtin>: imagetypes.o] Error 1
pbm.c:127:9: error: too many arguments to function ‘zread’; expected 0, have 3
  127 |     if (zread(zf, buf, 4) != 4)
      |         ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~~~
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));
      |        ^~~~~
pdsuncomp.c: In function ‘huff_tree’:
pdsuncomp.c:66:7: warning: old-style function definition [-Wold-style-definition]
   66 | NODE *huff_tree(hist)
      |       ^~~~~~~~~
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));
      |        ^~~~~~~
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));
      |        ^~~~~~
pdsuncomp.c:103:5: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  103 |     exit(1);
      |     ^~~~
pcx.c:78:9: error: too many arguments to function ‘lfree’; expected 0, have 1
   78 |         lfree ( (byte *)PCXH );
      |         ^~~~~   ~~~~~~~~~~~~
pdsuncomp.c:50:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   49 | #include "pds.h"
  +++ |+#include <stdlib.h>
   50 | 
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
pcx.c: In function ‘PCX_Load_Raster’:
pcx.c:95:13: warning: old-style function definition [-Wold-style-definition]
   95 | static void PCX_Load_Raster ( zf, image, depth )
      |             ^~~~~~~~~~~~~~~
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();
      |        ^~~~~~~~~
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();
      |              ^~~~~~~~
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));
      |        ^~~~~
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();
      |        ^~~~~~~~~
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));
      |        ^~~~~
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 | {
      | ^
pcx.c: In function ‘PCX_Planes’:
pdsuncomp.c:90:8: error: prototype declaration
   90 |   void sort_freq();
      |        ^~~~~~~~~
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));
      |        ^~~~~~~
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));
      |        ^~~~~
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)
      |                 ^~~~~~~~~
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));
      |        ^~~~~
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’:
pbm.c: In function ‘pbmIdent’:
pdsuncomp.c:295:12: warning: old-style function definition [-Wold-style-definition]
  295 | static int decompress(ibuf,obuf,nin,nout)
      |            ^~~~~~~~~~
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)
      |        ^~~~~~~
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));
      |        ^~~~~~~~~~~
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)
      |            ^~~~~~~~
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));
      |        ^~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~~
pcx.c: In function ‘PCX_LoadImage’:
pbm.c:253:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  253 |     image= newBitImage(width, height);
      |            ^~~~~~~~~~~ ~~~~~
pcx.c:258:13: warning: old-style function definition [-Wold-style-definition]
  258 | static void PCX_LoadImage ( zf ,image )
      |             ^~~~~~~~~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~~
pdsuncomp.c: In function ‘skip_record’:
pdsuncomp.c:365:6: warning: old-style function definition [-Wold-style-definition]
  365 | void skip_record(zf)
      |      ^~~~~~~~~~~
pcx.c:277:21: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  277 |                     exit (1);
      |                     ^~~~
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));
      |        ^~~~~
pcx.c:33:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   32 | #include "pcx.h"
  +++ |+#include <stdlib.h>
   33 | 
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));
      |        ^~~~~
pcx.c:277:21: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  277 |                     exit (1);
      |                     ^~~~
pbm.c:281:13: error: too many arguments to function ‘zclose’; expected 0, have 1
  281 |             zclose(zf);
      |             ^~~~~~ ~~
pcx.c:277:21: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
make: *** [<builtin>: niff.o] Error 1
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));
      |        ^~~~~
pcx.c: In function ‘pcxLoad’:
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));
      |        ^~~~~~~
pcx.c:295:8: warning: old-style function definition [-Wold-style-definition]
  295 | Image *pcxLoad ( fullname, name, verbose )
      |        ^~~~~~~
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));
      |        ^~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~
pcx.c:310:22: error: too many arguments to function ‘zopen’; expected 0, have 1
  310 |         if ( ! (zf = zopen ( fullname )))       /* Open input file      */
      |                      ^~~~~   ~~~~~~~~
pdsuncomp.c: In function ‘pdsInit’:
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
pdsuncomp.c:383:6: warning: old-style function definition [-Wold-style-definition]
  383 | void pdsInit(zf, type)
      |      ^~~~~~~
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));
      |        ^~~~~~~
pdsuncomp.c: In function ‘pdsRead’:
pdsuncomp.c:412:5: warning: old-style function definition [-Wold-style-definition]
  412 | int pdsRead(zf, buf, size)
      |     ^~~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~~
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));
      |        ^~~~~
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));
      |        ^~~~~~
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));
      |        ^~~~~~
pcx.c:321:9: error: too many arguments to function ‘znocache’; expected 0, have 1
  321 |         znocache(zf);                   /* don't need caching anymore   */
      |         ^~~~~~~~ ~~
pbm.c:326:12: error: too many arguments to function ‘colorsToDepth’; expected 0, have 1
  326 |     depth= colorsToDepth(maxval);
      |            ^~~~~~~~~~~~~ ~~~~~~
image.h:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
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,
      |        ^~~~~~~~~~~
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));
      |        ^~~~~
pbm.c:347:11: error: too many arguments to function ‘zread’; expected 0, have 3
  347 |       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));
      |        ^~~~~
pcx.c:338:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  338 |             exit (1);
      |             ^~~~
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));
      |        ^~~~~~
pcx.c:338:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~~~~
pbm.c:358:20: error: too many arguments to function ‘zgetc’; expected 0, have 1
  358 |         if ((src = zgetc(zf)) == EOF) {
      |                    ^~~~~ ~~
pcx.c:344:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  344 |             exit (1);
      |             ^~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
pcx.c:344:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~
pcx.c:347:21: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  347 |             image = newBitImage ( xmax, ymax );
      |                     ^~~~~~~~~~~   ~~~~
pbm.c:361:11: error: too many arguments to function ‘freeImage’; expected 0, have 1
  361 |           freeImage(image);
      |           ^~~~~~~~~ ~~~~~
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
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,
      |        ^~~~~~~~~~~
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();
      |               ^~~~~~~~~~~~~
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));
      |        ^~~~~
pbm.c:375:14: error: too many arguments to function ‘newTrueImage’; expected 0, have 2
  375 |       image= newTrueImage(width, height);
      |              ^~~~~~~~~~~~ ~~~~~
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,
      |        ^~~~~~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~
sunraster.c: In function ‘babble’:
sunraster.c:18:13: warning: old-style function definition [-Wold-style-definition]
   18 | static void babble(name, header)
      |             ^~~~~~
pbm.c:414:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2
  414 |     image= newTrueImage(width, height);
      |            ^~~~~~~~~~~~ ~~~~~
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));
      |        ^~~~~
pbm.c:418:7: error: too many arguments to function ‘zclose’; expected 0, have 1
  418 |       zclose(zf);
      |       ^~~~~~ ~~
pcx.c:366:13: error: too many arguments to function ‘lfree’; expected 0, have 1
  366 |             lfree ( (byte *)cmap );
      |             ^~~~~   ~~~~~~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
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));
      |        ^~~~~~~~~
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));
      |        ^~~~~~~~~~~~
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));
      |        ^~~~~~
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));
      |        ^~~~~~
pcx.c:377:9: error: too many arguments to function ‘lfree’; expected 0, have 1
  377 |         lfree ( (byte *)PCXH );
      |         ^~~~~   ~~~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
pcx.c:378:24: error: too many arguments to function ‘dupString’; expected 0, have 1
  378 |         image->title = dupString(name);
      |                        ^~~~~~~~~ ~~~~
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));
      |        ^~~~~~~~~
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));
      |        ^~~~~~
pbm.c: In function ‘pbmDump’:
pbm.c:452:6: warning: old-style function definition [-Wold-style-definition]
  452 | void pbmDump(image, options, file, 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();
      |     ^~~~~~~~~~~~~~~~~
sunraster.c: In function ‘sunRasterIdent’:
sunraster.c:69:5: warning: old-style function definition [-Wold-style-definition]
   69 | int sunRasterIdent(fullname, name)
      |     ^~~~~~~~~~~~~~
sunraster.c:75:14: error: too many arguments to function ‘zopen’; expected 0, have 1
   75 |   if (! (zf= zopen(fullname))) {
      |              ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
sunraster.c:79:11: error: too many arguments to function ‘zread’; expected 0, have 3
   79 |   switch (zread(zf, (byte *)&header, sizeof(struct rheader))) {
      |           ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
sunraster.c:98:3: error: too many arguments to function ‘zclose’; expected 0, have 1
   98 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
sunraster.c: In function ‘sunread’:
sunraster.c:105:13: warning: old-style function definition [-Wold-style-definition]
  105 | static void sunread(zf, buf, len, enc)
      |             ^~~~~~~
sunraster.c:122:13: error: too many arguments to function ‘zread’; expected 0, have 3
  122 |         if (zread(zf, &repchar, 1) != 1) {
      |             ^~~~~ ~~
vff.c: In function ‘vffLoad’:
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
sunraster.c:124:11: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  124 |           exit(1);
      |           ^~~~
vff.c:49:1: warning: old-style function definition [-Wold-style-definition]
   49 | vffLoad(fullname, name, verbose)
      | ^~~~~~~
sunraster.c:14:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   13 | #include "sunraster.h"
  +++ |+#include <stdlib.h>
   14 | 
sunraster.c:124:11: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  124 |           exit(1);
      |           ^~~~
sunraster.c:124:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
vff.c:58:17: error: too many arguments to function ‘zopen’; expected 0, have 1
   58 |      if (!(zf = zopen(fullname)))
      |                 ^~~~~ ~~~~~~~~
sunraster.c:127:15: error: too many arguments to function ‘zread’; expected 0, have 3
  127 |           if (zread(zf, &remaining, 1) != 1) {
      |               ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
In file included from vff.c:33:
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
sunraster.c:129:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  129 |             exit(1);
      |             ^~~~
sunraster.c:129:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
sunraster.c:134:17: error: too many arguments to function ‘zread’; expected 0, have 3
  134 |             if (zread(zf, &repchar, 1) != 1) {
      |                 ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vff.c:61:10: error: too many arguments to function ‘zread’; expected 0, have 3
   61 |      if (zread(zf, (unsigned char *)buf, 4) != 4) {
      |          ^~~~~ ~~
sunraster.c:136:15: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  136 |               exit(1);
      |               ^~~~
sunraster.c:136:15: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vff.c:62:11: error: too many arguments to function ‘zclose’; expected 0, have 1
   62 |           zclose(zf);
      |           ^~~~~~ ~~
sunraster.c:150:9: error: too many arguments to function ‘zread’; expected 0, have 3
  150 |     if (zread(zf, buf, len) < len) {
      |         ^~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
sunraster.c:152:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  152 |       exit(1);
      |       ^~~~
sunraster.c:152:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
vff.c:67:11: error: too many arguments to function ‘zclose’; expected 0, have 1
   67 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:71:10: error: too many arguments to function ‘readHeader’; expected 0, have 1
   71 |      if (readHeader(zf)) {
      |          ^~~~~~~~~~ ~~
vff.c:42:12: note: declared here
   42 | static int readHeader();
      |            ^~~~~~~~~~
sunraster.c: In function ‘sunRasterLoad’:
sunraster.c:157:8: warning: old-style function definition [-Wold-style-definition]
  157 | Image *sunRasterLoad(fullname, name, verbose)
      |        ^~~~~~~~~~~~~
vff.c:72:11: error: too many arguments to function ‘zclose’; expected 0, have 1
   72 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:77:11: 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));
      |        ^~~~~~
sunraster.c:175:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  175 |   if (! (zf= zopen(fullname))) {
      |              ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
vff.c:82:19: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
   82 |           image = newRGBImage(width, height, 8);
      |                   ^~~~~~~~~~~ ~~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
sunraster.c:179:11: error: too many arguments to function ‘zread’; expected 0, have 3
  179 |   switch (zread(zf, (byte *)&header, sizeof(struct rheader))) {
      |           ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
sunraster.c:182:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  182 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
sunraster.c:183:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  183 |     exit(1);
      |     ^~~~
sunraster.c:183:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
vff.c:85:11: error: too many arguments to function ‘zclose’; expected 0, have 1
   85 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:88:19: error: too many arguments to function ‘newTrueImage’; expected 0, have 2
   88 |           image = newTrueImage(width, height);
      |                   ^~~~~~~~~~~~ ~~~~~
image.h:261:8: note: declared here
  261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~~
vff.c:91:21: error: too many arguments to function ‘dupString’; expected 0, have 1
   91 |      image->title = dupString(name);
      |                     ^~~~~~~~~ ~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
vff.c:101:10: error: too many arguments to function ‘readImage’; expected 0, have 2
  101 |      if (readImage(zf, image)) {
      |          ^~~~~~~~~ ~~
vff.c:44:12: note: declared here
   44 | static int readImage();
      |            ^~~~~~~~~
sunraster.c:187:7: 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));
      |        ^~~~~~
vff.c:102:11: error: too many arguments to function ‘freeImage’; expected 0, have 1
  102 |           freeImage(image);
      |           ^~~~~~~~~ ~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
vff.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));
      |        ^~~~~~
sunraster.c:195:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  195 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:106:6: error: too many arguments to function ‘zclose’; expected 0, have 1
  106 |      zclose(zf);
      |      ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
sunraster.c:199:3: error: too many arguments to function ‘znocache’; expected 0, have 1
  199 |   znocache(zf); /* turn off caching; we don't need it anymore */
      |   ^~~~~~~~ ~~
image.h:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
vff.c: In function ‘readImage’:
vff.c:112:1: warning: old-style function definition [-Wold-style-definition]
  112 | readImage(zf, image)
      | ^~~~~~~~~
vff.c:143:20: error: too many arguments to function ‘zread’; expected 0, have 3
  143 |                if (zread(zf, op, width) != width) {
      |                    ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vff.c:153:34: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  153 |           buf = (unsigned char *)lmalloc((unsigned)linewidth);
      |                                  ^~~~~~~ ~~~~~~~~~~~~~~~~~~~
sunraster.c:207:12: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  207 |     image= newBitImage(memToVal(header.width, 4),
      |            ^~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
vff.c:159:20: error: too many arguments to function ‘zread’; expected 0, have 3
  159 |                if (zread(zf, buf, linewidth) != linewidth) {
      |                    ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vff.c:171:11: error: implicit declaration of function ‘free’ [-Wimplicit-function-declaration]
  171 |           free(buf);
      |           ^~~~
vff.c:34:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
   33 | #include "image.h"
  +++ |+#include <stdlib.h>
   34 | 
vff.c:171:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
  171 |           free(buf);
      |           ^~~~
vff.c:171:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
sunraster.c:211:12: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  211 |     image= newRGBImage(memToVal(header.width, 4),
      |            ^~~~~~~~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
vff.c: In function ‘freeheader’:
vff.c:250:11: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch]
  250 |           free(header[line]);
      |           ^~~~
vff.c:250:11: note: include ‘<stdlib.h>’ or provide a declaration of ‘free’
vff.c: In function ‘readHeader’:
vff.c:255:1: warning: old-style function definition [-Wold-style-definition]
  255 | readHeader(zf)
      | ^~~~~~~~~~
vff.c:267:25: error: too many arguments to function ‘zgetc’; expected 0, have 1
  267 |           while ((((c = zgetc(zf)) != '\f')) && (c != EOF) && (c != '=')) {
      |                         ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
sunraster.c:217:12: error: too many arguments to function ‘newTrueImage’; expected 0, have 2
  217 |     image= newTrueImage(memToVal(header.width, 4),
      |            ^~~~~~~~~~~~
image.h:261:8: note: declared here
  261 | Image *newTrueImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~~
vff.c:303:28: error: too many arguments to function ‘zgetc’; expected 0, have 1
  303 |                while ((c = zgetc(zf)) != ';') {
      |                            ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
sunraster.c:222:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  222 |     exit(1);
      |     ^~~~
sunraster.c:222:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
vff.c:315:35: error: too many arguments to function ‘zgetc’; expected 0, have 1
  315 |                          if ((c = zgetc(zf)) == EOF) {
      |                                   ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
vff.c:340:45: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  340 |                if ((header[lines] = (char *)lmalloc((unsigned)count+1)) == NULL) {
      |                                             ^~~~~~~ ~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
vff.c:352:20: error: too many arguments to function ‘zgetc’; expected 0, have 1
  352 |                c = zgetc(zf);
      |                    ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
vff.c: In function ‘vffIdent’:
vff.c:364:5: warning: old-style function definition [-Wold-style-definition]
  364 | int vffIdent(fullname, name)
      |     ^~~~~~~~
vff.c:371:17: error: too many arguments to function ‘zopen’; expected 0, have 1
  371 |      if (!(zf = zopen(fullname)))
      |                 ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
vff.c:374:10: error: too many arguments to function ‘zread’; expected 0, have 3
  374 |      if (zread(zf, (unsigned char *)buf, 4) != 4) {
      |          ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vff.c:375:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  375 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:380:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  380 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:384:10: error: too many arguments to function ‘readHeader’; expected 0, have 1
  384 |      if (readHeader(zf)) {
      |          ^~~~~~~~~~ ~~
vff.c:255:1: note: declared here
  255 | readHeader(zf)
      | ^~~~~~~~~~
vff.c:385:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  385 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vff.c:390:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  390 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
sunraster.c:260:10: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  260 |     map= lmalloc(mapsize);
      |          ^~~~~~~ ~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
sunraster.c:261:9: error: too many arguments to function ‘zread’; expected 0, have 3
  261 |     if (zread(zf, map, mapsize) < mapsize) {
      |         ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
sunraster.c:263:7: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  263 |       exit(1);
      |       ^~~~
sunraster.c:263:7: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
sunraster.c:270:9: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2
  270 |         newRGBMapData(&image->rgb, mapsize);
      |         ^~~~~~~~~~~~~ ~~~~~~~~~~~
image.h:264:8: note: declared here
  264 | void   newRGBMapData _ArgProto((RGBMap *rgb, unsigned int  size));
      |        ^~~~~~~~~~~~~
sunraster.c:278:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  278 |     lfree(map);
      |     ^~~~~ ~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
sunraster.c:287:10: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  287 |     map= lmalloc(mapsize);
      |          ^~~~~~~ ~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
sunraster.c:296:9: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2
  296 |         newRGBMapData(&image->rgb, mapsize);
      |         ^~~~~~~~~~~~~ ~~~~~~~~~~~
image.h:264:8: note: declared here
  264 | void   newRGBMapData _ArgProto((RGBMap *rgb, unsigned int  size));
      |        ^~~~~~~~~~~~~
sunraster.c:302:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  302 |     lfree(map);
      |     ^~~~~ ~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
sunraster.c:318:10: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  318 |     buf= lmalloc(image->width * (depth == 24 ? 3 : 4));
      |          ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xbitmap.c: In function ‘nextInt’:
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xbitmap.c:87:12: warning: old-style function definition [-Wold-style-definition]
   87 | static int nextInt(zf)
      |            ^~~~~~~
xbitmap.c:94:8: error: too many arguments to function ‘zgetc’; expected 0, have 1
   94 |     c= zgetc(zf);
      |        ^~~~~ ~~
In file included from xbitmap.c:18:
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
sunraster.c:356:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  356 |     lfree(buf);
      |     ^~~~~ ~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
sunraster.c:366:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  366 |   zclose(zf);
      |   ^~~~~~ ~~
xbitmap.c: In function ‘badFile’:
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xbitmap.c:119:13: warning: old-style function definition [-Wold-style-definition]
  119 | static void badFile(name)
      |             ^~~~~~~
sunraster.c:367:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  367 |   image->title= dupString(name);
      |                 ^~~~~~~~~ ~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
xbitmap.c:123:3: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  123 |   exit(1);
      |   ^~~~
xbitmap.c:19:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   18 | #include "image.h"
  +++ |+#include <stdlib.h>
   19 | 
xbitmap.c:123:3: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  123 |   exit(1);
      |   ^~~~
xbitmap.c:123:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xbitmap.c: In function ‘xbitmapLoad’:
xbitmap.c:126:8: warning: old-style function definition [-Wold-style-definition]
  126 | Image *xbitmapLoad(fullname, name, verbose)
      |        ^~~~~~~~~~~
xbitmap.c:144:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  144 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
xbitmap.c:149:10: error: too many arguments to function ‘zgets’; expected 0, have 3
  149 |   while (zgets((byte *)line, MAX_SIZE, zf)) {
      |          ^~~~~ ~~~~~~~~~~~~
image.h:301:8: note: declared here
  301 | char  *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf));
      |        ^~~~~
xbitmap.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));
      |        ^~~~~~
make: *** [<builtin>: pdsuncomp.o] Error 1
xbitmap.c:185:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  185 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xbitmap.c:188:10: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  188 |   image= newBitImage(w, h);
      |          ^~~~~~~~~~~ ~
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
xbitmap.c:195:19: error: too many arguments to function ‘dupString’; expected 0, have 1
  195 |     image->title= dupString(name_and_type);
      |                   ^~~~~~~~~ ~~~~~~~~~~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
xbitmap.c:208:11: error: too many arguments to function ‘freeImage’; expected 0, have 1
  208 |           freeImage(image);
      |           ^~~~~~~~~ ~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
xbitmap.c:209:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  209 |           zclose(zf);
      |           ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xbitmap.c:238:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  238 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xbitmap.c: In function ‘xbitmapIdent’:
xbitmap.c:246:5: warning: old-style function definition [-Wold-style-definition]
  246 | int xbitmapIdent(fullname, name)
      |     ^~~~~~~~~~~~
xbitmap.c:251:5: error: too many arguments to function ‘freeImage’; expected 0, have 1
  251 |     freeImage(image);
      |     ^~~~~~~~~ ~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
make: *** [<builtin>: pcx.o] Error 1
make: *** [<builtin>: gif.o] Error 1
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)
      |       ^~~~~ ~~~
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));
      |        ^~~~~
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)
      |         ^~~~~ ~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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)
      |         ^~~~~ ~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
mac.c: In function ‘tellAboutImage’:
mac.c:144:13: warning: old-style function definition [-Wold-style-definition]
  144 | static void tellAboutImage(name)
      |             ^~~~~~~~~~~~~~
mac.c: In function ‘macLoad’:
mac.c:151:8: warning: old-style function definition [-Wold-style-definition]
  151 | Image *macLoad(fullname, name, verbose)
      |        ^~~~~~~
mac.c:162:15: error: too many arguments to function ‘zopen’; expected 0, have 1
  162 |   if (! (zf = zopen(fullname)))
      |               ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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));
      |        ^~~~~
make: *** [<builtin>: pbm.o] Error 1
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));
      |        ^~~~~
make: *** [<builtin>: vff.o] Error 1
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));
      |        ^~~~~~
make: *** [<builtin>: xbitmap.o] Error 1
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)
      |            ^~~~~~~~~~~~~~~~
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))
      |       ^~~~~ ~~~
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));
      |        ^~~~~
fbm.c:129:24: error: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
  129 |   fbmin_img_width    = atoi(phdr.cols);
      |                        ^~~~
make: *** [<builtin>: sunraster.o] Error 1
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)
      |             ^~~~~~~~~~~~~~
fbm.c: In function ‘fbmLoad’:
vicar.c:18:11: error: conflicting types for ‘fopen’; have ‘FILE *(void)’
   18 | FILE *fp,*fopen();
      |           ^~~~~
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));
      |        ^~~~~
In file included from /usr/include/features.h:540:
/usr/include/stdio.h:283:14: note: previous declaration of ‘fopen’ with type ‘FILE *(const char * restrict,  const char * restrict)’
  283 | extern FILE *__REDIRECT (fopen, (const char *__restrict __filename,
      |              ^~~~~~~~~~
rle.c: In function ‘rleIdent’:
fbm.c:213:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  213 |     zclose(zf);
      |     ^~~~~~ ~~
vicar.c: In function ‘vicarIdent’:
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rle.c:56:5: warning: old-style function definition [-Wold-style-definition]
   56 | int rleIdent(fullname, name)
      |     ^~~~~~~~
vicar.c:34:14: warning: old-style function definition [-Wold-style-definition]
   34 | unsigned int vicarIdent (fullname, name)
      |              ^~~~~~~~~~
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));
      |        ^~~~~~~~
vicar.c:41:16: error: too many arguments to function ‘fopen’; expected 0, have 2
   41 |   if ( ! (fp = fopen(fullname,"r")) )
      |                ^~~~~ ~~~~~~~~
rle.c:64:13: error: too many arguments to function ‘zopen’; expected 0, have 1
   64 |   rlefile = zopen(fullname);
      |             ^~~~~ ~~~~~~~~
vicar.c:18:11: note: declared here
   18 | FILE *fp,*fopen();
      |           ^~~~~
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));
      |        ^~~~~~~
In file included from rle.c:15:
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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));
      |        ^~~~~
vicar.c:56:8: error: too many arguments to function ‘fopen’; expected 0, have 2
   56 |   fp = fopen(fullname,"r");
      |        ^~~~~ ~~~~~~~~
vicar.c:18:11: note: declared here
   18 | FILE *fp,*fopen();
      |           ^~~~~
xpixmap.c: In function ‘corrupted’:
xpixmap.c:27:13: warning: old-style function definition [-Wold-style-definition]
   27 | static void corrupted(fullname, zf)
      |             ^~~~~~~~~
rle.c:74:3: error: too many arguments to function ‘zclose’; expected 0, have 1
   74 |   zclose(rlefile);
      |   ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:31:3: error: too many arguments to function ‘zclose’; expected 0, have 1
   31 |   zclose(zf);
      |   ^~~~~~ ~~
fbm.c:246:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  246 |     cm = (unsigned char *) lmalloc(map_size);
      |                            ^~~~~~~ ~~~~~~~~
vicar.c: In function ‘vicarHeader’:
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
vicar.c:72:13: warning: old-style function definition [-Wold-style-definition]
   72 | static void vicarHeader(ptr)
      |             ^~~~~~~~~~~
In file included from xloadimage.h:15:
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:33:3: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
   33 |   exit(1);
      |   ^~~~
xpixmap.c:18:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   17 | #include "xloadimage.h"
  +++ |+#include <stdlib.h>
   18 | 
xpixmap.c:33:3: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
   33 |   exit(1);
      |   ^~~~
xpixmap.c:33:3: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xpixmap.c: In function ‘xpixmapLoad’:
xpixmap.c:36:8: warning: old-style function definition [-Wold-style-definition]
   36 | Image *xpixmapLoad(fullname, name, verbose)
      |        ^~~~~~~~~~~
vicar.c: In function ‘vicarLoad’:
vicar.c:106:8: warning: old-style function definition [-Wold-style-definition]
  106 | Image *vicarLoad(fullname, name, verbose)
      |        ^~~~~~~~~
fbm.c:270:11: error: too many arguments to function ‘zread’; expected 0, have 3
  270 |       if (zread(ins, pixptr, rowlen) != rowlen) {
      |           ^~~~~ ~~~
xpixmap.c:59:14: error: too many arguments to function ‘zopen’; expected 0, have 1
   59 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
vicar.c:123:11: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  123 |   image = newRGBImage( SAMPLES , LINES , DEPTH );
      |           ^~~~~~~~~~~
fbm.c:272:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  272 |         exit(1);
      |         ^~~~
rle.c: In function ‘rleLoad’:
fbm.c:22:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   21 | # include "fbm.h"
  +++ |+#include <stdlib.h>
   22 | 
rle.c:140:8: warning: old-style function definition [-Wold-style-definition]
  140 | Image *rleLoad(fullname,name,verbose)
      |        ^~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
xpixmap.c:68:11: error: too many arguments to function ‘zgets’; expected 0, have 3
   68 |     if (! zgets((byte *)buf, BUFSIZ - 1, zf)) {
      |           ^~~~~ ~~~~~~~~~~~
image.h:301:8: note: declared here
  301 | char  *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf));
      |        ^~~~~
In file included from vicar.c:15:
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
fbm.c:278:5: error: too many arguments to function ‘lfree’; expected 0, have 1
  278 |     lfree(cm);
      |     ^~~~~ ~~
xpixmap.c:69:7: error: too many arguments to function ‘zclose’; expected 0, have 1
   69 |       zclose(zf);
      |       ^~~~~~ ~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rle.c:156:13: error: too many arguments to function ‘zopen’; expected 0, have 1
  156 |   rlefile = zopen(fullname);
      |             ^~~~~ ~~~~~~~~
fbm.c:281:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  281 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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));
      |        ^~~~~~~~~
xpixmap.c:74:9: error: too many arguments to function ‘zclose’; expected 0, have 1
   74 |         zclose(zf);
      |         ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rle.c:165:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  165 |     zclose(rlefile);
      |     ^~~~~~ ~~~~~~~
fbm.c:286:19: error: too many arguments to function ‘dupString’; expected 0, have 1
  286 |     image->title= dupString(name);
      |                   ^~~~~~~~~ ~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vicar.c:127:18: error: too many arguments to function ‘dupString’; expected 0, have 1
  127 |   image->title = dupString(name);
      |                  ^~~~~~~~~ ~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
vicar.c:137:8: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  137 |   map= lmalloc(mapsize);
      |        ^~~~~~~ ~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rle.c:177:17: error: too many arguments to function ‘rle_getcom’; expected 0, have 2
  177 |       if ( (v = rle_getcom( "image_gamma", &sv_globals )) != NULL )
      |                 ^~~~~~~~~~  ~~~~~~~~~~~~~
fbm.c: In function ‘fbmIdent’:
fbm.c:291:5: warning: old-style function definition [-Wold-style-definition]
  291 | int fbmIdent(fullname, name)
      |     ^~~~~~~~
In file included from rle.c:16:
rle.h:154:1: note: declared here
  154 | rle_getcom();
      | ^~~~~~~~~~
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));
      |        ^~~~~
vicar.c:146:7: error: too many arguments to function ‘newRGBMapData’; expected 0, have 2
  146 |       newRGBMapData(&image->rgb, mapsize);
      |       ^~~~~~~~~~~~~ ~~~~~~~~~~~
image.h:264:8: note: declared here
  264 | void   newRGBMapData _ArgProto((RGBMap *rgb, unsigned int  size));
      |        ^~~~~~~~~~~~~
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));
      |        ^~~~~~
vicar.c:152:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  152 |   lfree(map);
      |   ^~~~~ ~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
xpixmap.c:113:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  113 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
vicar.c:161:13: error: too many arguments to function ‘zopen’; expected 0, have 1
  161 |   if ( !(zf=zopen(fullname))) {
      |             ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
xpixmap.c:119:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  119 |     imagetitle= dupString(what);
      |                 ^~~~~~~~~ ~~~~
vicar.c:163:6: error: too many arguments to function ‘zclose’; expected 0, have 1
  163 |      zclose(zf);
      |      ^~~~~~ ~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:123:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  123 |     imagetitle= dupString(name);
      |                 ^~~~~~~~~ ~~~~
vicar.c:164:6: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  164 |      exit(1);
      |      ^~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
vicar.c:17:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   16 | #include <sys/types.h>
  +++ |+#include <stdlib.h>
   17 | 
vicar.c:164:6: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  164 |      exit(1);
      |      ^~~~
vicar.c:164:6: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xpixmap.c:132:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  132 |   image= newRGBImage(w, h, depth);
      |          ^~~~~~~~~~~ ~
vicar.c:168:5: error: too many arguments to function ‘zread’; expected 0, have 3
  168 |     zread(zf,lineptr,LBLSIZE);                     /* dump label */
      |     ^~~~~ ~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xpixmap.c:134:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  134 |   image->title= dupString(imagetitle);
      |                 ^~~~~~~~~ ~~~~~~~~~~
vicar.c:172:5: error: too many arguments to function ‘zread’; expected 0, have 3
  172 |     zread(zf,lineptr,LBLSIZE);                     /* skip label */
      |     ^~~~~ ~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xpixmap.c:139:20: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  139 |   ctable= (char **)lmalloc(sizeof(char *) * ncolors);
      |                    ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~
vicar.c:175:7: error: too many arguments to function ‘zread’; expected 0, have 3
  175 |   if (zread(zf,lineptr,size) != size)
      |       ^~~~~ ~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
vicar.c:177:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  177 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:146:28: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  146 |     *(ctable + a)= (char *)lmalloc(cpp);
      |                            ^~~~~~~ ~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xpixmap.c:147:17: error: too many arguments to function ‘zgetc’; expected 0, have 1
  147 |     while (((c= zgetc(zf)) != EOF) && (c != '"'))
      |                 ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:152:15: error: too many arguments to function ‘zgetc’; expected 0, have 1
  152 |       if ((c= zgetc(zf)) == '\\')
      |               ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:153:12: error: too many arguments to function ‘zgetc’; expected 0, have 1
  153 |         c= zgetc(zf);
      |            ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:158:14: error: too many arguments to function ‘zgetc’; expected 0, have 1
  158 |     if (((c= zgetc(zf)) == EOF) || (c != '"'))
      |              ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:164:17: error: too many arguments to function ‘zgetc’; expected 0, have 1
  164 |     while (((c= zgetc(zf)) != EOF) && (c != '"'))
      |                 ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:168:21: error: too many arguments to function ‘zgetc’; expected 0, have 1
  168 |     for (b= 0; ((c= zgetc(zf)) != EOF) && (c != '"'); b++) {
      |                     ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rle.c:179:21: error: implicit declaration of function ‘atof’ [-Wimplicit-function-declaration]
  179 |           img_gam = atof( v );
      |                     ^~~~
make: *** [<builtin>: mac.o] Error 1
xpixmap.c:170:12: error: too many arguments to function ‘zgetc’; expected 0, have 1
  170 |         c= zgetc(zf);
      |            ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rle.c:186:22: error: too many arguments to function ‘rle_getcom’; expected 0, have 2
  186 |       else if ( (v = rle_getcom( "display_gamma", &sv_globals )) != NULL )
      |                      ^~~~~~~~~~  ~~~~~~~~~~~~~~~
rle.h:154:1: note: declared here
  154 | rle_getcom();
      | ^~~~~~~~~~
xpixmap.c:180:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  180 |         exit(1);
      |         ^~~~
xpixmap.c:180:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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)
      |              ^~~~~~~~~~~~
xpixmap.c:189:11: error: too many arguments to function ‘zgets’; expected 0, have 3
  189 |     if (! zgets((byte *)buf, BUFSIZ - 1, zf))
      |           ^~~~~ ~~~~~~~~~~~
image.h:301:8: note: declared here
  301 | char  *zgets _ArgProto((byte *buf, unsigned int size, ZFILE *zf));
      |        ^~~~~
rle.c:223:7: error: too many arguments to function ‘zclose’; expected 0, have 1
  223 |       zclose(rlefile);
      |       ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:207:17: error: too many arguments to function ‘zgetc’; expected 0, have 1
  207 |     while (((c= zgetc(zf)) != EOF) && (c != '"'))
      |                 ^~~~~ ~~
rle.c:238:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  238 |           zclose(rlefile);
      |           ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rle.c:254:11: error: too many arguments to function ‘zclose’; expected 0, have 1
  254 |           zclose(rlefile);
      |           ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:211:17: error: too many arguments to function ‘zgetc’; expected 0, have 1
  211 |         if ((c= zgetc(zf)) == '\\')
      |                 ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rle.c:260:7: error: too many arguments to function ‘zclose’; expected 0, have 1
  260 |       zclose(rlefile);
      |       ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xpixmap.c:212:14: error: too many arguments to function ‘zgetc’; expected 0, have 1
  212 |           c= zgetc(zf);
      |              ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xpixmap.c:221:9: error: too many arguments to function ‘zclose’; expected 0, have 1
  221 |         zclose(zf);
      |         ^~~~~~ ~~
mcidas.c: In function ‘vhtonl’:
mcidas.c:76:1: warning: old-style function definition [-Wold-style-definition]
   76 | vhtonl(lend)
      | ^~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rle.c:287:3: error: too many arguments to function ‘znocache’; expected 0, have 1
  287 |   znocache(rlefile);
      |   ^~~~~~~~ ~~~~~~~
image.h:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
xpixmap.c:223:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  223 |         exit(1);
      |         ^~~~
xpixmap.c:223:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
mcidas.c: In function ‘babble’:
rle.c:296:11: error: too many arguments to function ‘buildmap’; expected 0, have 3
  296 |   fmaps = buildmap(&sv_globals,sv_globals.sv_ncolors,img_gam);
      |           ^~~~~~~~ ~~~~~~~~~~~
rle.h:143:1: note: declared here
  143 | buildmap();
      | ^~~~~~~~
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),
      |          ^~~~~~~~~ ~~~~~~~~~~
rle.c:303:29: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  303 |   scan = (unsigned char **) lmalloc( (sv_globals.sv_ncolors +
      |                             ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~
  304 |                                       sv_globals.sv_alpha) *
      |                                       ~~~~~~~~~~~~~~~~~~~~~~
  305 |                                     sizeof( unsigned char * ) );
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~
mcidas.c:10:7: note: declared here
   10 | char *mc_sensor();
      |       ^~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
mcidas.c: In function ‘swap_bytes’:
mcidas.c:108:13: warning: old-style function definition [-Wold-style-definition]
  108 | static void swap_bytes(dir)
      |             ^~~~~~~~~~
rle.c:307:32: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  307 |     scan[i] = (unsigned char *)lmalloc(x_len);
      |                                ^~~~~~~ ~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rle.c:313:11: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  313 |   image = newRGBImage(x_len,y_len,depth);
      |           ^~~~~~~~~~~ ~~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
mcidas.c: In function ‘mcidasIdent’:
rle.c:314:18: error: too many arguments to function ‘dupString’; expected 0, have 1
  314 |   image->title = dupString(name);
      |                  ^~~~~~~~~ ~~~~
mcidas.c:122:5: warning: old-style function definition [-Wold-style-definition]
  122 | int mcidasIdent(fullname, name)
      |     ^~~~~~~~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
xpixmap.c:228:13: error: too many arguments to function ‘zgetc’; expected 0, have 1
  228 |     if ((c= zgetc(zf)) != '"')
      |             ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
mcidas.c:128:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  128 |   if (! (zf= zopen(fullname))) {
      |              ^~~~~ ~~~~~~~~
xpixmap.c:231:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  231 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rle.c:323:7: error: too many arguments to function ‘dithermap’; expected 0, have 6
  323 |       dithermap( 6, disp_gam, colmap, divN, modN, magic );
      |       ^~~~~~~~~  ~
rle.c:28:6: note: declared here
   28 | void dithermap();
      |      ^~~~~~~~~
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));
      |        ^~~~~
xpixmap.c: In function ‘xpixmapIdent’:
xpixmap.c:235:5: warning: old-style function definition [-Wold-style-definition]
  235 | int xpixmapIdent(fullname, name)
      |     ^~~~~~~~~~~~
xpixmap.c:240:5: error: too many arguments to function ‘freeImage’; expected 0, have 1
  240 |     freeImage(image);
      |     ^~~~~~~~~ ~~~~~
image.h:262:8: note: declared here
  262 | void   freeImage _ArgProto((Image *image));
      |        ^~~~~~~~~
rle.c:390:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  390 |   zclose(rlefile);
      |   ^~~~~~ ~~~~~~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
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’:
rle.c: In function ‘bw_m_line’:
mcidas.c:158:8: warning: old-style function definition [-Wold-style-definition]
  158 | Image *mcidasLoad(fullname, name, verbose)
      |        ^~~~~~~~~~
rle.c:398:6: warning: old-style function definition [-Wold-style-definition]
  398 | void bw_m_line(dp,number)
      |      ^~~~~~~~~
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));
      |        ^~~~~
rle.c: In function ‘c_m_line’:
rle.c:412:6: warning: old-style function definition [-Wold-style-definition]
  412 | void c_m_line(dp,number,line)
      |      ^~~~~~~~
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 ‘<stdlib.h>’ or provide a declaration of ‘exit’
    8 | #include "mcidas.h"
  +++ |+#include <stdlib.h>
    9 | 
mcidas.c:175:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  175 |     exit(1);
      |     ^~~~
mcidas.c:175:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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));
      |        ^~~~~~
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));
      |        ^~~~~~
mcidas.c:194:3: error: too many arguments to function ‘znocache’; expected 0, have 1
  194 |   znocache(zf);
      |   ^~~~~~~~ ~~
image.h:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
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));
      |        ^~~~~
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,
      |        ^~~~~~~~~~~
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));
      |        ^~~~~
mcidas.c:222:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  222 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
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));
      |        ^~~~~~~~~
make: *** [<builtin>: vicar.o] Error 1
make: *** [<builtin>: fbm.o] Error 1
make: *** [<builtin>: xpixmap.o] Error 1
make: *** [<builtin>: mcidas.o] Error 1
make: *** [<builtin>: rle.o] Error 1
rlelib.c: In function ‘NullputEof’:
rlelib.c:250:1: warning: old-style function definition [-Wold-style-definition]
  250 | NullputEof(globals)
      | ^~~~~~~~~~
rlelib.c:252:1: error: number of arguments doesn’t match prototype
  252 | {
      | ^
rlelib.c:211:9: error: prototype declaration
  211 | void    NullputEof();
      |         ^~~~~~~~~~
rlelib.c: In function ‘RunSetup’:
xwd.c: In function ‘isXWD’:
rlelib.c:416:1: warning: old-style function definition [-Wold-style-definition]
  416 | RunSetup(globals)
      | ^~~~~~~~
rlelib.c:418:1: error: number of arguments doesn’t match prototype
  418 | {
      | ^
rlelib.c:201:9: error: prototype declaration
  201 | void    RunSetup(),
      |         ^~~~~~~~
rlelib.c: In function ‘RunSkipBlankLines’:
xwd.c:25:12: warning: old-style function definition [-Wold-style-definition]
   25 | static int isXWD(name, zf, header, verbose)
      |            ^~~~~
rlelib.c:426:1: warning: old-style function definition [-Wold-style-definition]
  426 | RunSkipBlankLines(nblank, globals)
      | ^~~~~~~~~~~~~~~~~
rlelib.c:426:1: error: type of ‘nblank’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:428:1: error: number of arguments doesn’t match prototype
  428 | {
      | ^
rlelib.c:202:17: error: prototype declaration
  202 |                 RunSkipBlankLines(),
      |                 ^~~~~~~~~~~~~~~~~
rlelib.c: In function ‘RunSetColor’:
rlelib.c:437:1: warning: old-style function definition [-Wold-style-definition]
  437 | RunSetColor(c, globals)
      | ^~~~~~~~~~~
rlelib.c:437:1: error: type of ‘c’ defaults to ‘int’ [-Wimplicit-int]
xwd.c:33:7: error: too many arguments to function ‘zread’; expected 0, have 3
   33 |   if (zread(zf, (byte *)&gh, sizeof(GenericXWDHeader)) != sizeof(GenericXWDHeader))
      |       ^~~~~ ~~
rlelib.c:439:1: error: number of arguments doesn’t match prototype
  439 | {
      | ^
rlelib.c:203:17: error: prototype declaration
  203 |                 RunSetColor(),
      |                 ^~~~~~~~~~~
rlelib.c: In function ‘RunSkipPixels’:
rlelib.c:449:1: warning: old-style function definition [-Wold-style-definition]
  449 | RunSkipPixels(nskip, last, wasrun, globals)
      | ^~~~~~~~~~~~~
rlelib.c:449:1: error: type of ‘nskip’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:449:1: error: type of ‘last’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:449:1: error: type of ‘wasrun’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:451:1: error: number of arguments doesn’t match prototype
  451 | {
      | ^
In file included from xloadimage.h:15:
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:204:17: error: prototype declaration
  204 |                 RunSkipPixels(),
      |                 ^~~~~~~~~~~~~
rlelib.c: In function ‘RunNewScanLine’:
rlelib.c:460:1: warning: old-style function definition [-Wold-style-definition]
  460 | RunNewScanLine(flag, globals)
      | ^~~~~~~~~~~~~~
rlelib.c:460:1: error: type of ‘flag’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:462:1: error: number of arguments doesn’t match prototype
  462 | {
      | ^
rlelib.c:205:17: error: prototype declaration
  205 |                 RunNewScanLine(),
      |                 ^~~~~~~~~~~~~~
rlelib.c: In function ‘Runputdata’:
rlelib.c:470:1: warning: old-style function definition [-Wold-style-definition]
  470 | Runputdata(buf, n, globals)
      | ^~~~~~~~~~
rlelib.c:470:1: error: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:473:1: error: number of arguments doesn’t match prototype
  473 | {
      | ^
rlelib.c:206:17: error: prototype declaration
  206 |                 Runputdata(),
      |                 ^~~~~~~~~~
rlelib.c: In function ‘Runputrun’:
rlelib.c:483:1: warning: old-style function definition [-Wold-style-definition]
  483 | Runputrun(color, n, last, globals)
      | ^~~~~~~~~
rlelib.c:483:1: error: type of ‘color’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:483:1: error: type of ‘n’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:483:1: error: type of ‘last’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:485:1: error: number of arguments doesn’t match prototype
  485 | {
      | ^
rlelib.c:207:17: error: prototype declaration
  207 |                 Runputrun(),
      |                 ^~~~~~~~~
rlelib.c: In function ‘RunputEof’:
rlelib.c:494:1: warning: old-style function definition [-Wold-style-definition]
  494 | RunputEof( globals )
      | ^~~~~~~~~
rlelib.c:496:1: error: number of arguments doesn’t match prototype
  496 | {
      | ^
rlelib.c:208:17: error: prototype declaration
  208 |                 RunputEof();
      |                 ^~~~~~~~~
rlelib.c: In function ‘DefaultBlockHook’:
rlelib.c:501:1: warning: old-style function definition [-Wold-style-definition]
  501 | DefaultBlockHook(globals)
      | ^~~~~~~~~~~~~~~~
rlelib.c:503:1: error: number of arguments doesn’t match prototype
  503 | {
      | ^
rlelib.c:210:9: error: prototype declaration
  210 | void    DefaultBlockHook();
      |         ^~~~~~~~~~~~~~~~
rlelib.c: In function ‘buildmap’:
rlelib.c:557:1: warning: old-style function definition [-Wold-style-definition]
  557 | buildmap( globals, minmap, gamma )
      | ^~~~~~~~
rlelib.c:561:1: error: number of arguments doesn’t match prototype
  561 | {
      | ^
In file included from rlelib.c:18:
rle.h:143:1: error: prototype declaration
  143 | buildmap();
      | ^~~~~~~~
rlelib.c:569:30: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  569 |         cmap = (rle_pixel **)lmalloc( nmap * sizeof(rle_pixel *) );
      |                              ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from rlelib.c:17:
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:570:32: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  570 |         cmap[0] = (rle_pixel *)lmalloc( 256 * sizeof(rle_pixel) );
      |                                ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:591:34: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  591 |             cmap = (rle_pixel **)lmalloc( nmap * sizeof(rle_pixel *) );
      |                                  ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:592:36: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  592 |             cmap[0] = (rle_pixel *)lmalloc( maplen * sizeof(rle_pixel) );
      |                                    ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:605:34: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  605 |             cmap = (rle_pixel **)lmalloc( nmap * sizeof(rle_pixel *) );
      |                                  ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:608:40: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  608 |                 cmap[j] = (rle_pixel *)lmalloc( maplen * sizeof(rle_pixel) );
      |                                        ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:623:34: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  623 |             cmap = (rle_pixel **)lmalloc( nmap * sizeof(rle_pixel *) );
      |                                  ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:626:40: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  626 |                 cmap[j] = (rle_pixel *)lmalloc( maplen * sizeof(rle_pixel) );
      |                                        ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:642:31: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  642 |         gammap = (rle_pixel *)lmalloc( 256 * sizeof(rle_pixel) );
      |                               ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c: In function ‘match’:
rlelib.c:707:1: warning: old-style function definition [-Wold-style-definition]
  707 | match( n, v )
      | ^~~~~
rlelib.c: In function ‘rle_getcom’:
rlelib.c:738:1: warning: old-style function definition [-Wold-style-definition]
  738 | rle_getcom( name, globals )
      | ^~~~~~~~~~
rlelib.c:741:1: error: number of arguments doesn’t match prototype
  741 | {
      | ^
rle.h:154:1: error: prototype declaration
  154 | rle_getcom();
      | ^~~~~~~~~~
rlelib.c: In function ‘rle_get_setup’:
rlelib.c:824:5: warning: old-style function definition [-Wold-style-definition]
  824 | int rle_get_setup( globals )
      |     ^~~~~~~~~~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:835:5: note: in expansion of macro ‘BREAD’
  835 |     BREAD( short, magic, sizeof magic );
      |     ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:841:5: note: in expansion of macro ‘BREAD’
  841 |     BREAD( struct XtndRsetup, setup, SETUPSIZE );  /* assume VAX packing */
      |     ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:79:5: error: too many arguments to function ‘zgetc’; expected 0, have 1
   79 |     zgetc(zf);
      |     ^~~~~ ~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xwd.c:131:3: error: too many arguments to function ‘znocache’; expected 0, have 1
  131 |   znocache(zf);
      |   ^~~~~~~~ ~~
image.h:303:8: note: declared here
  303 | void   znocache _ArgProto((ZFILE *zf));
      |        ^~~~~~~~
xwd.c: In function ‘xwdIdent’:
xwd.c:135:5: warning: old-style function definition [-Wold-style-definition]
  135 | int xwdIdent(fullname, name)
      |     ^~~~~~~~
xwd.c:141:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  141 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
xwd.c:144:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  144 |   zclose(zf);
      |   ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xwd.c: In function ‘loadXYBitmap’:
xwd.c:148:15: warning: old-style function definition [-Wold-style-definition]
  148 | static Image *loadXYBitmap(fullname, zf, header)
      |               ^~~~~~~~~~~~
xwd.c:165:10: error: too many arguments to function ‘newBitImage’; expected 0, have 2
  165 |   image= newBitImage(header.pixmap_width, header.pixmap_height);
      |          ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
image.h:258:8: note: declared here
  258 | Image *newBitImage _ArgProto((unsigned int width, unsigned int height));
      |        ^~~~~~~~~~~
xwd.c:185:17: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  185 |   line= (byte *)lmalloc(dlinelen);
      |                 ^~~~~~~ ~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:188:9: error: too many arguments to function ‘zread’; expected 0, have 3
  188 |     if (zread(zf, (byte *)line, dlinelen) != dlinelen) {
      |         ^~~~~ ~~
rlelib.c:856:39: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  856 |         globals->sv_bg_color = (int *)lmalloc(
      |                                       ^~~~~~~
  857 |             (unsigned)(sizeof(int) * setup.h_ncolors) );
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:192:7: error: too many arguments to function ‘lfree’; expected 0, have 1
  192 |       lfree(line);
      |       ^~~~~ ~~~~
rlelib.c:858:33: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  858 |         bg_color = (rle_pixel *)lmalloc(
      |                                 ^~~~~~~
  859 |             (unsigned)(1 + (setup.h_ncolors / 2) * 2) );
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
rlelib.c:860:9: error: too many arguments to function ‘zread’; expected 0, have 3
  860 |         zread( infile, (byte *)bg_color, 1 + (setup.h_ncolors / 2) * 2 );
      |         ^~~~~  ~~~~~~
xwd.c:199:7: error: too many arguments to function ‘flipBits’; expected 0, have 2
  199 |       flipBits(line, dlinelen);
      |       ^~~~~~~~ ~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:295:15: note: declared here
  295 | void          flipBits _ArgProto((byte *p, unsigned int len));
      |               ^~~~~~~~
rlelib.c:863:9: error: too many arguments to function ‘lfree’; expected 0, have 1
  863 |         lfree( bg_color );
      |         ^~~~~  ~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
rlelib.c:866:9: error: too many arguments to function ‘zgetc’; expected 0, have 1
  866 |         zgetc( infile );                        /* skip filler byte */
      |         ^~~~~  ~~~~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:185:51: note: in definition of macro ‘valToMem’
  185 |   ((LEN) == 1 ? (*(byte *)(PTR) = ((unsigned int)(VAL) & 0xff)) : \
      |                                                   ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:186:55: note: in definition of macro ‘valToMem’
  186 |    ((LEN) == 3 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                       ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:187:61: note: in definition of macro ‘valToMem’
  187 |                   ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                             ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:188:61: note: in definition of macro ‘valToMem’
  188 |                   ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                             ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:189:56: note: in definition of macro ‘valToMem’
  189 |     ((LEN) == 2 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                        ^~~
rlelib.c:893:39: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  893 |         globals->sv_cmap = (rle_map *)lmalloc(
      |                                       ^~~~~~~
  894 |             (unsigned)(sizeof(rle_map) * maplen) );
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:190:62: note: in definition of macro ‘valToMem’
  190 |                    ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                              ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:191:43: note: in definition of macro ‘valToMem’
  191 |      (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff000000) >> 24), \
      |                                           ^~~
rlelib.c:902:9: error: too many arguments to function ‘zread’; expected 0, have 3
  902 |         zread( infile, (byte *)globals->sv_cmap, sizeof(short) * maplen );
      |         ^~~~~  ~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:192:49: note: in definition of macro ‘valToMem’
  192 |       ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                 ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:193:49: note: in definition of macro ‘valToMem’
  193 |       ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                 ^~~
xwd.c:202:16: error: too many arguments to function ‘loader’; expected 0, have 2
  202 |       valToMem(loader(dptr, unit), iptr, unit);
      |                ^~~~~~ ~~~~
image.h:194:49: note: in definition of macro ‘valToMem’
  194 |       ((*((byte *)(PTR) + 3)) = ((unsigned int)(VAL) & 0xff))))))
      |                                                 ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:185:51: note: in definition of macro ‘valToMem’
  185 |   ((LEN) == 1 ? (*(byte *)(PTR) = ((unsigned int)(VAL) & 0xff)) : \
      |                                                   ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:186:55: note: in definition of macro ‘valToMem’
  186 |    ((LEN) == 3 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                       ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:187:61: note: in definition of macro ‘valToMem’
  187 |                   ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                             ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:188:61: note: in definition of macro ‘valToMem’
  188 |                   ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                             ^~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:917:9: note: in expansion of macro ‘BREAD’
  917 |         BREAD( short, comlen, sizeof comlen );  /* get comment length */
      |         ^~~~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:189:56: note: in definition of macro ‘valToMem’
  189 |     ((LEN) == 2 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                        ^~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:190:62: note: in definition of macro ‘valToMem’
  190 |                    ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                              ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:191:43: note: in definition of macro ‘valToMem’
  191 |      (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff000000) >> 24), \
      |                                           ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:192:49: note: in definition of macro ‘valToMem’
  192 |       ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                 ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:193:49: note: in definition of macro ‘valToMem’
  193 |       ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                 ^~~
xwd.c:210:14: error: too many arguments to function ‘loader’; expected 0, have 2
  210 |     valToMem(loader(dptr, unit) >> shift, iptr, trailer);
      |              ^~~~~~ ~~~~
image.h:194:49: note: in definition of macro ‘valToMem’
  194 |       ((*((byte *)(PTR) + 3)) = ((unsigned int)(VAL) & 0xff))))))
      |                                                 ^~~
rlelib.c:920:31: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  920 |         comment_buf = (char *)lmalloc( (unsigned) evenlen );
      |                               ^~~~~~~  ~~~~~~~~~~~~~~~~~~
xwd.c:213:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  213 |   lfree(line);
      |   ^~~~~ ~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c: In function ‘loadXYPixmap’:
xwd.c:221:15: warning: old-style function definition [-Wold-style-definition]
  221 | static Image *loadXYPixmap(fullname, zf, header)
      |               ^~~~~~~~~~~~
rlelib.c:928:9: error: too many arguments to function ‘zread’; expected 0, have 3
  928 |         zread( infile, (byte *)comment_buf, evenlen );
      |         ^~~~~  ~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:242:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  242 |   image= newRGBImage(header.pixmap_width, header.pixmap_height,
      |          ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
rlelib.c:936:22: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  936 |             (char **)lmalloc( (unsigned)(i * sizeof(char *)) );
      |                      ^~~~~~~  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:262:17: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  262 |   line= (byte *)lmalloc(dlinelen);
      |                 ^~~~~~~ ~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:273:11: error: too many arguments to function ‘zread’; expected 0, have 3
  273 |       if (zread(zf, (byte *)line, dlinelen) != dlinelen) {
      |           ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c: In function ‘rle_get_error’:
xwd.c:277:9: error: too many arguments to function ‘lfree’; expected 0, have 1
  277 |         lfree(line);
      |         ^~~~~ ~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
rlelib.c:984:5: warning: old-style function definition [-Wold-style-definition]
  984 | int rle_get_error( code, pgmname, fname )
      |     ^~~~~~~~~~~~~
xwd.c:285:9: error: too many arguments to function ‘flipBits’; expected 0, have 2
  285 |         flipBits(line, dlinelen);
      |         ^~~~~~~~ ~~~~
image.h:295:15: note: declared here
  295 | void          flipBits _ArgProto((byte *p, unsigned int len));
      |               ^~~~~~~~
xwd.c:288:18: error: too many arguments to function ‘loader’; expected 0, have 2
  288 |         pixvals= loader(dptr, unit);
      |                  ^~~~~~ ~~~~
rlelib.c: In function ‘rle_get_setup_ok’:
rlelib.c:1042:1: warning: old-style function definition [-Wold-style-definition]
 1042 | rle_get_setup_ok( globals, prog_name, file_name )
      | ^~~~~~~~~~~~~~~~
rlelib.c:1054:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
 1054 |         exit( code );
      |         ^~~~
rlelib.c:20:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   19 | #include "rlelib.h"
  +++ |+#include <stdlib.h>
   20 | 
rlelib.c:1054:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
 1054 |         exit( code );
      |         ^~~~
rlelib.c:1054:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
rlelib.c: In function ‘rle_debug’:
rlelib.c:1072:1: warning: old-style function definition [-Wold-style-definition]
 1072 | rle_debug( on_off )
      | ^~~~~~~~~
rlelib.c: In function ‘rle_getrow’:
rlelib.c:1104:5: warning: old-style function definition [-Wold-style-definition]
 1104 | int rle_getrow( globals, scanline )
      |     ^~~~~~~~~~
rlelib.c:1120:13: error: too many arguments to function ‘bfill’; expected 0, have 3
 1120 |             bfill( (char *)scanline[-1], globals->sv_xmax + 1, 0 );
      |             ^~~~~  ~~~~~~~~~~~~~~~~~~~~
rlelib.c:803:17: note: declared here
  803 | static void     bfill();
      |                 ^~~~~
rlelib.c:1123:17: error: too many arguments to function ‘bfill’; expected 0, have 3
 1123 |                 bfill( (char *)scanline[nc], globals->sv_xmax+1,
      |                 ^~~~~  ~~~~~~~~~~~~~~~~~~~~
rlelib.c:803:17: note: declared here
  803 | static void     bfill();
      |                 ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1149:9: note: in expansion of macro ‘BREAD’
 1149 |         BREAD(struct inst, inst, 2 );
      |         ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1161:17: note: in expansion of macro ‘BREAD’
 1161 |                 BREAD( short, long_data, sizeof long_data );
      |                 ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1190:17: note: in expansion of macro ‘BREAD’
 1190 |                 BREAD( short, long_data, sizeof long_data );
      |                 ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1212:17: note: in expansion of macro ‘BREAD’
 1212 |                 BREAD( short, long_data, sizeof long_data );
      |                 ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:307:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  307 |   lfree(line);
      |   ^~~~~ ~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
xwd.c: In function ‘loadZPixmap’:
xwd.c:316:15: warning: old-style function definition [-Wold-style-definition]
  316 | static Image *loadZPixmap(fullname, zf, header)
      |               ^~~~~~~~~~~
rlelib.c:1221:17: error: too many arguments to function ‘zread’; expected 0, have 3
 1221 |                 zread( infile, (byte *)scanc, nc );
      |                 ^~~~~  ~~~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:332:10: error: too many arguments to function ‘newRGBImage’; expected 0, have 3
  332 |   image= newRGBImage(header.pixmap_width, header.pixmap_height,
      |          ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
image.h:259:8: note: declared here
  259 | Image *newRGBImage _ArgProto((unsigned int width, unsigned int height,
      |        ^~~~~~~~~~~
rlelib.c:1223:27: error: too many arguments to function ‘zgetc’; expected 0, have 1
 1223 |                     (void)zgetc( infile );      /* throw away odd byte */
      |                           ^~~~~  ~~~~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rlelib.c:1229:32: error: too many arguments to function ‘zgetc’; expected 0, have 1
 1229 |                         (void) zgetc( infile ); /* discard it */
      |                                ^~~~~  ~~~~~~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
xwd.c:356:17: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  356 |   line= (byte *)lmalloc(dlinelen);
      |                 ^~~~~~~ ~~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:359:9: error: too many arguments to function ‘zread’; expected 0, have 3
  359 |     if (zread(zf, (byte *)line, dlinelen) != dlinelen) {
      |         ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:363:7: error: too many arguments to function ‘lfree’; expected 0, have 1
  363 |       lfree(line);
      |       ^~~~~ ~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
xwd.c:370:7: error: too many arguments to function ‘flipBits’; expected 0, have 2
  370 |       flipBits(line, dlinelen);
      |       ^~~~~~~~ ~~~~
image.h:295:15: note: declared here
  295 | void          flipBits _ArgProto((byte *p, unsigned int len));
      |               ^~~~~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1251:17: note: in expansion of macro ‘BREAD’
 1251 |                 BREAD( short, long_data, sizeof long_data );
      |                 ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:797:13: error: too many arguments to function ‘zread’; expected 0, have 3
  797 |             zread( infile, (byte *)&var,len )
      |             ^~~~~  ~~~~~~
rlelib.c:1259:13: note: in expansion of macro ‘BREAD’
 1259 |             BREAD( short, word, sizeof(short) );
      |             ^~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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)
      |             ^~~~~~~
rlelib.c:1268:21: error: too many arguments to function ‘bfill’; expected 0, have 3
 1268 |                     bfill( (char *)scanc, nc + 1, word );
      |                     ^~~~~  ~~~~~~~~~~~~~
rlelib.c:803:17: note: declared here
  803 | static void     bfill();
      |                 ^~~~~
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)
      |             ^~~~~~~
rlelib.c:1284:13: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
 1284 |             exit(1);
      |             ^~~~
rlelib.c:1284:13: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
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)
      |             ^~~~~~~
rlelib.c: In function ‘bfill’:
rlelib.c:1296:13: warning: old-style function definition [-Wold-style-definition]
 1296 | static void bfill( s, n, c )
      |             ^~~~~
rlelib.c: In function ‘dithermap’:
rlelib.c:1389:1: warning: old-style function definition [-Wold-style-definition]
 1389 | dithermap( levels, gamma, rgbmap, divN, modN, magic )
      | ^~~~~~~~~
rlelib.c:1389:1: error: type of ‘levels’ defaults to ‘int’ [-Wimplicit-int]
img.c: In function ‘xread_line’:
img.c:184:13: warning: old-style function definition [-Wold-style-definition]
  184 | static void xread_line (file, planes)
      |             ^~~~~~~~~~
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)
      |             ^~~~~~~~~
rlelib.c:1417:5: error: too many arguments to function ‘make_square’; expected 0, have 4
 1417 |     make_square( N, divN, modN, magic );
      |     ^~~~~~~~~~~  ~
rlelib.c:1350:9: note: declared here
 1350 | void    make_square();
      |         ^~~~~~~~~~~
img.c:209:10: error: too many arguments to function ‘zgetc’; expected 0, have 1
  209 |   wert = zgetc(file);
      |          ^~~~~ ~~~~
rlelib.c: In function ‘bwdithermap’:
rlelib.c:1449:1: warning: old-style function definition [-Wold-style-definition]
 1449 | bwdithermap( levels, gamma, bwmap, divN, modN, magic )
      | ^~~~~~~~~~~
rlelib.c:1449:1: error: type of ‘levels’ defaults to ‘int’ [-Wimplicit-int]
In file included from img.c:18:
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
img.c:215:14: error: too many arguments to function ‘zgetc’; expected 0, have 1
  215 |       wert = zgetc(file);
      |              ^~~~~ ~~~~
rlelib.c:1470:5: error: too many arguments to function ‘make_square’; expected 0, have 4
 1470 |     make_square( N, divN, modN, magic );
      |     ^~~~~~~~~~~  ~
image.h:300:8: note: declared here
  300 | int    zgetc _ArgProto((ZFILE *zf));
      |        ^~~~~
rlelib.c:1350:9: note: declared here
 1350 | void    make_square();
      |         ^~~~~~~~~~~
rlelib.c: In function ‘make_square’:
rlelib.c:1495:1: warning: old-style function definition [-Wold-style-definition]
 1495 | make_square( N, divN, modN, magic )
      | ^~~~~~~~~~~
rlelib.c:1500:1: error: number of arguments doesn’t match prototype
 1500 | {
      | ^
rlelib.c:1350:9: error: prototype declaration
 1350 | void    make_square();
      |         ^~~~~~~~~~~
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
      |                                   ^~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
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)
      |             ^~~~~~~~~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:185:51: note: in definition of macro ‘valToMem’
  185 |   ((LEN) == 1 ? (*(byte *)(PTR) = ((unsigned int)(VAL) & 0xff)) : \
      |                                                   ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:186:55: note: in definition of macro ‘valToMem’
  186 |    ((LEN) == 3 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                       ^~~
img.c:259:20: error: too many arguments to function ‘transf’; expected 0, have 4
  259 |                   (*transf)(ptr, plane, Muster[plane][ByteNr], planes);
      |                   ~^~~~~~~~ ~~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:187:61: note: in definition of macro ‘valToMem’
  187 |                   ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                             ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:188:61: note: in definition of macro ‘valToMem’
  188 |                   ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                             ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:189:56: note: in definition of macro ‘valToMem’
  189 |     ((LEN) == 2 ? (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                        ^~~
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
      |                                   ^~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:190:62: note: in definition of macro ‘valToMem’
  190 |                    ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff))) : \
      |                                                              ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:191:43: note: in definition of macro ‘valToMem’
  191 |      (((*(byte *)(PTR)) = ((unsigned int)(VAL) & 0xff000000) >> 24), \
      |                                           ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:192:49: note: in definition of macro ‘valToMem’
  192 |       ((*((byte *)(PTR) + 1)) = ((unsigned int)(VAL) & 0xff0000) >> 16), \
      |                                                 ^~~
img.c:287:20: error: too many arguments to function ‘transf’; expected 0, have 4
  287 |                   (*transf)(ptr, plane, tmp[i], planes);
      |                   ~^~~~~~~~ ~~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:193:49: note: in definition of macro ‘valToMem’
  193 |       ((*((byte *)(PTR) + 2)) = ((unsigned int)(VAL) & 0xff00) >> 8), \
      |                                                 ^~~
xwd.c:394:18: error: too many arguments to function ‘loader’; expected 0, have 2
  394 |         valToMem(loader(dptr, pixlen) & pixmask, iptr, pixlen);
      |                  ^~~~~~ ~~~~
image.h:194:49: note: in definition of macro ‘valToMem’
  194 |       ((*((byte *)(PTR) + 3)) = ((unsigned int)(VAL) & 0xff))))))
      |                                                 ^~~
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
      |                                   ^~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:402:9: error: implicit declaration of function ‘exit’ [-Wimplicit-function-declaration]
  402 |         exit(1);
      |         ^~~~
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));
      |        ^~~~~
xwd.c:18:1: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
   17 | #include "xwd.h"
  +++ |+#include <stdlib.h>
   18 | 
xwd.c:402:9: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  402 |         exit(1);
      |         ^~~~
xwd.c:402:9: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
img.c:315:11: error: too many arguments to function ‘zread’; expected 0, have 3
  315 |           zread(file, ptr, (long)i);
      |           ^~~~~ ~~~~
xwd.c:407:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  407 |   lfree(line);
      |   ^~~~~ ~~~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
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));
      |        ^~~~~
xwd.c: In function ‘xwdLoad’:
xwd.c:411:8: warning: old-style function definition [-Wold-style-definition]
  411 | Image *xwdLoad(fullname, name, verbose)
      |        ^~~~~~~
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));
      |        ^~~~~
xwd.c:423:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  423 |   if (! (zf= zopen(fullname)))
      |              ^~~~~ ~~~~~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
img.c:327:14: error: too many arguments to function ‘transf’; expected 0, have 4
  327 |             (*transf)(ptr, plane, tmp[k], planes);
      |             ~^~~~~~~~ ~~~
xwd.c:426:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  426 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
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));
      |        ^~~~~
xwd.c:442:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  442 |     exit(1);
      |     ^~~~
xwd.c:442:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
img.c:336:9: error: too many arguments to function ‘zread’; expected 0, have 3
  336 |         zread(file, &Muster[plane][ByteNr], (long)i);
      |         ^~~~~ ~~~~
rlelib.c: In function ‘make_magic’:
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
rlelib.c:1591:6: warning: old-style function definition [-Wold-style-definition]
 1591 | void make_magic( size, magic )
      |      ^~~~~~~~~~
xwd.c:447:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  447 |     exit(1);
      |     ^~~~
xwd.c:447:5: note: include ‘<stdlib.h>’ 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));
      |        ^~~~~
xwd.c:454:21: error: too many arguments to function ‘lmalloc’; expected 0, have 1
  454 |   cmap= (XWDColor *)lmalloc(cmaplen);
      |                     ^~~~~~~ ~~~~~~~
image.h:267:8: note: declared here
  267 | byte  *lmalloc _ArgProto((unsigned int size));
      |        ^~~~~~~
xwd.c:455:7: error: too many arguments to function ‘zread’; expected 0, have 3
  455 |   if (zread(zf, (byte *)cmap, cmaplen) != cmaplen) {
      |       ^~~~~ ~~
image.h:299:8: note: declared here
  299 | int    zread _ArgProto((ZFILE *zf, byte *buf, unsigned int len));
      |        ^~~~~
xwd.c:457:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  457 |     exit(1);
      |     ^~~~
xwd.c:457:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
rlelib.c: In function ‘make_gamma’:
rlelib.c:1635:6: warning: old-style function definition [-Wold-style-definition]
 1635 | void make_gamma( gamma, gammamap )
      |      ^~~~~~~~~~
img.c:359:14: error: too many arguments to function ‘transf’; expected 0, have 4
  359 |             (*transf)(ptr, plane, status, planes);
      |             ~^~~~~~~~ ~~~
xwd.c:474:5: warning: incompatible implicit declaration of built-in function ‘exit’ [-Wbuiltin-declaration-mismatch]
  474 |     exit(1);
      |     ^~~~
xwd.c:474:5: note: include ‘<stdlib.h>’ or provide a declaration of ‘exit’
xwd.c:480:5: error: too many arguments to function ‘zclose’; expected 0, have 1
  480 |     zclose(zf);
      |     ^~~~~~ ~~
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
xwd.c:481:19: error: too many arguments to function ‘dupString’; expected 0, have 1
  481 |     image->title= dupString(name);
      |                   ^~~~~~~~~ ~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
rlelib.c: In function ‘dithergb’:
rlelib.c:1672:5: warning: old-style function definition [-Wold-style-definition]
 1672 | int dithergb( x, y, r, g, b, levels, divN, modN, magic )
      |     ^~~~~~~~
rlelib.c:1672:5: error: type of ‘x’ defaults to ‘int’ [-Wimplicit-int]
xwd.c:490:3: error: too many arguments to function ‘zclose’; expected 0, have 1
  490 |   zclose(zf);
      |   ^~~~~~ ~~
rlelib.c:1672:5: error: type of ‘y’ defaults to ‘int’ [-Wimplicit-int]
image.h:302:8: note: declared here
  302 | void   zclose _ArgProto((ZFILE *zf));
      |        ^~~~~~
rlelib.c:1672:5: error: type of ‘r’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:1672:5: error: type of ‘g’ defaults to ‘int’ [-Wimplicit-int]
img.c: In function ‘ident_img’:
rlelib.c:1672:5: error: type of ‘b’ defaults to ‘int’ [-Wimplicit-int]
xwd.c:491:17: error: too many arguments to function ‘dupString’; expected 0, have 1
  491 |   image->title= dupString(name);
      |                 ^~~~~~~~~ ~~~~
rlelib.c:1672:5: error: type of ‘levels’ defaults to ‘int’ [-Wimplicit-int]
img.c:369:12: warning: old-style function definition [-Wold-style-definition]
  369 | static int ident_img(name)
      |            ^~~~~~~~~
image.h:257:8: note: declared here
  257 | char  *dupString _ArgProto((char *s));
      |        ^~~~~~~~~
img.c:385:14: error: too many arguments to function ‘zopen’; expected 0, have 1
  385 |   if ((file= zopen(name)) == NULL)
      |              ^~~~~ ~~~~
image.h:298:8: note: declared here
  298 | ZFILE *zopen _ArgProto((char *name));
      |        ^~~~~
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));
      |        ^~~~~~
rlelib.c: In function ‘ditherbw’:
rlelib.c:1702:5: warning: old-style function definition [-Wold-style-definition]
 1702 | int ditherbw( x, y, val, divN, modN, magic )
      |     ^~~~~~~~
rlelib.c:1702:5: error: type of ‘x’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:1702:5: error: type of ‘y’ defaults to ‘int’ [-Wimplicit-int]
rlelib.c:1702:5: error: type of ‘val’ defaults to ‘int’ [-Wimplicit-int]
xwd.c:505:3: error: too many arguments to function ‘lfree’; expected 0, have 1
  505 |   lfree((byte *)cmap);
      |   ^~~~~ ~~~~~~~~~~~~
image.h:268:8: note: declared here
  268 | void   lfree _ArgProto((byte *area));
      |        ^~~~~
img.c: In function ‘load_img’:
img.c:418:15: warning: old-style function definition [-Wold-style-definition]
  418 | static Image *load_img(name)
      |               ^~~~~~~~
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));
      |        ^~~~~
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: *** [<builtin>: rlelib.o] Error 1
make: *** [<builtin>: xwd.o] Error 1
make: *** [<builtin>: img.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /home/alhp/workspace/chroot/build_67ab01e3-d3e5-43b4-b81b-c6dd5d6577d0/build
