Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec'], chrootPath='/var/lib/mock/f42-build-56692643-6545562/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '102a1e4a6ae24506b6cfe22855f2a5e6', '-D', '/var/lib/mock/f42-build-56692643-6545562/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1729728000 Wrote: /builddir/build/SRPMS/ytalk-3.3.0-97.fc42.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec'], chrootPath='/var/lib/mock/f42-build-56692643-6545562/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=201600uid=1000gid=425user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '77157bf5d5dc4a6182bfd9261fb60642', '-D', '/var/lib/mock/f42-build-56692643-6545562/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1729728000 Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.LHbVpY + umask 022 + cd /builddir/build/BUILD/ytalk-3.3.0-build + test -d /builddir/build/BUILD/ytalk-3.3.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/ytalk-3.3.0-build + /usr/bin/rm -rf /builddir/build/BUILD/ytalk-3.3.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/ytalk-3.3.0-build + /usr/bin/mkdir -p /builddir/build/BUILD/ytalk-3.3.0-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LZDeEp + umask 022 + cd /builddir/build/BUILD/ytalk-3.3.0-build + cd /builddir/build/BUILD/ytalk-3.3.0-build + rm -rf ytalk-3.3.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ytalk-3.3.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd ytalk-3.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/ytalk-c99.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.6TuhHP + umask 022 + cd /builddir/build/BUILD/ytalk-3.3.0-build + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd ytalk-3.3.0 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2025-01-24 11:28:28.437901937 +0000 +++ ./configure 2025-01-24 11:28:28.449902012 +0000 @@ -4595,7 +4595,7 @@ #if defined (__stub_initscr) || defined (__stub___initscr) choke me #else -char (*f) () = initscr; +__attribute__ ((used)) char (*f) () = initscr; #endif #ifdef __cplusplus } @@ -4929,7 +4929,7 @@ #if defined (__stub_tgoto) || defined (__stub___tgoto) choke me #else -char (*f) () = tgoto; +__attribute__ ((used)) char (*f) () = tgoto; #endif #ifdef __cplusplus } @@ -5486,7 +5486,7 @@ #if defined (__stub_tcgetattr) || defined (__stub___tcgetattr) choke me #else -char (*f) () = tcgetattr; +__attribute__ ((used)) char (*f) () = tcgetattr; #endif #ifdef __cplusplus } @@ -5904,7 +5904,7 @@ #if defined (__stub_socket) || defined (__stub___socket) choke me #else -char (*f) () = socket; +__attribute__ ((used)) char (*f) () = socket; #endif #ifdef __cplusplus } @@ -6077,7 +6077,7 @@ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else -char (*f) () = gethostbyname; +__attribute__ ((used)) char (*f) () = gethostbyname; #endif #ifdef __cplusplus } @@ -7329,7 +7329,7 @@ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -char (*f) () = $ac_func; +__attribute__ ((used)) char (*f) () = $ac_func; #endif #ifdef __cplusplus } @@ -7560,7 +7560,7 @@ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -char (*f) () = $ac_func; +__attribute__ ((used)) char (*f) () = $ac_func; #endif #ifdef __cplusplus } @@ -7664,7 +7664,7 @@ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -char (*f) () = $ac_func; +__attribute__ ((used)) char (*f) () = $ac_func; #endif #ifdef __cplusplus } @@ -7768,7 +7768,7 @@ #if defined (__stub_$ac_func) || defined (__stub___$ac_func) choke me #else -char (*f) () = $ac_func; +__attribute__ ((used)) char (*f) () = $ac_func; #endif #ifdef __cplusplus } @@ -7867,7 +7867,7 @@ #if defined (__stub_gethostname) || defined (__stub___gethostname) choke me #else -char (*f) () = gethostname; +__attribute__ ((used)) char (*f) () = gethostname; #endif #ifdef __cplusplus } @@ -7965,7 +7965,7 @@ #if defined (__stub_select) || defined (__stub___select) choke me #else -char (*f) () = select; +__attribute__ ((used)) char (*f) () = select; #endif #ifdef __cplusplus } + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh ++ grep -q runstatedir=DIR ./configure + ./configure --build=aarch64-redhat-linux-gnu --host=aarch64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for aarch64-redhat-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... (cached) yes checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for long... yes checking size of long... 8 checking for u_int... yes checking size of u_int... 4 checking for initscr in -lncurses... yes checking ncurses.h usability... yes checking ncurses.h presence... yes checking for ncurses.h... yes checking for keypad in -lncurses... yes checking for tcgetattr... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for socket... yes checking for gethostbyname... yes checking for ANSI C header files... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for unistd.h... (cached) yes checking stropts.h usability... no checking stropts.h presence... no checking for stropts.h... no checking iovec.h usability... no checking iovec.h presence... no checking for iovec.h... no checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking for sys/stat.h... (cached) yes checking for size_t... yes checking return type of signal handlers... int checking whether time.h and sys/time.h may both be included... yes checking for uid_t in sys/types.h... yes checking for ssize_t... yes checking for socklen_t... yes checking util.h usability... no checking util.h presence... no checking for util.h... no checking for openpty... yes checking whether gcc needs -traditional... no checking for putenv... yes checking for strerror... yes checking for ttyname... yes checking for ptsname... yes checking for grantpt... yes checking for unlockpt... yes checking for setsid... yes checking for tcflush... yes checking for snprintf... yes checking for sigprocmask... yes checking for gethostname... yes checking for select... yes configure: creating ./config.status config.status: creating docs/Makefile config.status: creating docs/ytalk.1 config.status: creating test/Makefile config.status: creating src/Makefile config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j12 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in docs make[2]: Nothing to be done for 'all'. Making all in src make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c getpty.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c main.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c rc.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c mem.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' main.c: In function ‘bail’: main.c:35:1: warning: old-style function definition [-Wold-style-definition] 35 | bail(n) | ^~~~ main.c:37:1: error: number of arguments doesn’t match prototype 37 | { | ^ In file included from main.c:21: header.h:312:13: error: prototype declaration 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ main.c:40:21: error: too many arguments to function ‘show_mesg’; expected 0, have 2 40 | if (show_mesg("Press any key to quit.", NULL) == 0) { | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from main.c:22: menu.h:40:12: note: declared here 40 | extern int show_mesg(); /* menu.c */ | ^~~~~~~~~ main.c: In function ‘show_error’: main.c:60:1: warning: old-style function definition [-Wold-style-definition] 60 | show_error(str) | ^~~~~~~~~~ main.c:62:1: error: number of arguments doesn’t match prototype 62 | { | ^ header.h:314:13: error: prototype declaration 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ main.c:75:21: error: too many arguments to function ‘show_error_menu’; expected 0, have 2 75 | if (show_error_menu(str, syserr) < 0) { | ^~~~~~~~~~~~~~~ ~~~ menu.h:44:12: note: declared here 44 | extern int show_error_menu( /* str1, str2 */ ); /* menu.c */ | ^~~~~~~~~~~~~~~ main.c:76:25: error: too many arguments to function ‘show_error’; expected 0, have 1 76 | show_error("show_error: show_error_menu() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:60:1: note: declared here 60 | show_error(str) | ^~~~~~~~~~ main.c:77:25: error: too many arguments to function ‘show_error’; expected 0, have 1 77 | show_error(str); | ^~~~~~~~~~ ~~~ main.c:60:1: note: declared here 60 | show_error(str) | ^~~~~~~~~~ main.c: In function ‘str_copy’: main.c:94:1: warning: old-style function definition [-Wold-style-definition] 94 | str_copy(str) | ^~~~~~~~ main.c:96:1: error: number of arguments doesn’t match prototype 96 | { | ^ header.h:313:14: error: prototype declaration 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ main.c:103:15: error: too many arguments to function ‘get_mem’; expected 0, have 1 103 | out = get_mem(len); | ^~~~~~~ ~~~ In file included from main.c:23: mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ main.c: In function ‘got_sig’: main.c:112:1: warning: old-style function definition [-Wold-style-definition] 112 | got_sig(n) | ^~~~~~~ main.c:117:25: error: ‘return’ with no value, in function returning non-void [-Wreturn-mismatch] 117 | return; | ^~~~~~ main.c:112:1: note: declared here 112 | got_sig(n) | ^~~~~~~ main.c:118:17: error: too many arguments to function ‘bail’; expected 0, have 1 118 | bail(YTE_SUCCESS); | ^~~~ main.c:35:1: note: declared here 35 | bail(n) | ^~~~ main.c:120:9: error: too many arguments to function ‘bail’; expected 0, have 1 120 | bail(YTE_SIGNAL); | ^~~~ main.c:35:1: note: declared here 35 | bail(n) | ^~~~ main.c: In function ‘main’: main.c:125:1: warning: old-style function definition [-Wold-style-definition] 125 | main(argc, argv) | ^~~~ main.c:192:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 192 | signal(SIGINT, got_sig); | ^~~~~~~ | | | int (*)() In file included from /usr/include/sys/param.h:28, from header.h:24: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)()’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ main.c:112:1: note: ‘got_sig’ declared here 112 | got_sig(n) | ^~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ main.c:193:24: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 193 | signal(SIGHUP, got_sig); | ^~~~~~~ | | | int (*)() /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)()’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ main.c:112:1: note: ‘got_sig’ declared here 112 | got_sig(n) | ^~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ main.c:194:25: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 194 | signal(SIGQUIT, got_sig); | ^~~~~~~ | | | int (*)() /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)()’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ main.c:112:1: note: ‘got_sig’ declared here 112 | got_sig(n) | ^~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ main.c:195:25: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 195 | signal(SIGABRT, got_sig); | ^~~~~~~ | | | int (*)() /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)()’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ main.c:112:1: note: ‘got_sig’ declared here 112 | got_sig(n) | ^~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ main.c:208:9: error: too many arguments to function ‘init_user’; expected 0, have 1 208 | init_user(vhost); | ^~~~~~~~~ ~~~~~ header.h:354:13: note: declared here 354 | extern void init_user(); /* user.c */ | ^~~~~~~~~ main.c:221:17: error: too many arguments to function ‘invite’; expected 0, have 2 221 | invite(*argv, 1); | ^~~~~~ ~~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ main.c:223:17: error: too many arguments to function ‘execute’; expected 0, have 1 223 | execute(NULL); | ^~~~~~~ ~~~~ header.h:395:13: note: declared here 395 | extern void execute( /* command */ ); /* exec.c */ | ^~~~~~~ main.c:225:17: error: too many arguments to function ‘msg_term’; expected 0, have 2 225 | msg_term(me, "Waiting for connection..."); | ^~~~~~~~ ~~ header.h:347:13: note: declared here 347 | extern void msg_term( /* yuser, str */ ); /* term.c */ | ^~~~~~~~ main.c:227:9: error: too many arguments to function ‘bail’; expected 0, have 1 227 | bail(YTE_SUCCESS_PROMPT); | ^~~~ main.c:35:1: note: declared here 35 | bail(n) | ^~~~ make[2]: *** [Makefile:233: main.o] Error 1 make[2]: *** Waiting for unfinished jobs.... rc.c: In function ‘get_word’: rc.c:35:1: warning: old-style function definition [-Wold-style-definition] 35 | get_word(p) | ^~~~~~~~ rc.c: In function ‘set_option’: rc.c:55:1: warning: old-style function definition [-Wold-style-definition] 55 | set_option(opt, value) | ^~~~~~~~~~ rc.c: In function ‘read_rcfile’: rc.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | read_rcfile(fname) | ^~~~~~~~~~~ rc.c:156:25: error: too many arguments to function ‘show_error’; expected 0, have 1 156 | show_error(fname); | ^~~~~~~~~~ ~~~~~ In file included from rc.c:22: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ rc.c:159:15: error: too many arguments to function ‘get_mem’; expected 0, have 1 159 | buf = get_mem(BUFSIZ); | ^~~~~~~ ~~~~~~ In file included from rc.c:23: mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ rc.c:177:25: error: too many arguments to function ‘readdress_host’; expected 0, have 3 177 | readdress_host(arg1, arg2, arg3); | ^~~~~~~~~~~~~~ ~~~~ header.h:390:13: note: declared here 390 | extern void readdress_host( /* from, to, on */ ); /* socket.c */ | ^~~~~~~~~~~~~~ rc.c:196:41: error: too many arguments to function ‘get_mem’; expected 0, have 1 196 | vhost = get_mem(1 + strlen(arg1)); | ^~~~~~~ ~~~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ rc.c:207:29: error: too many arguments to function ‘get_mem’; expected 0, have 1 207 | a = get_mem(sizeof(struct alias)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ rc.c:245:17: error: too many arguments to function ‘show_error’; expected 0, have 1 245 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ rc.c:247:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 247 | free_mem(buf); | ^~~~~~~~ ~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ rc.c: In function ‘resolve_alias’: rc.c:254:1: warning: old-style function definition [-Wold-style-definition] 254 | resolve_alias(uh) | ^~~~~~~~~~~~~ rc.c:256:1: error: number of arguments doesn’t match prototype 256 | { | ^ header.h:393:14: error: prototype declaration 393 | extern char *resolve_alias( /* uh */ ); /* rc.c */ | ^~~~~~~~~~~~~ rc.c: In function ‘read_ytalkrc’: rc.c:323:25: error: too many arguments to function ‘get_mem’; expected 0, have 1 323 | fname = get_mem(strlen(home) + 10); | ^~~~~~~ ~~~~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ rc.c:330:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 330 | free_mem(fname); | ^~~~~~~~ ~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ make[2]: *** [Makefile:233: rc.o] Error 1 mem.c: In function ‘get_mem’: mem.c:136:1: warning: old-style function definition [-Wold-style-definition] 136 | get_mem(n) | ^~~~~~~ mem.c:139:1: error: number of arguments doesn’t match prototype 139 | { | ^ In file included from mem.c:23: mem.h:44:14: error: prototype declaration 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ mem.c:142:17: error: too many arguments to function ‘show_error’; expected 0, have 1 142 | show_error("malloc() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~ In file included from mem.c:22: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ mem.c:143:17: error: too many arguments to function ‘bail’; expected 0, have 1 143 | bail(YTE_NO_MEM); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ mem.c: In function ‘free_mem’: mem.c:156:1: warning: old-style function definition [-Wold-style-definition] 156 | free_mem(addr) | ^~~~~~~~ mem.c:158:1: error: number of arguments doesn’t match prototype 158 | { | ^ mem.h:46:13: error: prototype declaration 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ mem.c: In function ‘realloc_mem’: mem.c:196:1: warning: old-style function definition [-Wold-style-definition] 196 | realloc_mem(p, n) | ^~~~~~~~~~~ mem.c:200:1: error: number of arguments doesn’t match prototype 200 | { | ^ mem.h:45:14: error: prototype declaration 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ mem.c:207:24: error: too many arguments to function ‘get_mem’; expected 0, have 1 207 | return get_mem(n); | ^~~~~~~ ~ mem.c:136:1: note: declared here 136 | get_mem(n) | ^~~~~~~ mem.c:211:17: error: too many arguments to function ‘show_error’; expected 0, have 1 211 | show_error("realloc() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ mem.c:212:17: error: too many arguments to function ‘bail’; expected 0, have 1 212 | bail(YTE_NO_MEM); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ make[2]: *** [Makefile:233: mem.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c fd.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' fd.c: In function ‘add_fd’: fd.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | add_fd(fd, user_func) | ^~~~~~ fd.c:70:1: error: number of arguments doesn’t match prototype 70 | { | ^ In file included from fd.c:21: header.h:362:13: error: prototype declaration 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ fd.c:72:17: error: too many arguments to function ‘show_error’; expected 0, have 1 72 | show_error("add_fd: descriptor out of range"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ fd.c: In function ‘remove_fd’: fd.c:85:1: warning: old-style function definition [-Wold-style-definition] 85 | remove_fd(fd) | ^~~~~~~~~ fd.c:87:1: error: number of arguments doesn’t match prototype 87 | { | ^ header.h:363:13: error: prototype declaration 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ fd.c:89:17: error: too many arguments to function ‘show_error’; expected 0, have 1 89 | show_error("remove_fd: descriptor out of range"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ fd.c: In function ‘full_read’: fd.c:101:1: warning: old-style function definition [-Wold-style-definition] 101 | full_read(fd, buf, len) | ^~~~~~~~~ fd.c:105:1: error: number of arguments doesn’t match prototype 105 | { | ^ header.h:364:12: error: prototype declaration 364 | extern int full_read( /* fd, buf, len */ ); /* fd.c */ | ^~~~~~~~~ fd.c: In function ‘main_loop’: fd.c:173:25: error: too many arguments to function ‘bail’; expected 0, have 1 173 | bail(0); | ^~~~ ~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ fd.c:185:33: error: too many arguments to function ‘show_error’; expected 0, have 1 185 | show_error("main_loop: select failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ fd.c:207:41: error: too many arguments to function ‘tag[fd].func’; expected 0, have 1 207 | tag[fd].func(fd); | ^~~ ~~ fd.c:49:16: note: declared here 49 | void (*func) (); /* user function */ | ^~~~ fd.c: In function ‘input_loop’: fd.c:270:33: error: too many arguments to function ‘show_error’; expected 0, have 1 270 | show_error("input_loop: select failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ fd.c:289:41: error: too many arguments to function ‘tag[fd].func’; expected 0, have 1 289 | tag[fd].func(fd); | ^~~ ~~ fd.c:49:16: note: declared here 49 | void (*func) (); /* user function */ | ^~~~ fd.c: In function ‘bail_loop’: fd.c:325:9: error: too many arguments to function ‘full_read’; expected 0, have 3 325 | full_read(0, &keypress, sizeof(char)); | ^~~~~~~~~ ~ fd.c:101:1: note: declared here 101 | full_read(fd, buf, len) | ^~~~~~~~~ make[2]: *** [Makefile:233: fd.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c user.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' user.c: In function ‘user_name’: user.c:44:1: warning: old-style function definition [-Wold-style-definition] 44 | user_name(uid) | ^~~~~~~~~ user.c: In function ‘generate_full_name’: user.c:64:1: warning: old-style function definition [-Wold-style-definition] 64 | generate_full_name(user) | ^~~~~~~~~~~~~~~~~~ user.c:66:1: error: number of arguments doesn’t match prototype 66 | { | ^ In file included from user.c:21: header.h:358:13: error: prototype declaration 358 | extern void generate_full_name( /* yuser */ ); /* user.c */ | ^~~~~~~~~~~~~~~~~~ user.c:70:35: error: too many arguments to function ‘get_mem’; expected 0, have 1 70 | user->full_name = get_mem(50); | ^~~~~~~ ~~ In file included from user.c:23: mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ user.c: In function ‘assign_key’: user.c:91:1: warning: old-style function definition [-Wold-style-definition] 91 | assign_key(user) | ^~~~~~~~~~ user.c: In function ‘init_user’: user.c:122:1: warning: old-style function definition [-Wold-style-definition] 122 | init_user(vhost) | ^~~~~~~~~ user.c:124:1: error: number of arguments doesn’t match prototype 124 | { | ^ header.h:354:13: error: prototype declaration 354 | extern void init_user(); /* user.c */ | ^~~~~~~~~ user.c:138:17: error: too many arguments to function ‘show_error’; expected 0, have 1 138 | show_error("Who are you?"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ user.c:139:17: error: too many arguments to function ‘bail’; expected 0, have 1 139 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ user.c:148:25: error: too many arguments to function ‘show_error’; expected 0, have 1 148 | show_error("init_user: gethostname() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ user.c:149:25: error: too many arguments to function ‘bail’; expected 0, have 1 149 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ user.c:153:45: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 153 | ylong adr = get_host_addr(my_host); | ^~~~~~~~~~~~~ ~~~~~~~ header.h:388:14: note: declared here 388 | extern ylong get_host_addr( /* hostname */ ); /* socket.c */ | ^~~~~~~~~~~~~ user.c:155:54: error: too many arguments to function ‘host_name’; expected 0, have 1 155 | char *name = host_name(adr); | ^~~~~~~~~ ~~~ header.h:389:14: note: declared here 389 | extern char *host_name( /* addr */ ); /* socket.c */ | ^~~~~~~~~ user.c:165:19: error: too many arguments to function ‘new_user’; expected 0, have 3 165 | if ((me = new_user(my_name, my_host, NULL)) == NULL) | ^~~~~~~~ ~~~~~~~ header.h:355:15: note: declared here 355 | extern yuser *new_user( /* name, host, tty */ ); /* user.c */ | ^~~~~~~~ user.c:166:17: error: too many arguments to function ‘bail’; expected 0, have 1 166 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ user.c: In function ‘new_user’: user.c:184:1: warning: old-style function definition [-Wold-style-definition] 184 | new_user(name, hostname, tty) | ^~~~~~~~ user.c:186:1: error: number of arguments doesn’t match prototype 186 | { | ^ header.h:355:15: error: prototype declaration 355 | extern yuser *new_user( /* name, host, tty */ ); /* user.c */ | ^~~~~~~~ user.c:195:28: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 195 | } else if ((addr = get_host_addr(hostname)) == (ylong) -1) { | ^~~~~~~~~~~~~ ~~~~~~~~ header.h:388:14: note: declared here 388 | extern ylong get_host_addr( /* hostname */ ); /* socket.c */ | ^~~~~~~~~~~~~ user.c:201:17: error: too many arguments to function ‘show_error’; expected 0, have 1 201 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ user.c:207:25: error: too many arguments to function ‘get_mem’; expected 0, have 1 207 | out = (yuser *) get_mem(sizeof(yuser)); | ^~~~~~~ ~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ user.c:209:26: error: too many arguments to function ‘str_copy’; expected 0, have 1 209 | out->user_name = str_copy(name); | ^~~~~~~~ ~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:210:26: error: too many arguments to function ‘str_copy’; expected 0, have 1 210 | out->host_name = str_copy(hostname); | ^~~~~~~~ ~~~~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:212:34: error: too many arguments to function ‘str_copy’; expected 0, have 1 212 | out->host_fqdn = str_copy(hostname); | ^~~~~~~~ ~~~~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:214:43: error: too many arguments to function ‘host_name’; expected 0, have 1 214 | out->host_fqdn = str_copy(host_name(addr)); | ^~~~~~~~~ ~~~~ header.h:389:14: note: declared here 389 | extern char *host_name( /* addr */ ); /* socket.c */ | ^~~~~~~~~ user.c:214:34: error: too many arguments to function ‘str_copy’; expected 0, have 1 214 | out->host_fqdn = str_copy(host_name(addr)); | ^~~~~~~~ ~~~~~~~~~~~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:217:33: error: too many arguments to function ‘str_copy’; expected 0, have 1 217 | out->tty_name = str_copy(tty); | ^~~~~~~~ ~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:219:33: error: too many arguments to function ‘str_copy’; expected 0, have 1 219 | out->tty_name = str_copy(""); | ^~~~~~~~ ~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ user.c:221:9: error: too many arguments to function ‘generate_full_name’; expected 0, have 1 221 | generate_full_name(out); | ^~~~~~~~~~~~~~~~~~ ~~~ user.c:64:1: note: declared here 64 | generate_full_name(user) | ^~~~~~~~~~~~~~~~~~ user.c: In function ‘clear_user’: user.c:241:1: warning: old-style function definition [-Wold-style-definition] 241 | clear_user(user) | ^~~~~~~~~~ user.c:245:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 245 | free_mem(user->user_name); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:246:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 246 | free_mem(user->host_name); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:247:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 247 | free_mem(user->host_fqdn); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:248:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 248 | free_mem(user->tty_name); | ^~~~~~~~ ~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:249:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 249 | free_mem(user->full_name); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:251:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 251 | free_mem(user->gt.buf); | ^~~~~~~~ ~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:253:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 253 | free_mem(user->gt.version); | ^~~~~~~~ ~~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:255:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 255 | free_mem(user->dbuf); | ^~~~~~~~ ~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:257:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 257 | free_mem(user->term); | ^~~~~~~~ ~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:261:17: error: too many arguments to function ‘remove_fd’; expected 0, have 1 261 | remove_fd(user->fd); | ^~~~~~~~~ ~~~~~~~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ user.c:269:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 269 | free_mem(user->scr[i]); | ^~~~~~~~ ~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:270:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 270 | free_mem(user->scr); | ^~~~~~~~ ~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:271:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 271 | free_mem(user->scr_tabs); | ^~~~~~~~ ~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c:273:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 273 | free_mem(user); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ user.c: In function ‘free_user’: user.c:277:1: warning: old-style function definition [-Wold-style-definition] 277 | free_user(user) | ^~~~~~~~~ user.c:279:1: error: number of arguments doesn’t match prototype 279 | { | ^ header.h:356:13: error: prototype declaration 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ user.c:315:17: error: too many arguments to function ‘bail’; expected 0, have 1 315 | bail(YTE_SUCCESS_PROMPT); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ user.c:317:9: error: too many arguments to function ‘close_term’; expected 0, have 1 317 | close_term(user); | ^~~~~~~~~~ ~~~~ header.h:322:13: note: declared here 322 | extern void close_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ user.c:321:17: error: too many arguments to function ‘msg_term’; expected 0, have 2 321 | msg_term(me, "Waiting for connection..."); | ^~~~~~~~ ~~ header.h:347:13: note: declared here 347 | extern void msg_term( /* yuser, str */ ); /* term.c */ | ^~~~~~~~ user.c: In function ‘find_user’: user.c:331:1: warning: old-style function definition [-Wold-style-definition] 331 | find_user(name, host_addr, pid) | ^~~~~~~~~ user.c:334:1: error: number of arguments doesn’t match prototype 334 | { | ^ header.h:357:15: error: prototype declaration 357 | extern yuser *find_user( /* name, host_addr, pid */ ); /* user.c */ | ^~~~~~~~~ make[2]: *** [Makefile:233: user.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c cwin.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c exec.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' cwin.c: In function ‘curses_input’: cwin.c:51:1: warning: old-style function definition [-Wold-style-definition] 51 | curses_input(fd) | ^~~~~~~~~~~~ cwin.c:59:25: error: too many arguments to function ‘bail’; expected 0, have 1 59 | bail(YTE_SUCCESS); | ^~~~ In file included from cwin.c:22: header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ cwin.c:60:17: error: too many arguments to function ‘bail’; expected 0, have 1 60 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ cwin.c:62:9: error: too many arguments to function ‘my_input’; expected 0, have 3 62 | my_input(me, buf, rc); | ^~~~~~~~ ~~ header.h:376:13: note: declared here 376 | extern void my_input( /* buf, len */ ); /* comm.c */ | ^~~~~~~~ cwin.c: In function ‘new_ywin’: cwin.c:66:1: warning: old-style function definition [-Wold-style-definition] 66 | new_ywin(user, title) | ^~~~~~~~ cwin.c:74:24: error: too many arguments to function ‘get_mem’; expected 0, have 1 74 | out = (ywin *) get_mem(sizeof(ywin) + len + 1); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~ In file included from cwin.c:23: mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ cwin.c: In function ‘make_win’: cwin.c:83:1: warning: old-style function definition [-Wold-style-definition] 83 | make_win(w, height, width, row, col) | ^~~~~~~~ cwin.c:90:25: error: too many arguments to function ‘show_error’; expected 0, have 1 90 | show_error("make_win: newwin() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ cwin.c:91:17: error: too many arguments to function ‘bail’; expected 0, have 1 91 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ cwin.c: In function ‘draw_title’: cwin.c:102:1: warning: old-style function definition [-Wold-style-definition] 102 | draw_title(w) | ^~~~~~~~~~ cwin.c: In function ‘win_size’: cwin.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | win_size(wins) | ^~~~~~~~ cwin.c: In function ‘curses_redraw’: cwin.c:168:17: error: too many arguments to function ‘show_error’; expected 0, have 1 168 | show_error("curses_redraw: window size too small"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ cwin.c:169:17: error: too many arguments to function ‘bail’; expected 0, have 1 169 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ cwin.c:180:25: error: too many arguments to function ‘resize_win’; expected 0, have 3 180 | resize_win(w->user, wsize - 1, COLS); | ^~~~~~~~~~ ~~~~~~~ header.h:343:13: note: declared here 343 | extern void resize_win( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~ cwin.c:183:25: error: too many arguments to function ‘resize_win’; expected 0, have 3 183 | resize_win(w->user, LINES - row - 2, COLS); | ^~~~~~~~~~ ~~~~~~~ header.h:343:13: note: declared here 343 | extern void resize_win( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~ cwin.c: In function ‘curses_start’: cwin.c:202:17: error: too many arguments to function ‘bail’; expected 0, have 1 202 | bail(YTE_INIT); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ cwin.c: In function ‘curses_restart’: cwin.c:238:26: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 238 | signal(SIGWINCH, (void (*)())curses_restart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/sys/param.h:28, from header.h:24: /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ cwin.c:240:1: warning: no return statement in function returning non-void [-Wreturn-type] 240 | } | ^ cwin.c: In function ‘init_curses’: cwin.c:250:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 250 | add_fd(0, curses_input);/* set up user's input function */ | ^~~~~~ ~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ cwin.c:254:26: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types] 254 | signal(SIGWINCH, (void (*)())curses_restart); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’ 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ cwin.c: In function ‘open_curses’: cwin.c:271:1: warning: old-style function definition [-Wold-style-definition] 271 | open_curses(user, title) | ^~~~~~~~~~~ cwin.c:274:1: error: number of arguments doesn’t match prototype 274 | { | ^ In file included from cwin.c:34: cwin.h:23:12: error: prototype declaration 23 | extern int open_curses( /* yuser, title */ ); | ^~~~~~~~~~~ cwin.c: In function ‘close_curses’: cwin.c:311:1: warning: old-style function definition [-Wold-style-definition] 311 | close_curses(user) | ^~~~~~~~~~~~ cwin.c:313:1: error: number of arguments doesn’t match prototype 313 | { | ^ cwin.h:24:13: error: prototype declaration 24 | extern void close_curses( /* yuser */ ); | ^~~~~~~~~~~~ cwin.c:328:25: error: too many arguments to function ‘show_error’; expected 0, have 1 328 | show_error("close_curses: user not found"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ cwin.c:333:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 333 | free_mem(w); | ^~~~~~~~ ~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ cwin.c: In function ‘addch_curses’: cwin.c:340:1: warning: old-style function definition [-Wold-style-definition] 340 | addch_curses(user, c) | ^~~~~~~~~~~~ cwin.c:343:1: error: number of arguments doesn’t match prototype 343 | { | ^ cwin.h:25:13: error: prototype declaration 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ cwin.c: In function ‘move_curses’: cwin.c:355:1: warning: old-style function definition [-Wold-style-definition] 355 | move_curses(user, y, x) | ^~~~~~~~~~~ cwin.c:358:1: error: number of arguments doesn’t match prototype 358 | { | ^ cwin.h:26:13: error: prototype declaration 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ cwin.c: In function ‘clreol_curses’: cwin.c:366:1: warning: old-style function definition [-Wold-style-definition] 366 | clreol_curses(user) | ^~~~~~~~~~~~~ cwin.c:368:1: error: number of arguments doesn’t match prototype 368 | { | ^ cwin.h:27:13: error: prototype declaration 27 | extern void clreol_curses( /* yuser */ ); | ^~~~~~~~~~~~~ cwin.c: In function ‘clreos_curses’: cwin.c:376:1: warning: old-style function definition [-Wold-style-definition] 376 | clreos_curses(user) | ^~~~~~~~~~~~~ cwin.c:378:1: error: number of arguments doesn’t match prototype 378 | { | ^ cwin.h:28:13: error: prototype declaration 28 | extern void clreos_curses( /* yuser */ ); | ^~~~~~~~~~~~~ cwin.c: In function ‘scroll_curses’: cwin.c:386:1: warning: old-style function definition [-Wold-style-definition] 386 | scroll_curses(user) | ^~~~~~~~~~~~~ cwin.c:388:1: error: number of arguments doesn’t match prototype 388 | { | ^ cwin.h:29:13: error: prototype declaration 29 | extern void scroll_curses( /* yuser */ ); | ^~~~~~~~~~~~~ cwin.c: In function ‘keypad_curses’: cwin.c:412:1: warning: old-style function definition [-Wold-style-definition] 412 | keypad_curses(bf) | ^~~~~~~~~~~~~ cwin.c:414:1: error: number of arguments doesn’t match prototype 414 | { | ^ cwin.h:30:13: error: prototype declaration 30 | extern void keypad_curses( /* bool */ ); | ^~~~~~~~~~~~~ cwin.c: In function ‘flush_curses’: cwin.c:421:1: warning: old-style function definition [-Wold-style-definition] 421 | flush_curses(user) | ^~~~~~~~~~~~ cwin.c:423:1: error: number of arguments doesn’t match prototype 423 | { | ^ cwin.h:31:13: error: prototype declaration 31 | extern void flush_curses( /* yuser */ ); | ^~~~~~~~~~~~ cwin.c: In function ‘redisplay_curses’: cwin.c:441:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 441 | redraw_term(w->user, 0); | ^~~~~~~~~~~ ~~~~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ make[2]: *** [Makefile:233: cwin.o] Error 1 exec.c: In function ‘exec_input’: exec.c:104:1: warning: old-style function definition [-Wold-style-definition] 104 | exec_input(fd) | ^~~~~~~~~~ exec.c:113:17: error: too many arguments to function ‘show_error’; expected 0, have 1 113 | show_error("command shell terminated"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from exec.c:23: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ exec.c:116:9: error: too many arguments to function ‘show_input’; expected 0, have 3 116 | show_input(me, buf, rc); | ^~~~~~~~~~ ~~ header.h:375:13: note: declared here 375 | extern void show_input( /* user, buf, len */ ); /* comm.c */ | ^~~~~~~~~~ exec.c:117:9: error: too many arguments to function ‘send_users’; expected 0, have 5 117 | send_users(me, buf, rc, buf, rc); | ^~~~~~~~~~ ~~ header.h:374:13: note: declared here 374 | extern void send_users( /* buf, len */ ); /* comm.c */ | ^~~~~~~~~~ exec.c: In function ‘calculate_size’: exec.c:121:1: warning: old-style function definition [-Wold-style-definition] 121 | calculate_size(rows, cols) | ^~~~~~~~~~~~~~ exec.c: In function ‘execute’: exec.c:145:1: warning: old-style function definition [-Wold-style-definition] 145 | execute(command) | ^~~~~~~ exec.c:147:1: error: number of arguments doesn’t match prototype 147 | { | ^ header.h:395:13: error: prototype declaration 395 | extern void execute( /* command */ ); /* exec.c */ | ^~~~~~~ exec.c:161:17: error: too many arguments to function ‘show_error’; expected 0, have 1 161 | show_error("alternate mode already running"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ exec.c:166:17: error: too many arguments to function ‘msg_term’; expected 0, have 2 166 | msg_term(me, "cannot get pseudo terminal"); | ^~~~~~~~ ~~ header.h:347:13: note: declared here 347 | extern void msg_term( /* yuser, str */ ); /* term.c */ | ^~~~~~~~ exec.c:245:17: error: too many arguments to function ‘set_terminal_flags’; expected 0, have 1 245 | set_terminal_flags(fd); | ^~~~~~~~~~~~~~~~~~ ~~ header.h:318:13: note: declared here 318 | extern void set_terminal_flags( /* fd */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~~ exec.c:246:17: error: too many arguments to function ‘set_terminal_size’; expected 0, have 3 246 | set_terminal_size(fd, prows, pcols); | ^~~~~~~~~~~~~~~~~ ~~ header.h:317:13: note: declared here 317 | extern void set_terminal_size( /* fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~ exec.c:293:17: error: too many arguments to function ‘show_error’; expected 0, have 1 293 | show_error("fork() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ exec.c:296:9: error: too many arguments to function ‘set_win_region’; expected 0, have 3 296 | set_win_region(me, prows, pcols); | ^~~~~~~~~~~~~~ ~~ header.h:344:13: note: declared here 344 | extern void set_win_region( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~~~~~ exec.c:300:9: error: too many arguments to function ‘lock_flags’; expected 0, have 1 300 | lock_flags((ylong) (FL_RAW | FL_SCROLL)); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:377:13: note: declared here 377 | extern void lock_flags( /* flags */ ); /* comm.c */ | ^~~~~~~~~~ exec.c:302:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 302 | add_fd(fd, exec_input); | ^~~~~~ ~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ exec.c: In function ‘kill_exec’: exec.c:323:9: error: too many arguments to function ‘remove_fd’; expected 0, have 1 323 | remove_fd(pfd); | ^~~~~~~~~ ~~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ exec.c:328:9: error: too many arguments to function ‘end_win_region’; expected 0, have 1 328 | end_win_region(me); | ^~~~~~~~~~~~~~ ~~ header.h:345:13: note: declared here 345 | extern void end_win_region( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~~~ exec.c: In function ‘winch_exec’: exec.c:347:25: error: too many arguments to function ‘set_win_region’; expected 0, have 3 347 | set_win_region(me, prows, pcols); | ^~~~~~~~~~~~~~ ~~ header.h:344:13: note: declared here 344 | extern void set_win_region( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~~~~~ exec.c:354:9: error: too many arguments to function ‘set_terminal_size’; expected 0, have 3 354 | set_terminal_size(pfd, prows, pcols); | ^~~~~~~~~~~~~~~~~ ~~~ header.h:317:13: note: declared here 317 | extern void set_terminal_size( /* fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~ exec.c:355:9: error: too many arguments to function ‘set_win_region’; expected 0, have 3 355 | set_win_region(me, prows, pcols); | ^~~~~~~~~~~~~~ ~~ header.h:344:13: note: declared here 344 | extern void set_win_region( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~~~~~ exec.c: In function ‘execute’: exec.c:271:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 271 | write(1, "Warning: This pseudo-terminal is world-readable.\n", 49); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ exec.c: In function ‘update_exec’: exec.c:311:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 311 | write(pfd, io_ptr, (size_t) io_len); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:233: exec.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c menu.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' menu.c: In function ‘do_output’: menu.c:102:1: warning: old-style function definition [-Wold-style-definition] 102 | do_output(filename) | ^~~~~~~~~ menu.c:110:17: error: too many arguments to function ‘show_error’; expected 0, have 1 110 | show_error(filename); | ^~~~~~~~~~ ~~~~~~~~ In file included from menu.c:21: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ menu.c:114:9: error: too many arguments to function ‘spew_term’; expected 0, have 4 114 | spew_term(output_user, fd, output_user->rows, output_user->cols); | ^~~~~~~~~ ~~~~~~~~~~~ header.h:348:13: note: declared here 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ menu.c: In function ‘do_output_user’: menu.c:119:1: warning: old-style function definition [-Wold-style-definition] 119 | do_output_user(user) | ^~~~~~~~~~~~~~ menu.c:126:21: error: too many arguments to function ‘show_mesg’; expected 0, have 2 126 | if (show_mesg("Output Terminated", NULL) >= 0) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~ In file included from menu.c:28: menu.h:40:12: note: declared here 40 | extern int show_mesg(); /* menu.c */ | ^~~~~~~~~ menu.c:133:13: error: too many arguments to function ‘show_text’; expected 0, have 2 133 | if (show_text("Output filename?", do_output) >= 0) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~ menu.h:39:12: note: declared here 39 | extern int show_text( /* prompt, func */ ); /* menu.c */ | ^~~~~~~~~ menu.c: In function ‘do_invite’: menu.c:140:1: warning: old-style function definition [-Wold-style-definition] 140 | do_invite(name) | ^~~~~~~~~ menu.c:143:9: error: too many arguments to function ‘invite’; expected 0, have 2 143 | invite(name, 1); | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ menu.c: In function ‘kill_all_unconnected’: menu.c:150:17: error: too many arguments to function ‘free_user’; expected 0, have 1 150 | free_user(wait_list); | ^~~~~~~~~ ~~~~~~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ menu.c: In function ‘main_menu_sel’: menu.c:154:1: warning: old-style function definition [-Wold-style-definition] 154 | main_menu_sel(key) | ^~~~~~~~~~~~~ menu.c:159:21: error: too many arguments to function ‘show_text’; expected 0, have 2 159 | if (show_text("Add Which User?", do_invite) >= 0) | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~ menu.h:39:12: note: declared here 39 | extern int show_text( /* prompt, func */ ); /* menu.c */ | ^~~~~~~~~ menu.c:163:21: error: too many arguments to function ‘show_user_menu’; expected 0, have 3 163 | if (show_user_menu("Delete Which User?", free_user, 0) >= 0) | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ menu.h:43:12: note: declared here 43 | extern int show_user_menu( /* title, func */ ); /* menu.c */ | ^~~~~~~~~~~~~~ menu.c:180:17: error: too many arguments to function ‘execute’; expected 0, have 1 180 | execute(NULL); | ^~~~~~~ ~~~~ header.h:395:13: note: declared here 395 | extern void execute( /* command */ ); /* exec.c */ | ^~~~~~~ menu.c:187:21: error: too many arguments to function ‘show_user_menu’; expected 0, have 3 187 | if (show_user_menu("Output Which User?", do_output_user, 1) >= 0) | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ menu.h:43:12: note: declared here 43 | extern int show_user_menu( /* title, func */ ); /* menu.c */ | ^~~~~~~~~~~~~~ menu.c:191:17: error: too many arguments to function ‘bail’; expected 0, have 1 191 | bail(YTE_SUCCESS); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ menu.c: In function ‘option_menu_sel’: menu.c:196:1: warning: old-style function definition [-Wold-style-definition] 196 | option_menu_sel(key) | ^~~~~~~~~~~~~~~ menu.c: In function ‘user_menu_sel’: menu.c:239:1: warning: old-style function definition [-Wold-style-definition] 239 | user_menu_sel(key) | ^~~~~~~~~~~~~ menu.c:255:41: error: too many arguments to function ‘user_menu[0].func’; expected 0, have 1 255 | user_menu[0].func(u); | ^~~~~~~~~ ~ menu.h:28:16: note: declared here 28 | void (*func) (); /* function to call */ | ^~~~ menu.c: In function ‘pad_str’: menu.c:282:1: warning: old-style function definition [-Wold-style-definition] 282 | pad_str(from, len, to) | ^~~~~~~ menu.c: In function ‘kill_menu’: menu.c:305:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 305 | redraw_term(me, 0); | ^~~~~~~~~~~ ~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ menu.c:306:17: error: too many arguments to function ‘flush_term’; expected 0, have 1 306 | flush_term(me); | ^~~~~~~~~~ ~~ header.h:330:13: note: declared here 330 | extern void flush_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ menu.c: In function ‘update_menu’: menu.c:349:57: error: too many arguments to function ‘raw_term’; expected 0, have 5 349 | raw_term(me, text_ypos, text_xpos + text_pos, | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:357:57: error: too many arguments to function ‘raw_term’; expected 0, have 5 357 | raw_term(me, text_ypos, text_xpos + text_pos, | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:365:57: error: too many arguments to function ‘raw_term’; expected 0, have 5 365 | raw_term(me, text_ypos, text_xpos, | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:372:49: error: too many arguments to function ‘text_menu[0].func’; expected 0, have 1 372 | text_menu[0].func(text_str); | ^~~~~~~~~ ~~~~~~~~ menu.h:28:16: note: declared here 28 | void (*func) (); /* function to call */ | ^~~~ menu.c:382:33: error: too many arguments to function ‘raw_term’; expected 0, have 5 382 | raw_term(me, text_ypos, text_xpos + text_pos, NULL, 0); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:383:33: error: too many arguments to function ‘flush_term’; expected 0, have 1 383 | flush_term(me); | ^~~~~~~~~~ ~~ header.h:330:13: note: declared here 330 | extern void flush_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ menu.c:393:33: error: too many arguments to function ‘mesg_menu[0].func’; expected 0, have 1 393 | mesg_menu[0].func(ic); | ^~~~~~~~~ ~~ menu.h:28:16: note: declared here 28 | void (*func) (); /* function to call */ | ^~~~ menu.c:412:49: error: too many arguments to function ‘(menu_ptr + (sizetype)((long unsigned int)i * 24))->func’; expected 0, have 1 412 | menu_ptr[i].func(ic); | ^~~~~~~~ ~~ menu.h:28:16: note: declared here 28 | void (*func) (); /* function to call */ | ^~~~ menu.c:444:33: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 444 | buf = (ychar *) realloc_mem(buf, buflen + MENU_EXTRA); | ^~~~~~~~~~~ ~~~ In file included from menu.c:22: mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ menu.c:448:13: error: too many arguments to function ‘center’; expected 0, have 2 448 | x = center(me->t_cols, menu_long + MENU_EXTRA); | ^~~~~~ ~~~~~~~~~~ header.h:349:12: note: declared here 349 | extern int center( /* width, n */ ); /* term.c */ | ^~~~~~ menu.c:451:29: error: too many arguments to function ‘center’; expected 0, have 2 451 | y = center(me->t_rows, menu_len + 2); | ^~~~~~ ~~~~~~~~~~ header.h:349:12: note: declared here 349 | extern int center( /* width, n */ ); /* term.c */ | ^~~~~~ menu.c:452:25: error: too many arguments to function ‘raw_term’; expected 0, have 5 452 | raw_term(me, y++, x, "#####", menu_long + MENU_EXTRA); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:476:40: error: too many arguments to function ‘center’; expected 0, have 2 476 | temp = center(menu_long + 3, strlen(menu_ptr[i].item)); | ^~~~~~ ~~~~~~~~~~~~~ header.h:349:12: note: declared here 349 | extern int center( /* width, n */ ); /* term.c */ | ^~~~~~ menu.c:495:17: error: too many arguments to function ‘raw_term’; expected 0, have 5 495 | raw_term(me, y, x, buf, c - buf); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:511:25: error: too many arguments to function ‘raw_term’; expected 0, have 5 511 | raw_term(me, y, x, buf, c - buf); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:512:25: error: too many arguments to function ‘raw_term’; expected 0, have 5 512 | raw_term(me, y, x + 12, NULL, 0); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:514:25: error: too many arguments to function ‘raw_term’; expected 0, have 5 514 | raw_term(me, y, x, "#####", menu_long + MENU_EXTRA); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:516:33: error: too many arguments to function ‘raw_term’; expected 0, have 5 516 | raw_term(me, text_ypos, text_xpos + text_pos, NULL, 0); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:518:33: error: too many arguments to function ‘raw_term’; expected 0, have 5 518 | raw_term(me, y - 1, x + menu_long + MENU_EXTRA - 2, NULL, 0); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:520:33: error: too many arguments to function ‘raw_term’; expected 0, have 5 520 | raw_term(me, y, me->t_cols / 2, NULL, 0); | ^~~~~~~~ ~~ menu.c:47:13: note: declared here 47 | extern void raw_term(); /* our raw interface to the terminal */ | ^~~~~~~~ menu.c:523:9: error: too many arguments to function ‘flush_term’; expected 0, have 1 523 | flush_term(me); | ^~~~~~~~~~ ~~ header.h:330:13: note: declared here 330 | extern void flush_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ menu.c: In function ‘show_menu’: menu.c:530:1: warning: old-style function definition [-Wold-style-definition] 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c:533:1: error: number of arguments doesn’t match prototype 533 | { | ^ menu.h:38:12: error: prototype declaration 38 | extern int show_menu( /* menuptr, len */ ); /* menu.c */ | ^~~~~~~~~ menu.c:537:17: error: too many arguments to function ‘show_error’; expected 0, have 1 537 | show_error("show_menu: window too small"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ menu.c:547:25: error: too many arguments to function ‘show_error’; expected 0, have 1 547 | show_error("show_menu: invalid key"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ menu.c:552:17: error: too many arguments to function ‘show_error’; expected 0, have 1 552 | show_error("show_menu: menu too small"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ menu.c: In function ‘show_text’: menu.c:571:1: warning: old-style function definition [-Wold-style-definition] 571 | show_text(prompt, func) | ^~~~~~~~~ menu.c:574:1: error: number of arguments doesn’t match prototype 574 | { | ^ menu.h:39:12: error: prototype declaration 39 | extern int show_text( /* prompt, func */ ); /* menu.c */ | ^~~~~~~~~ menu.c:576:17: error: too many arguments to function ‘show_error’; expected 0, have 1 576 | show_error("show_text: window too small"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ menu.c: In function ‘show_mesg’: menu.c:605:1: warning: old-style function definition [-Wold-style-definition] 605 | show_mesg(mesg, func) | ^~~~~~~~~ menu.c:608:1: error: number of arguments doesn’t match prototype 608 | { | ^ menu.h:40:12: error: prototype declaration 40 | extern int show_mesg(); /* menu.c */ | ^~~~~~~~~ menu.c:615:16: error: too many arguments to function ‘show_menu’; expected 0, have 2 615 | return show_menu(mesg_menu, 1); | ^~~~~~~~~ ~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘show_main_menu’: menu.c:627:16: error: too many arguments to function ‘show_menu’; expected 0, have 2 627 | return show_menu(main_menu, main_items); | ^~~~~~~~~ ~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘show_option_menu’: menu.c:701:16: error: too many arguments to function ‘show_menu’; expected 0, have 2 701 | return show_menu(option_menu, i); | ^~~~~~~~~ ~~~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘show_user_menu’: menu.c:705:1: warning: old-style function definition [-Wold-style-definition] 705 | show_user_menu(title, func, metoo) | ^~~~~~~~~~~~~~ menu.c:709:1: error: number of arguments doesn’t match prototype 709 | { | ^ menu.h:43:12: error: prototype declaration 43 | extern int show_user_menu( /* title, func */ ); /* menu.c */ | ^~~~~~~~~~~~~~ menu.c:732:24: error: too many arguments to function ‘show_menu’; expected 0, have 2 732 | return show_menu(user_menu, i); | ^~~~~~~~~ ~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘stalkversion’: menu.c:738:1: warning: old-style function definition [-Wold-style-definition] 738 | stalkversion(user, buf, len) | ^~~~~~~~~~~~ menu.c:742:1: error: number of arguments doesn’t match prototype 742 | { | ^ menu.h:47:13: error: prototype declaration 47 | extern void stalkversion( /* yuser, buf, len */ ); /* menu.c */ | ^~~~~~~~~~~~ menu.c: In function ‘show_user_list’: menu.c:794:25: error: too many arguments to function ‘stalkversion’; expected 0, have 3 794 | stalkversion(u, stat_buf, sizeof(stat_buf)); | ^~~~~~~~~~~~ ~ menu.c:738:1: note: declared here 738 | stalkversion(user, buf, len) | ^~~~~~~~~~~~ menu.c:823:16: error: too many arguments to function ‘show_menu’; expected 0, have 2 823 | return show_menu(user_menu, i); | ^~~~~~~~~ ~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘show_error_menu’: menu.c:827:1: warning: old-style function definition [-Wold-style-definition] 827 | show_error_menu(str1, str2) | ^~~~~~~~~~~~~~~ menu.c:829:1: error: number of arguments doesn’t match prototype 829 | { | ^ menu.h:44:12: error: prototype declaration 44 | extern int show_error_menu( /* str1, str2 */ ); /* menu.c */ | ^~~~~~~~~~~~~~~ menu.c:843:32: error: too many arguments to function ‘show_menu’; expected 0, have 2 843 | return show_menu(error_menu, i); | ^~~~~~~~~ ~~~~~~~~~~ menu.c:530:1: note: declared here 530 | show_menu(menu, len) | ^~~~~~~~~ menu.c: In function ‘yes_no’: menu.c:853:1: warning: old-style function definition [-Wold-style-definition] 853 | yes_no(prompt) | ^~~~~~ menu.c:855:1: error: number of arguments doesn’t match prototype 855 | { | ^ menu.h:45:12: error: prototype declaration 45 | extern int yes_no( /* prompt */ ); /* menu.c */ | ^~~~~~ menu.c:860:13: error: too many arguments to function ‘str_copy’; expected 0, have 1 860 | p = str_copy(prompt); | ^~~~~~~~ ~~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ menu.c:895:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 895 | free_mem(p); | ^~~~~~~~ ~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ menu.c: In function ‘update_user_menu’: menu.c:905:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 905 | redraw_term(me, 0); | ^~~~~~~~~~~ ~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ menu.c:907:25: error: too many arguments to function ‘show_user_menu’; expected 0, have 3 907 | show_user_menu(user_menu[0].item, user_menu[0].func, user_menu[0].key - ' '); | ^~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ menu.c:705:1: note: declared here 705 | show_user_menu(title, func, metoo) | ^~~~~~~~~~~~~~ make[2]: *** [Makefile:233: menu.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c socket.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' socket.c: In function ‘init_dgram’: socket.c:75:1: warning: old-style function definition [-Wold-style-definition] 75 | init_dgram(sock) | ^~~~~~~~~~ socket.c:85:17: error: too many arguments to function ‘show_error’; expected 0, have 1 85 | show_error("init_dgram: socket() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from socket.c:23: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:86:17: error: too many arguments to function ‘bail’; expected 0, have 1 86 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ socket.c:90:17: error: too many arguments to function ‘show_error’; expected 0, have 1 90 | show_error("init_dgram: bind() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:91:17: error: too many arguments to function ‘bail’; expected 0, have 1 91 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ socket.c:96:17: error: too many arguments to function ‘show_error’; expected 0, have 1 96 | show_error("init_dgram: getsockname() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:97:17: error: too many arguments to function ‘bail’; expected 0, have 1 97 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ socket.c: In function ‘init_daemon’: socket.c:107:1: warning: old-style function definition [-Wold-style-definition] 107 | init_daemon(name, port, mptr, mlen, rptr, rlen) | ^~~~~~~~~~~ socket.c:117:17: error: too many arguments to function ‘show_error’; expected 0, have 1 117 | show_error("init_daemon: too many daemons"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:118:17: error: too many arguments to function ‘bail’; expected 0, have 1 118 | bail(YTE_ERROR); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ socket.c: In function ‘read_autoport’: socket.c:136:1: warning: old-style function definition [-Wold-style-definition] 136 | read_autoport(fd) | ^~~~~~~~~~~~~ socket.c:144:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 144 | pack = get_mem(sizeof(v2_pack)); | ^~~~~~~ ~~~~~~~~~~~~~~~ In file included from socket.c:26: mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ socket.c:150:17: error: too many arguments to function ‘show_error’; expected 0, have 1 150 | show_error("read_autoport: accept() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:151:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 151 | free_mem(pack); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c:158:13: error: too many arguments to function ‘full_read’; expected 0, have 3 158 | if (full_read(fd, (char *) pack, V2_PACKLEN) < 0 || pack->code != V2_AUTO) { | ^~~~~~~~~ ~~ header.h:364:12: note: declared here 364 | extern int full_read( /* fd, buf, len */ ); /* fd.c */ | ^~~~~~~~~ socket.c:159:17: error: too many arguments to function ‘show_error’; expected 0, have 1 159 | show_error("read_autoport: unknown auto-invite connection"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:161:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 161 | free_mem(pack); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c:170:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 170 | estr = get_mem(V2_NAMELEN + V2_HOSTLEN + 20); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ socket.c:178:21: error: too many arguments to function ‘yes_no’; expected 0, have 1 178 | if (yes_no(estr) == 'n') { | ^~~~~~ ~~~~ In file included from socket.c:24: menu.h:45:12: note: declared here 45 | extern int yes_no( /* prompt */ ); /* menu.c */ | ^~~~~~ socket.c:179:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 179 | free_mem(estr); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c:180:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 180 | free_mem(pack); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c:189:16: error: too many arguments to function ‘invite’; expected 0, have 2 189 | (void) invite(estr, 1); /* we should be expected */ | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ socket.c:190:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 190 | free_mem(estr); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c:191:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 191 | free_mem(pack); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ socket.c: In function ‘init_autoport’: socket.c:206:17: error: too many arguments to function ‘show_error’; expected 0, have 1 206 | show_error("init_autoport: socket() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:213:17: error: too many arguments to function ‘show_error’; expected 0, have 1 213 | show_error("init_autoport: bind() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:220:17: error: too many arguments to function ‘show_error’; expected 0, have 1 220 | show_error("init_autoport: getsockname() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:227:17: error: too many arguments to function ‘show_error’; expected 0, have 1 227 | show_error("init_autoport: listen() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:231:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 231 | add_fd(autofd, read_autoport); | ^~~~~~ ~~~~~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ socket.c: In function ‘place_my_address’: socket.c:239:1: warning: old-style function definition [-Wold-style-definition] 239 | place_my_address(sock, addr) | ^~~~~~~~~~~~~~~~ socket.c: In function ‘sendit’: socket.c:263:1: warning: old-style function definition [-Wold-style-definition] 263 | sendit(addr, d) | ^~~~~~ socket.c:297:17: error: too many arguments to function ‘show_error’; expected 0, have 1 297 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:315:25: error: too many arguments to function ‘show_error’; expected 0, have 1 315 | show_error("sendit: flush select() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:321:25: error: too many arguments to function ‘show_error’; expected 0, have 1 321 | show_error("sendit: flush recv() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:338:33: error: too many arguments to function ‘show_error’; expected 0, have 1 338 | show_error("sendit: sendto() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:345:33: error: too many arguments to function ‘show_error’; expected 0, have 1 345 | show_error("sendit: first select() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:353:33: error: too many arguments to function ‘show_error’; expected 0, have 1 353 | show_error("sendit: recv() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:363:33: error: too many arguments to function ‘show_error’; expected 0, have 1 363 | show_error("sendit: second select() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘find_daemon’: socket.c:409:1: warning: old-style function definition [-Wold-style-definition] 409 | find_daemon(addr) | ^~~~~~~~~~~ socket.c:455:25: error: too many arguments to function ‘show_error’; expected 0, have 1 455 | show_error("Warning: cannot write to new talk daemon"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:461:25: error: too many arguments to function ‘show_error’; expected 0, have 1 461 | show_error("Warning: cannot write to old talk daemon"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:474:25: error: too many arguments to function ‘show_error’; expected 0, have 1 474 | show_error("find_daemon: first select() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:490:57: error: too many arguments to function ‘show_error’; expected 0, have 1 490 | show_error("find_daemon: recv() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:501:33: error: too many arguments to function ‘show_error’; expected 0, have 1 501 | show_error("find_daemon: second select() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:504:34: error: too many arguments to function ‘get_mem’; expected 0, have 1 504 | h = (hostinfo *) get_mem(sizeof(hostinfo)); | ^~~~~~~ ~~~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ socket.c:513:58: error: too many arguments to function ‘host_name’; expected 0, have 1 513 | snprintf(errstr, MAXERR, "No talk daemon on %s", host_name(addr)); | ^~~~~~~~~ ~~~~ header.h:389:14: note: declared here 389 | extern char *host_name( /* addr */ ); /* socket.c */ | ^~~~~~~~~ socket.c:517:9: error: too many arguments to function ‘show_error’; expected 0, have 1 517 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘make_net_mask’: socket.c:522:1: warning: old-style function definition [-Wold-style-definition] 522 | make_net_mask(addr) | ^~~~~~~~~~~~~ socket.c: In function ‘send_dgram’: socket.c:597:1: warning: old-style function definition [-Wold-style-definition] 597 | send_dgram(user, type) | ^~~~~~~~~~ socket.c:600:1: error: number of arguments doesn’t match prototype 600 | { | ^ header.h:383:12: error: prototype declaration 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ socket.c:645:17: error: too many arguments to function ‘show_error’; expected 0, have 1 645 | show_error("send_dgram: unknown type"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘send_auto’: socket.c:735:1: warning: old-style function definition [-Wold-style-definition] 735 | send_auto(type) | ^~~~~~~~~ socket.c:737:1: error: number of arguments doesn’t match prototype 737 | { | ^ header.h:384:12: error: prototype declaration 384 | extern int send_auto( /* type */ ); /* socket.c */ | ^~~~~~~~~ socket.c: In function ‘kill_auto’: socket.c:775:16: error: too many arguments to function ‘send_auto’; expected 0, have 1 775 | (void) send_auto(DELETE); | ^~~~~~~~~ socket.c:735:1: note: declared here 735 | send_auto(type) | ^~~~~~~~~ socket.c:776:9: error: too many arguments to function ‘remove_fd’; expected 0, have 1 776 | remove_fd(autofd); | ^~~~~~~~~ ~~~~~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ socket.c: In function ‘newsock’: socket.c:785:1: warning: old-style function definition [-Wold-style-definition] 785 | newsock(user) | ^~~~~~~ socket.c:787:1: error: number of arguments doesn’t match prototype 787 | { | ^ header.h:386:12: error: prototype declaration 386 | extern int newsock( /* yuser */ ); /* socket.c */ | ^~~~~~~ socket.c:795:17: error: too many arguments to function ‘show_error’; expected 0, have 1 795 | show_error("newsock: socket() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:800:17: error: too many arguments to function ‘show_error’; expected 0, have 1 800 | show_error("newsock: bind() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:806:17: error: too many arguments to function ‘show_error’; expected 0, have 1 806 | show_error("newsock: getsockname() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:812:17: error: too many arguments to function ‘show_error’; expected 0, have 1 812 | show_error("newsock: listen() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘connect_to’: socket.c:825:1: warning: old-style function definition [-Wold-style-definition] 825 | connect_to(user) | ^~~~~~~~~~ socket.c:827:1: error: number of arguments doesn’t match prototype 827 | { | ^ header.h:387:12: error: prototype declaration 387 | extern int connect_to( /* yuser */ ); /* socket.c */ | ^~~~~~~~~~ socket.c:845:17: error: too many arguments to function ‘show_error’; expected 0, have 1 845 | show_error("connect_to: socket() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:854:17: error: too many arguments to function ‘show_error’; expected 0, have 1 854 | show_error("connect_to: connect() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:860:17: error: too many arguments to function ‘show_error’; expected 0, have 1 860 | show_error("connect_to: getsockname() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘get_host_addr’: socket.c:876:1: warning: old-style function definition [-Wold-style-definition] 876 | get_host_addr(hostname) | ^~~~~~~~~~~~~ socket.c:878:1: error: number of arguments doesn’t match prototype 878 | { | ^ header.h:388:14: error: prototype declaration 388 | extern ylong get_host_addr( /* hostname */ ); /* socket.c */ | ^~~~~~~~~~~~~ socket.c:890:25: error: too many arguments to function ‘show_error’; expected 0, have 1 890 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c: In function ‘host_name’: socket.c:904:1: warning: old-style function definition [-Wold-style-definition] 904 | host_name(addr) | ^~~~~~~~~ socket.c:906:1: error: number of arguments doesn’t match prototype 906 | { | ^ header.h:389:14: error: prototype declaration 389 | extern char *host_name( /* addr */ ); /* socket.c */ | ^~~~~~~~~ socket.c: In function ‘readdress_host’: socket.c:932:1: warning: old-style function definition [-Wold-style-definition] 932 | readdress_host(from_id, to_id, on_id) | ^~~~~~~~~~~~~~ socket.c:934:1: error: number of arguments doesn’t match prototype 934 | { | ^ header.h:390:13: error: prototype declaration 390 | extern void readdress_host( /* from, to, on */ ); /* socket.c */ | ^~~~~~~~~~~~~~ socket.c:939:26: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 939 | if ((from_addr = get_host_addr(from_id)) == (ylong) -1) { | ^~~~~~~~~~~~~ ~~~~~~~ socket.c:876:1: note: declared here 876 | get_host_addr(hostname) | ^~~~~~~~~~~~~ socket.c:945:17: error: too many arguments to function ‘show_error’; expected 0, have 1 945 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:948:24: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 948 | if ((to_addr = get_host_addr(to_id)) == (ylong) -1) { | ^~~~~~~~~~~~~ ~~~~~ socket.c:876:1: note: declared here 876 | get_host_addr(hostname) | ^~~~~~~~~~~~~ socket.c:954:17: error: too many arguments to function ‘show_error’; expected 0, have 1 954 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:957:24: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 957 | if ((on_addr = get_host_addr(on_id)) == (ylong) -1) { | ^~~~~~~~~~~~~ ~~~~~ socket.c:876:1: note: declared here 876 | get_host_addr(hostname) | ^~~~~~~~~~~~~ socket.c:963:17: error: too many arguments to function ‘show_error’; expected 0, have 1 963 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ socket.c:977:26: error: too many arguments to function ‘get_mem’; expected 0, have 1 977 | new = (readdr *) get_mem(sizeof(readdr)); | ^~~~~~~ ~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ make[2]: *** [Makefile:233: socket.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c term.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' term.c: In function ‘init_termios’: term.c:92:17: error: too many arguments to function ‘show_error’; expected 0, have 1 92 | show_error("tcgetattr failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ In file included from term.c:21: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ term.c:93:17: error: too many arguments to function ‘bail’; expected 0, have 1 93 | bail(YTE_INIT); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ term.c: In function ‘init_term’: term.c:137:13: error: too many arguments to function ‘open_term’; expected 0, have 2 137 | if (open_term(me, tmpstr) < 0) { | ^~~~~~~~~ ~~ header.h:321:12: note: declared here 321 | extern int open_term( /* yuser, title */ ); /* term.c */ | ^~~~~~~~~ term.c:139:17: error: too many arguments to function ‘show_error’; expected 0, have 1 139 | show_error("init_term: open_term() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ term.c:140:17: error: too many arguments to function ‘bail’; expected 0, have 1 140 | bail(YTE_SUCCESS); | ^~~~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ term.c: In function ‘set_terminal_size’: term.c:148:1: warning: old-style function definition [-Wold-style-definition] 148 | set_terminal_size(fd, rows, cols) | ^~~~~~~~~~~~~~~~~ term.c:150:1: error: number of arguments doesn’t match prototype 150 | { | ^ header.h:317:13: error: prototype declaration 317 | extern void set_terminal_size( /* fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~ term.c: In function ‘set_terminal_flags’: term.c:164:1: warning: old-style function definition [-Wold-style-definition] 164 | set_terminal_flags(fd) | ^~~~~~~~~~~~~~~~~~ term.c:166:1: error: number of arguments doesn’t match prototype 166 | { | ^ header.h:318:13: error: prototype declaration 318 | extern void set_terminal_flags( /* fd */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~~ term.c:175:17: error: too many arguments to function ‘show_error’; expected 0, have 1 175 | show_error("tcsetattr failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ term.c: In function ‘keypad_term’: term.c:189:1: warning: old-style function definition [-Wold-style-definition] 189 | keypad_term(user, bf) | ^~~~~~~~~~~ term.c:192:1: error: number of arguments doesn’t match prototype 192 | { | ^ header.h:342:13: error: prototype declaration 342 | extern void keypad_term( /* yuser, int */ ); /* term.c */ | ^~~~~~~~~~~ term.c:196:17: error: too many arguments to function ‘keypad_curses’; expected 0, have 1 196 | keypad_curses(bf); | ^~~~~~~~~~~~~ ~~ In file included from term.c:40: cwin.h:30:13: note: declared here 30 | extern void keypad_curses( /* bool */ ); | ^~~~~~~~~~~~~ term.c: In function ‘open_term’: term.c:214:1: warning: old-style function definition [-Wold-style-definition] 214 | open_term(user, title) | ^~~~~~~~~ term.c:217:1: error: number of arguments doesn’t match prototype 217 | { | ^ header.h:321:12: error: prototype declaration 321 | extern int open_term( /* yuser, title */ ); /* term.c */ | ^~~~~~~~~ term.c:218:13: error: too many arguments to function ‘open_curses’; expected 0, have 2 218 | if (open_curses(user, title) != 0) | ^~~~~~~~~~~ ~~~~ cwin.h:23:12: note: declared here 23 | extern int open_curses( /* yuser, title */ ); | ^~~~~~~~~~~ term.c:222:17: error: too many arguments to function ‘resize_win’; expected 0, have 3 222 | resize_win(user, 24, 80); | ^~~~~~~~~~ ~~~~ header.h:343:13: note: declared here 343 | extern void resize_win( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~ term.c: In function ‘close_term’: term.c:230:1: warning: old-style function definition [-Wold-style-definition] 230 | close_term(user) | ^~~~~~~~~~ term.c:232:1: error: number of arguments doesn’t match prototype 232 | { | ^ header.h:322:13: error: prototype declaration 322 | extern void close_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ term.c:236:17: error: too many arguments to function ‘close_curses’; expected 0, have 1 236 | close_curses(user); | ^~~~~~~~~~~~ ~~~~ cwin.h:24:13: note: declared here 24 | extern void close_curses( /* yuser */ ); | ^~~~~~~~~~~~ term.c:238:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 238 | free_mem(user->scr[i]); | ^~~~~~~~ ~~~~~~~~~~~~ In file included from term.c:22: mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:239:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 239 | free_mem(user->scr); | ^~~~~~~~ ~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:241:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 241 | free_mem(user->scr_tabs); | ^~~~~~~~ ~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c: In function ‘addch_term’: term.c:252:1: warning: old-style function definition [-Wold-style-definition] 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:255:1: error: number of arguments doesn’t match prototype 255 | { | ^ header.h:323:13: error: prototype declaration 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ term.c:257:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 257 | addch_curses(user, c); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:263:33: error: too many arguments to function ‘move_curses’; expected 0, have 3 263 | move_curses(user, user->y, user->x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c: In function ‘move_term’: term.c:272:1: warning: old-style function definition [-Wold-style-definition] 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:275:1: error: number of arguments doesn’t match prototype 275 | { | ^ header.h:324:13: error: prototype declaration 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ term.c:285:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 285 | move_curses(user, y, x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c: In function ‘fill_term’: term.c:294:1: warning: old-style function definition [-Wold-style-definition] 294 | fill_term(user, y1, x1, y2, x2, c) | ^~~~~~~~~ term.c:298:1: error: number of arguments doesn’t match prototype 298 | { | ^ header.h:325:13: error: prototype declaration 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ term.c: In function ‘clreol_term’: term.c:310:1: warning: old-style function definition [-Wold-style-definition] 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:312:1: error: number of arguments doesn’t match prototype 312 | { | ^ header.h:326:13: error: prototype declaration 326 | extern void clreol_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ term.c:320:25: error: too many arguments to function ‘addch_curses’; expected 0, have 2 320 | addch_curses(user, ' '); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:322:17: error: too many arguments to function ‘move_term’; expected 0, have 3 322 | move_term(user, user->y, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:324:17: error: too many arguments to function ‘clreol_curses’; expected 0, have 1 324 | clreol_curses(user); | ^~~~~~~~~~~~~ ~~~~ cwin.h:27:13: note: declared here 27 | extern void clreol_curses( /* yuser */ ); | ^~~~~~~~~~~~~ term.c: In function ‘clreos_term’: term.c:335:1: warning: old-style function definition [-Wold-style-definition] 335 | clreos_term(user) | ^~~~~~~~~~~ term.c:337:1: error: number of arguments doesn’t match prototype 337 | { | ^ header.h:327:13: error: prototype declaration 327 | extern void clreos_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ term.c:345:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 345 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:347:25: error: too many arguments to function ‘move_term’; expected 0, have 3 347 | move_term(user, i, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:348:25: error: too many arguments to function ‘clreol_term’; expected 0, have 1 348 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:350:17: error: too many arguments to function ‘move_term’; expected 0, have 3 350 | move_term(user, y, x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:352:17: error: too many arguments to function ‘clreos_curses’; expected 0, have 1 352 | clreos_curses(user); | ^~~~~~~~~~~~~ ~~~~ cwin.h:28:13: note: declared here 28 | extern void clreos_curses( /* yuser */ ); | ^~~~~~~~~~~~~ term.c: In function ‘scroll_term’: term.c:367:1: warning: old-style function definition [-Wold-style-definition] 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:369:1: error: number of arguments doesn’t match prototype 369 | { | ^ header.h:328:13: error: prototype declaration 328 | extern void scroll_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ term.c:385:25: error: too many arguments to function ‘scroll_curses’; expected 0, have 1 385 | scroll_curses(user); | ^~~~~~~~~~~~~ ~~~~ cwin.h:29:13: note: declared here 29 | extern void scroll_curses( /* yuser */ ); | ^~~~~~~~~~~~~ term.c:387:25: error: too many arguments to function ‘redraw_term’; expected 0, have 2 387 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ term.c:391:17: error: too many arguments to function ‘move_term’; expected 0, have 3 391 | move_term(user, user->sc_top, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:392:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 392 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:393:17: error: too many arguments to function ‘move_term’; expected 0, have 3 393 | move_term(user, sy, sx); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c: In function ‘rev_scroll_term’: term.c:401:1: warning: old-style function definition [-Wold-style-definition] 401 | rev_scroll_term(user) | ^~~~~~~~~~~~~~~ term.c:403:1: error: number of arguments doesn’t match prototype 403 | { | ^ header.h:329:13: error: prototype declaration 329 | extern void rev_scroll_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~~~~ term.c:415:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 415 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ term.c:419:17: error: too many arguments to function ‘move_term’; expected 0, have 3 419 | move_term(user, user->sc_top, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:420:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 420 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:421:17: error: too many arguments to function ‘move_term’; expected 0, have 3 421 | move_term(user, sy, sx); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c: In function ‘flush_term’: term.c:429:1: warning: old-style function definition [-Wold-style-definition] 429 | flush_term(user) | ^~~~~~~~~~ term.c:431:1: error: number of arguments doesn’t match prototype 431 | { | ^ header.h:330:13: error: prototype declaration 330 | extern void flush_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ term.c:432:9: error: too many arguments to function ‘flush_curses’; expected 0, have 1 432 | flush_curses(user); | ^~~~~~~~~~~~ ~~~~ cwin.h:31:13: note: declared here 31 | extern void flush_curses( /* yuser */ ); | ^~~~~~~~~~~~ term.c: In function ‘rub_term’: term.c:439:1: warning: old-style function definition [-Wold-style-definition] 439 | rub_term(user) | ^~~~~~~~ term.c:441:1: error: number of arguments doesn’t match prototype 441 | { | ^ header.h:331:13: error: prototype declaration 331 | extern void rub_term( /* yuser */ ); /* term.c */ | ^~~~~~~~ term.c:446:25: error: too many arguments to function ‘addch_term’; expected 0, have 2 446 | addch_term(user, ' '); | ^~~~~~~~~~ ~~~~ term.c:252:1: note: declared here 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:449:25: error: too many arguments to function ‘move_term’; expected 0, have 3 449 | move_term(user, user->y, user->x - 1); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:450:25: error: too many arguments to function ‘addch_term’; expected 0, have 2 450 | addch_term(user, ' '); | ^~~~~~~~~~ ~~~~ term.c:252:1: note: declared here 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:451:25: error: too many arguments to function ‘move_term’; expected 0, have 3 451 | move_term(user, user->y, user->x - 1); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c: In function ‘word_term’: term.c:461:1: warning: old-style function definition [-Wold-style-definition] 461 | word_term(user) | ^~~~~~~~~ term.c:463:1: error: number of arguments doesn’t match prototype 463 | { | ^ header.h:332:13: error: prototype declaration 332 | extern void word_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~ term.c:472:9: error: too many arguments to function ‘move_term’; expected 0, have 3 472 | move_term(user, user->y, x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:473:9: error: too many arguments to function ‘clreol_term’; expected 0, have 1 473 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c: In function ‘kill_term’: term.c:481:1: warning: old-style function definition [-Wold-style-definition] 481 | kill_term(user) | ^~~~~~~~~ term.c:483:1: error: number of arguments doesn’t match prototype 483 | { | ^ header.h:333:13: error: prototype declaration 333 | extern void kill_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~ term.c:485:17: error: too many arguments to function ‘move_term’; expected 0, have 3 485 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:486:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 486 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c: In function ‘tab_term’: term.c:494:1: warning: old-style function definition [-Wold-style-definition] 494 | tab_term(user) | ^~~~~~~~ term.c:496:1: error: number of arguments doesn’t match prototype 496 | { | ^ header.h:334:13: error: prototype declaration 334 | extern void tab_term( /* yuser */ ); /* term.c */ | ^~~~~~~~ term.c:502:33: error: too many arguments to function ‘move_term’; expected 0, have 3 502 | move_term(user, user->y, i); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c: In function ‘lf_term’: term.c:513:1: warning: old-style function definition [-Wold-style-definition] 513 | lf_term(user) | ^~~~~~~ term.c:515:1: error: number of arguments doesn’t match prototype 515 | { | ^ header.h:336:13: error: prototype declaration 336 | extern void lf_term( /* yuser */ ); /* term.c */ | ^~~~~~~ term.c:522:33: error: too many arguments to function ‘scroll_term’; expected 0, have 1 522 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ term.c:367:1: note: declared here 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:524:17: error: too many arguments to function ‘move_term’; expected 0, have 3 524 | move_term(user, new_y, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:528:33: error: too many arguments to function ‘scroll_term’; expected 0, have 1 528 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ term.c:367:1: note: declared here 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:529:33: error: too many arguments to function ‘move_term’; expected 0, have 3 529 | move_term(user, user->y, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:538:25: error: too many arguments to function ‘move_term’; expected 0, have 3 538 | move_term(user, next_y, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:539:25: error: too many arguments to function ‘clreol_term’; expected 0, have 1 539 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:541:17: error: too many arguments to function ‘move_term’; expected 0, have 3 541 | move_term(user, new_y, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c: In function ‘newline_term’: term.c:549:1: warning: old-style function definition [-Wold-style-definition] 549 | newline_term(user) | ^~~~~~~~~~~~ term.c:551:1: error: number of arguments doesn’t match prototype 551 | { | ^ header.h:335:13: error: prototype declaration 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ term.c:558:33: error: too many arguments to function ‘scroll_term’; expected 0, have 1 558 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ term.c:367:1: note: declared here 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:560:17: error: too many arguments to function ‘move_term’; expected 0, have 3 560 | move_term(user, new_y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:564:33: error: too many arguments to function ‘scroll_term’; expected 0, have 1 564 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ term.c:367:1: note: declared here 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:565:33: error: too many arguments to function ‘move_term’; expected 0, have 3 565 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:574:25: error: too many arguments to function ‘move_term’; expected 0, have 3 574 | move_term(user, next_y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:575:25: error: too many arguments to function ‘clreol_term’; expected 0, have 1 575 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:577:17: error: too many arguments to function ‘move_term’; expected 0, have 3 577 | move_term(user, new_y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:578:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 578 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c: In function ‘add_line_term’: term.c:586:1: warning: old-style function definition [-Wold-style-definition] 586 | add_line_term(user, num) | ^~~~~~~~~~~~~ term.c:589:1: error: number of arguments doesn’t match prototype 589 | { | ^ header.h:337:13: error: prototype declaration 337 | extern void add_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ term.c:594:17: error: too many arguments to function ‘rev_scroll_term’; expected 0, have 1 594 | rev_scroll_term(user); | ^~~~~~~~~~~~~~~ ~~~~ term.c:401:1: note: declared here 401 | rev_scroll_term(user) | ^~~~~~~~~~~~~~~ term.c:601:25: error: too many arguments to function ‘move_term’; expected 0, have 3 601 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:602:25: error: too many arguments to function ‘clreos_term’; expected 0, have 1 602 | clreos_term(user); | ^~~~~~~~~~~ ~~~~ term.c:335:1: note: declared here 335 | clreos_term(user) | ^~~~~~~~~~~ term.c:603:25: error: too many arguments to function ‘move_term’; expected 0, have 3 603 | move_term(user, user->y, i); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:620:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 620 | redraw_term(user, user->y); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ term.c: In function ‘del_line_term’: term.c:628:1: warning: old-style function definition [-Wold-style-definition] 628 | del_line_term(user, num) | ^~~~~~~~~~~~~ term.c:631:1: error: number of arguments doesn’t match prototype 631 | { | ^ header.h:338:13: error: prototype declaration 338 | extern void del_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ term.c:636:17: error: too many arguments to function ‘scroll_term’; expected 0, have 1 636 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ term.c:367:1: note: declared here 367 | scroll_term(user) | ^~~~~~~~~~~ term.c:642:25: error: too many arguments to function ‘move_term’; expected 0, have 3 642 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:643:25: error: too many arguments to function ‘clreos_term’; expected 0, have 1 643 | clreos_term(user); | ^~~~~~~~~~~ ~~~~ term.c:335:1: note: declared here 335 | clreos_term(user) | ^~~~~~~~~~~ term.c:644:25: error: too many arguments to function ‘move_term’; expected 0, have 3 644 | move_term(user, user->y, i); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:661:17: error: too many arguments to function ‘redraw_term’; expected 0, have 2 661 | redraw_term(user, user->y); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ term.c: In function ‘copy_text’: term.c:666:1: warning: old-style function definition [-Wold-style-definition] 666 | copy_text(fr, to, count) | ^~~~~~~~~ term.c: In function ‘add_char_term’: term.c:685:1: warning: old-style function definition [-Wold-style-definition] 685 | add_char_term(user, num) | ^~~~~~~~~~~~~ term.c:688:1: error: number of arguments doesn’t match prototype 688 | { | ^ header.h:339:13: error: prototype declaration 339 | extern void add_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ term.c:699:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 699 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:709:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 709 | addch_curses(user, ' '); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:712:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 712 | addch_curses(user, *(c++)); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:713:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 713 | move_curses(user, user->y, user->x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c: In function ‘del_char_term’: term.c:720:1: warning: old-style function definition [-Wold-style-definition] 720 | del_char_term(user, num) | ^~~~~~~~~~~~~ term.c:723:1: error: number of arguments doesn’t match prototype 723 | { | ^ header.h:340:13: error: prototype declaration 340 | extern void del_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ term.c:734:17: error: too many arguments to function ‘clreol_term’; expected 0, have 1 734 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:743:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 743 | addch_curses(user, *(c++)); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:746:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 746 | addch_curses(user, ' '); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:748:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 748 | move_curses(user, user->y, user->x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c: In function ‘redraw_term’: term.c:755:1: warning: old-style function definition [-Wold-style-definition] 755 | redraw_term(user, y) | ^~~~~~~~~~~ term.c:758:1: error: number of arguments doesn’t match prototype 758 | { | ^ header.h:341:13: error: prototype declaration 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ term.c:763:17: error: too many arguments to function ‘move_curses’; expected 0, have 3 763 | move_curses(user, y, 0); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c:764:17: error: too many arguments to function ‘clreol_curses’; expected 0, have 1 764 | clreol_curses(user); | ^~~~~~~~~~~~~ ~~~~ cwin.h:27:13: note: declared here 27 | extern void clreol_curses( /* yuser */ ); | ^~~~~~~~~~~~~ term.c:774:57: error: too many arguments to function ‘addch_curses’; expected 0, have 2 774 | addch_curses(user, ' '); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:776:49: error: too many arguments to function ‘move_curses’; expected 0, have 3 776 | move_curses(user, y, x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c:780:33: error: too many arguments to function ‘addch_curses’; expected 0, have 2 780 | addch_curses(user, *c); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:789:17: error: too many arguments to function ‘move_curses’; expected 0, have 3 789 | move_curses(user, user->y, user->x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c: In function ‘first_interesting_row’: term.c:797:1: warning: old-style function definition [-Wold-style-definition] 797 | first_interesting_row(user, height, width) | ^~~~~~~~~~~~~~~~~~~~~ term.c: In function ‘resize_win’: term.c:830:1: warning: old-style function definition [-Wold-style-definition] 830 | resize_win(user, height, width) | ^~~~~~~~~~ term.c:833:1: error: number of arguments doesn’t match prototype 833 | { | ^ header.h:343:13: error: prototype declaration 343 | extern void resize_win( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~ term.c:845:30: error: too many arguments to function ‘get_mem’; expected 0, have 1 845 | new_scr = (ychar **) get_mem(height * sizeof(ychar *)); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ term.c:857:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 857 | free_mem(user->scr[j]); | ^~~~~~~~ ~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:858:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 858 | free_mem(user->scr); | ^~~~~~~~ ~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:873:25: error: too many arguments to function ‘free_mem’; expected 0, have 1 873 | free_mem(user->scr[j]); | ^~~~~~~~ ~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:876:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 876 | free_mem(user->scr); | ^~~~~~~~ ~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ term.c:884:50: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 884 | user->scr[i] = (ychar *) realloc_mem(user->scr[i], width); | ^~~~~~~~~~~ ~~~~~~~~~~~~ mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ term.c:889:34: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 889 | user->scr_tabs = realloc_mem(user->scr_tabs, width * sizeof(char)); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~ mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ term.c:900:46: error: too many arguments to function ‘get_mem’; expected 0, have 1 900 | c = user->scr[i] = (ychar *) get_mem(width); | ^~~~~~~ ~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ term.c:911:9: error: too many arguments to function ‘move_term’; expected 0, have 3 911 | move_term(user, y_pos, user->x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:912:9: error: too many arguments to function ‘send_winch’; expected 0, have 1 912 | send_winch(user); | ^~~~~~~~~~ ~~~~ header.h:371:13: note: declared here 371 | extern void send_winch( /* yuser */ ); /* comm.c */ | ^~~~~~~~~~ term.c:913:9: error: too many arguments to function ‘redraw_term’; expected 0, have 2 913 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ term.c:755:1: note: declared here 755 | redraw_term(user, y) | ^~~~~~~~~~~ term.c:914:9: error: too many arguments to function ‘flush_term’; expected 0, have 1 914 | flush_term(user); | ^~~~~~~~~~ ~~~~ term.c:429:1: note: declared here 429 | flush_term(user) | ^~~~~~~~~~ term.c: In function ‘draw_box’: term.c:925:1: warning: old-style function definition [-Wold-style-definition] 925 | draw_box(user, height, width, c) | ^~~~~~~~ term.c:934:25: error: too many arguments to function ‘move_term’; expected 0, have 3 934 | move_term(user, i, width); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:935:25: error: too many arguments to function ‘addch_term’; expected 0, have 2 935 | addch_term(user, c); | ^~~~~~~~~~ ~~~~ term.c:252:1: note: declared here 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:937:33: error: too many arguments to function ‘clreol_term’; expected 0, have 1 937 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:941:17: error: too many arguments to function ‘move_term’; expected 0, have 3 941 | move_term(user, height, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:943:25: error: too many arguments to function ‘addch_term’; expected 0, have 2 943 | addch_term(user, c); | ^~~~~~~~~~ ~~~~ term.c:252:1: note: declared here 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:945:25: error: too many arguments to function ‘addch_term’; expected 0, have 2 945 | addch_term(user, c); | ^~~~~~~~~~ ~~~~ term.c:252:1: note: declared here 252 | addch_term(user, c) | ^~~~~~~~~~ term.c:947:25: error: too many arguments to function ‘clreol_term’; expected 0, have 1 947 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ term.c:310:1: note: declared here 310 | clreol_term(user) | ^~~~~~~~~~~ term.c:949:25: error: too many arguments to function ‘move_term’; expected 0, have 3 949 | move_term(user, height + 1, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:950:25: error: too many arguments to function ‘clreos_term’; expected 0, have 1 950 | clreos_term(user); | ^~~~~~~~~~~ ~~~~ term.c:335:1: note: declared here 335 | clreos_term(user) | ^~~~~~~~~~~ term.c: In function ‘set_win_region’: term.c:959:1: warning: old-style function definition [-Wold-style-definition] 959 | set_win_region(user, height, width) | ^~~~~~~~~~~~~~ term.c:962:1: error: number of arguments doesn’t match prototype 962 | { | ^ header.h:344:13: error: prototype declaration 344 | extern void set_win_region( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~~~~~ term.c:988:17: error: too many arguments to function ‘move_term’; expected 0, have 3 988 | move_term(user, 0, 0); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:989:17: error: too many arguments to function ‘clreos_term’; expected 0, have 1 989 | clreos_term(user); | ^~~~~~~~~~~ ~~~~ term.c:335:1: note: declared here 335 | clreos_term(user) | ^~~~~~~~~~~ term.c:1000:9: error: too many arguments to function ‘move_term’; expected 0, have 3 1000 | move_term(user, y, x); | ^~~~~~~~~ ~~~~ term.c:272:1: note: declared here 272 | move_term(user, y, x) | ^~~~~~~~~ term.c:1001:9: error: too many arguments to function ‘flush_term’; expected 0, have 1 1001 | flush_term(user); | ^~~~~~~~~~ ~~~~ term.c:429:1: note: declared here 429 | flush_term(user) | ^~~~~~~~~~ term.c: In function ‘end_win_region’: term.c:1011:1: warning: old-style function definition [-Wold-style-definition] 1011 | end_win_region(user) | ^~~~~~~~~~~~~~ term.c:1013:1: error: number of arguments doesn’t match prototype 1013 | { | ^ header.h:345:13: error: prototype declaration 345 | extern void end_win_region( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~~~ term.c: In function ‘set_scroll_region’: term.c:1033:1: warning: old-style function definition [-Wold-style-definition] 1033 | set_scroll_region(user, top, bottom) | ^~~~~~~~~~~~~~~~~ term.c:1036:1: error: number of arguments doesn’t match prototype 1036 | { | ^ header.h:346:13: error: prototype declaration 346 | extern void set_scroll_region( /* yuser, top, bottom */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~ term.c: In function ‘msg_term’: term.c:1051:1: warning: old-style function definition [-Wold-style-definition] 1051 | msg_term(user, str) | ^~~~~~~~ term.c:1054:1: error: number of arguments doesn’t match prototype 1054 | { | ^ header.h:347:13: error: prototype declaration 347 | extern void msg_term( /* yuser, str */ ); /* term.c */ | ^~~~~~~~ term.c:1059:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 1059 | move_curses(user, y, 0); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c:1060:9: error: too many arguments to function ‘addch_curses’; expected 0, have 2 1060 | addch_curses(user, '['); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:1062:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 1062 | addch_curses(user, *(str++)); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:1063:9: error: too many arguments to function ‘addch_curses’; expected 0, have 2 1063 | addch_curses(user, ']'); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c:1064:9: error: too many arguments to function ‘clreol_curses’; expected 0, have 1 1064 | clreol_curses(user); | ^~~~~~~~~~~~~ ~~~~ cwin.h:27:13: note: declared here 27 | extern void clreol_curses( /* yuser */ ); | ^~~~~~~~~~~~~ term.c:1065:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 1065 | move_curses(user, user->y, user->x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c:1066:9: error: too many arguments to function ‘flush_curses’; expected 0, have 1 1066 | flush_curses(user); | ^~~~~~~~~~~~ ~~~~ cwin.h:31:13: note: declared here 31 | extern void flush_curses( /* yuser */ ); | ^~~~~~~~~~~~ term.c: In function ‘spew_term’: term.c:1073:1: warning: old-style function definition [-Wold-style-definition] 1073 | spew_term(user, fd, rows, cols) | ^~~~~~~~~ term.c:1076:1: error: number of arguments doesn’t match prototype 1076 | { | ^ header.h:348:13: error: prototype declaration 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ term.c: In function ‘raw_term’: term.c:1145:1: warning: old-style function definition [-Wold-style-definition] 1145 | raw_term(user, y, x, str, len) | ^~~~~~~~ term.c:1157:9: error: too many arguments to function ‘move_curses’; expected 0, have 3 1157 | move_curses(user, y, x); | ^~~~~~~~~~~ ~~~~ cwin.h:26:13: note: declared here 26 | extern void move_curses( /* yuser, y, x */ ); | ^~~~~~~~~~~ term.c:1164:17: error: too many arguments to function ‘addch_curses’; expected 0, have 2 1164 | addch_curses(user, *c); | ^~~~~~~~~~~~ ~~~~ cwin.h:25:13: note: declared here 25 | extern void addch_curses( /* yuser, char */ ); | ^~~~~~~~~~~~ term.c: In function ‘center’: term.c:1169:1: warning: old-style function definition [-Wold-style-definition] 1169 | center(width, n) | ^~~~~~ term.c:1171:1: error: number of arguments doesn’t match prototype 1171 | { | ^ header.h:349:12: error: prototype declaration 349 | extern int center( /* width, n */ ); /* term.c */ | ^~~~~~ term.c: In function ‘spew_term’: term.c:1093:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1093 | write(fd, user->scr[y], (size_t)(e - user->scr[y])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term.c:1097:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1097 | write(fd, "\r\n", 2); | ^~~~~~~~~~~~~~~~~~~~ term.c:1099:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1099 | write(fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~ term.c:1109:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1109 | write(fd, tmp, strlen(tmp)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ term.c:1115:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1115 | write(fd, user->scr[y], (size_t)user->x); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term.c:1122:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1122 | write(fd, user->scr[y], (size_t)(e - user->scr[y])); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ term.c:1124:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1124 | write(fd, "\r\n", 2); | ^~~~~~~~~~~~~~~~~~~~ term.c:1126:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1126 | write(fd, "\n", 1); | ^~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:233: term.o] Error 1 make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c vt100.c make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' make[2]: Entering directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include/ncurses -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -c comm.c vt100.c: In function ‘vt100_process’: vt100.c:25:1: warning: old-style function definition [-Wold-style-definition] 25 | vt100_process(user, data) | ^~~~~~~~~~~~~ vt100.c:28:1: error: number of arguments doesn’t match prototype 28 | { | ^ In file included from vt100.c:22: header.h:402:13: error: prototype declaration 402 | extern void vt100_process( /* yuser, char */ ); /* vt100.c */ | ^~~~~~~~~~~~~ vt100.c:37:25: error: too many arguments to function ‘fill_term’; expected 0, have 6 37 | fill_term(user, 0, 0, user->rows - 1, user->cols - 1, 'E'); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:38:25: error: too many arguments to function ‘redraw_term’; expected 0, have 2 38 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:59:17: error: too many arguments to function ‘newline_term’; expected 0, have 1 59 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ vt100.c:71:25: error: too many arguments to function ‘move_term’; expected 0, have 3 71 | move_term(user, user->y, user->x - 1); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:74:17: error: too many arguments to function ‘lf_term’; expected 0, have 1 74 | lf_term(user); | ^~~~~~~ ~~~~ header.h:336:13: note: declared here 336 | extern void lf_term( /* yuser */ ); /* term.c */ | ^~~~~~~ vt100.c:77:17: error: too many arguments to function ‘move_term’; expected 0, have 3 77 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:93:17: error: too many arguments to function ‘move_term’; expected 0, have 3 93 | move_term(user, user->sy, user->sx); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:99:25: error: too many arguments to function ‘keypad_term’; expected 0, have 2 99 | keypad_term(user, 1); | ^~~~~~~~~~~ ~~~~ header.h:342:13: note: declared here 342 | extern void keypad_term( /* yuser, int */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:107:25: error: too many arguments to function ‘keypad_term’; expected 0, have 2 107 | keypad_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:342:13: note: declared here 342 | extern void keypad_term( /* yuser, int */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:113:17: error: too many arguments to function ‘keypad_term’; expected 0, have 2 113 | keypad_term(user, 1); | ^~~~~~~~~~~ ~~~~ header.h:342:13: note: declared here 342 | extern void keypad_term( /* yuser, int */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:117:17: error: too many arguments to function ‘keypad_term’; expected 0, have 2 117 | keypad_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:342:13: note: declared here 342 | extern void keypad_term( /* yuser, int */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:123:33: error: too many arguments to function ‘add_char_term’; expected 0, have 2 123 | add_char_term(user, 1); | ^~~~~~~~~~~~~ ~~~~ header.h:339:13: note: declared here 339 | extern void add_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:125:33: error: too many arguments to function ‘add_char_term’; expected 0, have 2 125 | add_char_term(user, user->vt.av[0]); | ^~~~~~~~~~~~~ ~~~~ header.h:339:13: note: declared here 339 | extern void add_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:131:25: error: too many arguments to function ‘move_term’; expected 0, have 3 131 | move_term(user, user->y - 1, user->x); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:133:25: error: too many arguments to function ‘move_term’; expected 0, have 3 133 | move_term(user, 0, user->x); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:135:25: error: too many arguments to function ‘move_term’; expected 0, have 3 135 | move_term(user, user->y - user->vt.av[0], user->x); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:144:41: error: too many arguments to function ‘move_term’; expected 0, have 3 144 | move_term(user, user->y + 1, user->x); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:146:41: error: too many arguments to function ‘move_term’; expected 0, have 3 146 | move_term(user, user->y + user->vt.av[0], user->x); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:155:41: error: too many arguments to function ‘move_term’; expected 0, have 3 155 | move_term(user, user->y, user->x + 1); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:157:41: error: too many arguments to function ‘move_term’; expected 0, have 3 157 | move_term(user, user->y, user->x + user->vt.av[0]); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:165:33: error: too many arguments to function ‘move_term’; expected 0, have 3 165 | move_term(user, user->y, user->x - 1); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:167:33: error: too many arguments to function ‘move_term’; expected 0, have 3 167 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:169:33: error: too many arguments to function ‘move_term’; expected 0, have 3 169 | move_term(user, user->y, user->x - user->vt.av[0]); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:174:33: error: too many arguments to function ‘scroll_term’; expected 0, have 1 174 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ header.h:328:13: note: declared here 328 | extern void scroll_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:185:25: error: too many arguments to function ‘move_term’; expected 0, have 3 185 | move_term(user, user->vt.av[0], user->vt.av[1]); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:196:25: error: too many arguments to function ‘move_term’; expected 0, have 3 196 | move_term(user, user->y, user->vt.av[0]); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:219:41: error: too many arguments to function ‘fill_term’; expected 0, have 6 219 | fill_term(user, 0, 0, user->y - 1, user->cols - 1, ' '); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:220:33: error: too many arguments to function ‘fill_term’; expected 0, have 6 220 | fill_term(user, user->y, 0, user->y, user->x, ' '); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:221:33: error: too many arguments to function ‘redraw_term’; expected 0, have 2 221 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:224:33: error: too many arguments to function ‘fill_term’; expected 0, have 6 224 | fill_term(user, 0, 0, user->rows - 1, user->cols - 1, ' '); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:225:33: error: too many arguments to function ‘redraw_term’; expected 0, have 2 225 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:228:33: error: too many arguments to function ‘clreos_term’; expected 0, have 1 228 | clreos_term(user); | ^~~~~~~~~~~ ~~~~ header.h:327:13: note: declared here 327 | extern void clreos_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:237:33: error: too many arguments to function ‘clreol_term’; expected 0, have 1 237 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ header.h:326:13: note: declared here 326 | extern void clreol_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:240:33: error: too many arguments to function ‘fill_term’; expected 0, have 6 240 | fill_term(user, user->y, 0, user->y, user->x, ' '); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:241:33: error: too many arguments to function ‘redraw_term’; expected 0, have 2 241 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:244:33: error: too many arguments to function ‘fill_term’; expected 0, have 6 244 | fill_term(user, user->y, 0, user->y, user->cols - 1, ' '); | ^~~~~~~~~ ~~~~ header.h:325:13: note: declared here 325 | extern void fill_term( /* yuser, y1, x1, y2, x2, c */ ); /* term.c */ | ^~~~~~~~~ vt100.c:245:33: error: too many arguments to function ‘redraw_term’; expected 0, have 2 245 | redraw_term(user, 0); | ^~~~~~~~~~~ ~~~~ header.h:341:13: note: declared here 341 | extern void redraw_term( /* yuser, start_row */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:254:33: error: too many arguments to function ‘add_line_term’; expected 0, have 2 254 | add_line_term(user, 1); | ^~~~~~~~~~~~~ ~~~~ header.h:337:13: note: declared here 337 | extern void add_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:256:33: error: too many arguments to function ‘add_line_term’; expected 0, have 2 256 | add_line_term(user, user->vt.av[0]); | ^~~~~~~~~~~~~ ~~~~ header.h:337:13: note: declared here 337 | extern void add_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:263:33: error: too many arguments to function ‘del_line_term’; expected 0, have 2 263 | del_line_term(user, 1); | ^~~~~~~~~~~~~ ~~~~ header.h:338:13: note: declared here 338 | extern void del_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:265:33: error: too many arguments to function ‘del_line_term’; expected 0, have 2 265 | del_line_term(user, user->vt.av[0]); | ^~~~~~~~~~~~~ ~~~~ header.h:338:13: note: declared here 338 | extern void del_line_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:270:33: error: too many arguments to function ‘rev_scroll_term’; expected 0, have 1 270 | rev_scroll_term(user); | ^~~~~~~~~~~~~~~ ~~~~ header.h:329:13: note: declared here 329 | extern void rev_scroll_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~~~~ vt100.c:276:33: error: too many arguments to function ‘del_char_term’; expected 0, have 2 276 | del_char_term(user, 1); | ^~~~~~~~~~~~~ ~~~~ header.h:340:13: note: declared here 340 | extern void del_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:278:33: error: too many arguments to function ‘del_char_term’; expected 0, have 2 278 | del_char_term(user, user->vt.av[0]); | ^~~~~~~~~~~~~ ~~~~ header.h:340:13: note: declared here 340 | extern void del_char_term( /* yuser, num */ ); /* term.c */ | ^~~~~~~~~~~~~ vt100.c:283:17: error: too many arguments to function ‘scroll_term’; expected 0, have 1 283 | scroll_term(user); | ^~~~~~~~~~~ ~~~~ header.h:328:13: note: declared here 328 | extern void scroll_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ vt100.c:292:25: error: too many arguments to function ‘set_scroll_region’; expected 0, have 3 292 | set_scroll_region(user, user->vt.av[0], user->vt.av[1]); | ^~~~~~~~~~~~~~~~~ ~~~~ header.h:346:13: note: declared here 346 | extern void set_scroll_region( /* yuser, top, bottom */ ); /* term.c */ | ^~~~~~~~~~~~~~~~~ vt100.c:293:25: error: too many arguments to function ‘move_term’; expected 0, have 3 293 | move_term(user, 0, 0); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:311:17: error: too many arguments to function ‘move_term’; expected 0, have 3 311 | move_term(user, user->sy, user->sx); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ vt100.c:66:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 66 | write(user->fd, "\033[0c", 4); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:233: vt100.o] Error 1 comm.c: In function ‘drain_user’: comm.c:67:1: warning: old-style function definition [-Wold-style-definition] 67 | drain_user(user, len, func) | ^~~~~~~~~~ comm.c:74:40: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 74 | user->dbuf = (ychar *) realloc_mem(user->dbuf, user->dbuf_size); | ^~~~~~~~~~~ ~~~~~~~~~~ In file included from comm.c:25: mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ comm.c: In function ‘send_oob’: comm.c:85:1: warning: old-style function definition [-Wold-style-definition] 85 | send_oob(fd, ptr, len) | ^~~~~~~~ comm.c:107:25: error: too many arguments to function ‘show_error’; expected 0, have 1 107 | show_error("send_oob: write failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ In file included from comm.c:22: header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c: In function ‘send_import’: comm.c:116:1: warning: old-style function definition [-Wold-style-definition] 116 | send_import(to, from) | ^~~~~~~~~~~ comm.c: In function ‘send_accept’: comm.c:138:1: warning: old-style function definition [-Wold-style-definition] 138 | send_accept(to, from) | ^~~~~~~~~~~ comm.c: In function ‘v2_process’: comm.c:160:1: warning: old-style function definition [-Wold-style-definition] 160 | v2_process(user, pack) | ^~~~~~~~~~ comm.c:168:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 168 | name = get_mem(V2_NAMELEN + 1); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:169:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 169 | host = get_mem(V2_HOSTLEN + 1); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:179:26: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 179 | if ((host_addr = get_host_addr(host)) == (ylong) -1) { | ^~~~~~~~~~~~~ ~~~~ header.h:388:14: note: declared here 388 | extern ylong get_host_addr( /* hostname */ ); /* socket.c */ | ^~~~~~~~~~~~~ comm.c:186:17: error: too many arguments to function ‘show_error’; expected 0, have 1 186 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:187:17: error: too many arguments to function ‘show_error’; expected 0, have 1 187 | show_error("port from ytalk V2.? failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:188:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 188 | free_mem(host); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:189:17: error: too many arguments to function ‘free_mem’; expected 0, have 1 189 | free_mem(name); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:192:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 192 | estr = get_mem(V2_NAMELEN + V2_HOSTLEN + 20); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:199:21: error: too many arguments to function ‘find_user’; expected 0, have 3 199 | if (find_user(name, host_addr, (ylong) -1) != NULL) | ^~~~~~~~~ ~~~~ header.h:357:15: note: declared here 357 | extern yuser *find_user( /* name, host_addr, pid */ ); /* user.c */ | ^~~~~~~~~ comm.c:207:29: error: too many arguments to function ‘yes_no’; expected 0, have 1 207 | if (yes_no(estr) == 'n') | ^~~~~~ ~~~~ In file included from comm.c:24: menu.h:45:12: note: declared here 45 | extern int yes_no( /* prompt */ ); /* menu.c */ | ^~~~~~ comm.c:217:24: error: too many arguments to function ‘invite’; expected 0, have 2 217 | (void) invite(estr, 0); | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ comm.c:231:26: error: too many arguments to function ‘find_user’; expected 0, have 3 231 | if ((u = find_user(name, host_addr, (ylong) -1)) == NULL) | ^~~~~~~~~ ~~~~ header.h:357:15: note: declared here 357 | extern yuser *find_user( /* name, host_addr, pid */ ); /* user.c */ | ^~~~~~~~~ comm.c:241:24: error: too many arguments to function ‘invite’; expected 0, have 2 241 | (void) invite(estr, 1); /* we should be expected */ | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ comm.c:244:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 244 | free_mem(host); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:245:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 245 | free_mem(name); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:246:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 246 | free_mem(estr); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c: In function ‘v3_process_pack’: comm.c:253:1: warning: old-style function definition [-Wold-style-definition] 253 | v3_process_pack(user, pack) | ^~~~~~~~~~~~~~~ comm.c:261:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 261 | estr = get_mem(V3_NAMELEN + V3_HOSTLEN + 20); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:262:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 262 | name = get_mem(V3_NAMELEN + 1); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:263:16: error: too many arguments to function ‘get_mem’; expected 0, have 1 263 | host = get_mem(V3_HOSTLEN + 1); | ^~~~~~~ mem.h:44:14: note: declared here 44 | extern yaddr get_mem( /* size_t */ ); | ^~~~~~~ comm.c:269:26: error: too many arguments to function ‘get_host_addr’; expected 0, have 1 269 | if ((host_addr = get_host_addr(host)) == (ylong) -1) | ^~~~~~~~~~~~~ ~~~~ header.h:388:14: note: declared here 388 | extern ylong get_host_addr( /* hostname */ ); /* socket.c */ | ^~~~~~~~~~~~~ comm.c:280:21: error: too many arguments to function ‘find_user’; expected 0, have 3 280 | if (find_user(name, host_addr, pid) != NULL) | ^~~~~~~~~ ~~~~ header.h:357:15: note: declared here 357 | extern yuser *find_user( /* name, host_addr, pid */ ); /* user.c */ | ^~~~~~~~~ comm.c:288:29: error: too many arguments to function ‘yes_no’; expected 0, have 1 288 | if (yes_no(estr) == 'n') | ^~~~~~ ~~~~ menu.h:45:12: note: declared here 45 | extern int yes_no( /* prompt */ ); /* menu.c */ | ^~~~~~ comm.c:298:22: error: too many arguments to function ‘invite’; expected 0, have 2 298 | u2 = invite(estr, 0); | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ comm.c:320:26: error: too many arguments to function ‘find_user’; expected 0, have 3 320 | if ((u = find_user(name, host_addr, pid)) == NULL) | ^~~~~~~~~ ~~~~ header.h:357:15: note: declared here 357 | extern yuser *find_user( /* name, host_addr, pid */ ); /* user.c */ | ^~~~~~~~~ comm.c:330:24: error: too many arguments to function ‘invite’; expected 0, have 2 330 | (void) invite(estr, 1); /* we should be expected */ | ^~~~~~ ~~~~ header.h:369:15: note: declared here 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ comm.c:333:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 333 | free_mem(host); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:334:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 334 | free_mem(name); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:335:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 335 | free_mem(estr); | ^~~~~~~~ ~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c: In function ‘v3_process_flags’: comm.c:343:1: warning: old-style function definition [-Wold-style-definition] 343 | v3_process_flags(user, pack) | ^~~~~~~~~~~~~~~~ comm.c: In function ‘v3_process_winch’: comm.c:361:1: warning: old-style function definition [-Wold-style-definition] 361 | v3_process_winch(user, pack) | ^~~~~~~~~~~~~~~~ comm.c:379:25: error: too many arguments to function ‘set_win_region’; expected 0, have 3 379 | set_win_region(user, (int) (pack->rows), (int) (pack->cols)); | ^~~~~~~~~~~~~~ ~~~~ header.h:344:13: note: declared here 344 | extern void set_win_region( /* yuser, h, w */ ); /* term.c */ | ^~~~~~~~~~~~~~ comm.c:381:25: error: too many arguments to function ‘end_win_region’; expected 0, have 1 381 | end_win_region(user); | ^~~~~~~~~~~~~~ ~~~~ header.h:345:13: note: declared here 345 | extern void end_win_region( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~~~ comm.c: In function ‘v3_process’: comm.c:392:1: warning: old-style function definition [-Wold-style-definition] 392 | v3_process(user, ptr) | ^~~~~~~~~~ comm.c: In function ‘read_user’: comm.c:424:1: warning: old-style function definition [-Wold-style-definition] 424 | read_user(fd) | ^~~~~~~~~ comm.c:438:17: error: too many arguments to function ‘remove_fd’; expected 0, have 1 438 | remove_fd(fd); | ^~~~~~~~~ ~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ comm.c:439:17: error: too many arguments to function ‘show_error’; expected 0, have 1 439 | show_error("read_user: unknown contact"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:444:25: error: too many arguments to function ‘show_error’; expected 0, have 1 444 | show_error("read_user: read() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:445:17: error: too many arguments to function ‘free_user’; expected 0, have 1 445 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:462:33: error: too many arguments to function ‘user->dfunc’; expected 0, have 2 462 | user->dfunc(user, user->dbuf); | ^~~~ ~~~~ header.h:143:16: note: declared here 143 | void (*dfunc) (); /* function to call with drained data */ | ^~~~~ comm.c:529:49: error: too many arguments to function ‘show_error’; expected 0, have 1 529 | show_error("write to user output file failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:533:33: error: too many arguments to function ‘show_input’; expected 0, have 3 533 | show_input(user, buf, p - buf); | ^~~~~~~~~~ ~~~~ header.h:375:13: note: declared here 375 | extern void show_input( /* user, buf, len */ ); /* comm.c */ | ^~~~~~~~~~ comm.c: In function ‘ytalk_user’: comm.c:543:1: warning: old-style function definition [-Wold-style-definition] 543 | ytalk_user(fd) | ^~~~~~~~~~ comm.c:550:17: error: too many arguments to function ‘remove_fd’; expected 0, have 1 550 | remove_fd(fd); | ^~~~~~~~~ ~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ comm.c:551:17: error: too many arguments to function ‘show_error’; expected 0, have 1 551 | show_error("ytalk_user: unknown contact"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:554:13: error: too many arguments to function ‘full_read’; expected 0, have 3 554 | if (full_read(user->fd, (char *) &parm, sizeof(y_parm)) < 0) { | ^~~~~~~~~ ~~~~~~~~ header.h:364:12: note: declared here 364 | extern int full_read( /* fd, buf, len */ ); /* fd.c */ | ^~~~~~~~~ comm.c:555:17: error: too many arguments to function ‘free_user’; expected 0, have 1 555 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:556:17: error: too many arguments to function ‘show_error’; expected 0, have 1 556 | show_error("ytalk_user: bad ytalk contact"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:566:17: error: too many arguments to function ‘spew_term’; expected 0, have 4 566 | spew_term(me, fd, me->t_rows, parm.cols); | ^~~~~~~~~ ~~ header.h:348:13: note: declared here 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ comm.c:579:17: error: too many arguments to function ‘free_user’; expected 0, have 1 579 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:580:17: error: too many arguments to function ‘show_error’; expected 0, have 1 580 | show_error("ytalk_user: unsupported ytalk protocol"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:593:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 593 | add_fd(fd, read_user); | ^~~~~~ ~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c:617:25: error: too many arguments to function ‘spew_term’; expected 0, have 4 617 | spew_term(me, fd, me->rows, me->cols); | ^~~~~~~~~ ~~ header.h:348:13: note: declared here 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ comm.c:619:25: error: too many arguments to function ‘spew_term’; expected 0, have 4 619 | spew_term(me, fd, parm.rows, parm.cols); | ^~~~~~~~~ ~~ header.h:348:13: note: declared here 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ comm.c: In function ‘connect_user’: comm.c:639:1: warning: old-style function definition [-Wold-style-definition] 639 | connect_user(fd) | ^~~~~~~~~~~~ comm.c:645:17: error: too many arguments to function ‘remove_fd’; expected 0, have 1 645 | remove_fd(fd); | ^~~~~~~~~ ~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ comm.c:646:17: error: too many arguments to function ‘show_error’; expected 0, have 1 646 | show_error("connect_user: unknown contact"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:649:13: error: too many arguments to function ‘full_read’; expected 0, have 3 649 | if (full_read(fd, user->edit, 3) < 0) { | ^~~~~~~~~ ~~ header.h:364:12: note: declared here 364 | extern int full_read( /* fd, buf, len */ ); /* fd.c */ | ^~~~~~~~~ comm.c:650:17: error: too many arguments to function ‘free_user’; expected 0, have 1 650 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:651:17: error: too many arguments to function ‘show_error’; expected 0, have 1 651 | show_error("connect_user: bad read"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:654:13: error: too many arguments to function ‘open_term’; expected 0, have 2 654 | if (open_term(user, user->full_name) < 0) { | ^~~~~~~~~ ~~~~ header.h:321:12: note: declared here 321 | extern int open_term( /* yuser, title */ ); /* term.c */ | ^~~~~~~~~ comm.c:655:17: error: too many arguments to function ‘free_user’; expected 0, have 1 655 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:656:17: error: too many arguments to function ‘show_error’; expected 0, have 1 656 | show_error("connect_user: open_term() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:674:17: error: too many arguments to function ‘add_fd’; expected 0, have 2 674 | add_fd(fd, ytalk_user); | ^~~~~~ ~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c:689:17: error: too many arguments to function ‘spew_term’; expected 0, have 4 689 | spew_term(me, fd, me->t_rows, me->t_cols); | ^~~~~~~~~ ~~ header.h:348:13: note: declared here 348 | extern void spew_term( /* yuser, fd, rows, cols */ ); /* term.c */ | ^~~~~~~~~ comm.c:691:17: error: too many arguments to function ‘add_fd’; expected 0, have 2 691 | add_fd(fd, read_user); | ^~~~~~ ~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c: In function ‘contact_user’: comm.c:700:1: warning: old-style function definition [-Wold-style-definition] 700 | contact_user(fd) | ^~~~~~~~~~~~ comm.c:709:9: error: too many arguments to function ‘remove_fd’; expected 0, have 1 709 | remove_fd(fd); | ^~~~~~~~~ ~~ header.h:363:13: note: declared here 363 | extern void remove_fd( /* fd */ ); /* fd.c */ | ^~~~~~~~~ comm.c:711:17: error: too many arguments to function ‘show_error’; expected 0, have 1 711 | show_error("contact_user: unknown contact"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:714:16: error: too many arguments to function ‘send_dgram’; expected 0, have 2 714 | (void) send_dgram(user, DELETE_INVITE); | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:717:17: error: too many arguments to function ‘free_user’; expected 0, have 1 717 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:719:25: error: too many arguments to function ‘show_error’; expected 0, have 1 719 | show_error("connect_user: accept() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:733:33: error: too many arguments to function ‘free_mem’; expected 0, have 1 733 | free_mem(user->host_name); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:735:33: error: too many arguments to function ‘free_mem’; expected 0, have 1 735 | free_mem(user->host_fqdn); | ^~~~~~~~ ~~~~~~~~~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:737:33: error: too many arguments to function ‘host_name’; expected 0, have 1 737 | hname = host_name(user->host_addr); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ header.h:389:14: note: declared here 389 | extern char *host_name( /* addr */ ); /* socket.c */ | ^~~~~~~~~ comm.c:738:43: error: too many arguments to function ‘str_copy’; expected 0, have 1 738 | user->host_name = str_copy(hname); | ^~~~~~~~ ~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ comm.c:739:43: error: too many arguments to function ‘str_copy’; expected 0, have 1 739 | user->host_fqdn = str_copy(hname); | ^~~~~~~~ ~~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ comm.c:740:25: error: too many arguments to function ‘generate_full_name’; expected 0, have 1 740 | generate_full_name(user); | ^~~~~~~~~~~~~~~~~~ ~~~~ header.h:358:13: note: declared here 358 | extern void generate_full_name( /* yuser */ ); /* user.c */ | ^~~~~~~~~~~~~~~~~~ comm.c:741:25: error: too many arguments to function ‘show_error’; expected 0, have 1 741 | show_error("Connection from unexpected host!"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:746:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 746 | add_fd(user->fd, connect_user); | ^~~~~~ ~~~~~~~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c: In function ‘word_wrap’: comm.c:754:1: warning: old-style function definition [-Wold-style-definition] 754 | word_wrap(user) | ^~~~~~~~~ comm.c:767:9: error: too many arguments to function ‘move_term’; expected 0, have 3 767 | move_term(user, user->y, x - i); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ comm.c:768:9: error: too many arguments to function ‘clreol_term’; expected 0, have 1 768 | clreol_term(user); | ^~~~~~~~~~~ ~~~~ header.h:326:13: note: declared here 326 | extern void clreol_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~ comm.c:769:9: error: too many arguments to function ‘newline_term’; expected 0, have 1 769 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:771:17: error: too many arguments to function ‘addch_term’; expected 0, have 2 771 | addch_term(user, temp[i]); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c: In function ‘announce’: comm.c:780:1: warning: old-style function definition [-Wold-style-definition] 780 | announce(user) | ^~~~~~~~ comm.c:786:22: error: too many arguments to function ‘send_dgram’; expected 0, have 2 786 | while ((rc = send_dgram(user, AUTO_LOOK_UP)) == 0) { | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:789:27: error: too many arguments to function ‘connect_to’; expected 0, have 1 789 | if ((fd = connect_to((yuser *) 0)) < 0) { | ^~~~~~~~~~ ~~~~~~~~~~~ header.h:387:12: note: declared here 387 | extern int connect_to( /* yuser */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:794:40: error: too many arguments to function ‘send_dgram’; expected 0, have 2 794 | (void) send_dgram(user, AUTO_DELETE); | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:817:19: error: too many arguments to function ‘send_dgram’; expected 0, have 2 817 | if ((rc = send_dgram(user, ANNOUNCE)) == 0) | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c: In function ‘invite’: comm.c:831:1: warning: old-style function definition [-Wold-style-definition] 831 | invite(name, send_announce) | ^~~~~~ comm.c:834:1: error: number of arguments doesn’t match prototype 834 | { | ^ header.h:369:15: error: prototype declaration 369 | extern yuser *invite( /* username, announce */ ); /* comm.c */ | ^~~~~~ comm.c:844:16: error: too many arguments to function ‘resolve_alias’; expected 0, have 1 844 | name = resolve_alias(name); | ^~~~~~~~~~~~~ ~~~~ header.h:393:14: note: declared here 393 | extern char *resolve_alias( /* uh */ ); /* rc.c */ | ^~~~~~~~~~~~~ comm.c:845:19: error: too many arguments to function ‘str_copy’; expected 0, have 1 845 | hisname = str_copy(name); | ^~~~~~~~ ~~~~ header.h:313:14: note: declared here 313 | extern char *str_copy( /* string */ ); /* main.c */ | ^~~~~~~~ comm.c:858:16: error: too many arguments to function ‘new_user’; expected 0, have 3 858 | user = new_user(hisname, hishost, histty); | ^~~~~~~~ ~~~~~~~ header.h:355:15: note: declared here 355 | extern yuser *new_user( /* name, host, tty */ ); /* user.c */ | ^~~~~~~~ comm.c:859:9: error: too many arguments to function ‘free_mem’; expected 0, have 1 859 | free_mem(hisname); | ^~~~~~~~ ~~~~~~~ mem.h:46:13: note: declared here 46 | extern void free_mem( /* yaddr */ ); | ^~~~~~~~ comm.c:907:22: error: too many arguments to function ‘send_dgram’; expected 0, have 2 907 | while ((rc = send_dgram(user, LOOK_UP)) == 0) { | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:909:27: error: too many arguments to function ‘connect_to’; expected 0, have 1 909 | if ((rc = connect_to(user)) < 0) { | ^~~~~~~~~~ ~~~~ header.h:387:12: note: declared here 387 | extern int connect_to( /* yuser */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:914:40: error: too many arguments to function ‘send_dgram’; expected 0, have 2 914 | (void) send_dgram(user, DELETE); | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:917:25: error: too many arguments to function ‘free_user’; expected 0, have 1 917 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:921:17: error: too many arguments to function ‘add_fd’; expected 0, have 2 921 | add_fd(user->fd, connect_user); | ^~~~~~ ~~~~~~~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c:941:17: error: too many arguments to function ‘msg_term’; expected 0, have 2 941 | msg_term(me, errstr); | ^~~~~~~~ ~~ header.h:347:13: note: declared here 347 | extern void msg_term( /* yuser, str */ ); /* term.c */ | ^~~~~~~~ comm.c:943:13: error: too many arguments to function ‘newsock’; expected 0, have 1 943 | if (newsock(user) != 0) { | ^~~~~~~ ~~~~ header.h:386:12: note: declared here 386 | extern int newsock( /* yuser */ ); /* socket.c */ | ^~~~~~~ comm.c:944:17: error: too many arguments to function ‘free_user’; expected 0, have 1 944 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:947:16: error: too many arguments to function ‘send_dgram’; expected 0, have 2 947 | (void) send_dgram(user, LEAVE_INVITE); | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:950:24: error: too many arguments to function ‘send_dgram’; expected 0, have 2 950 | (void) send_dgram(user, DELETE_INVITE); | ^~~~~~~~~~ ~~~~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:963:17: error: too many arguments to function ‘show_error’; expected 0, have 1 963 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:964:17: error: too many arguments to function ‘free_user’; expected 0, have 1 964 | free_user(user); | ^~~~~~~~~ ~~~~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c:967:9: error: too many arguments to function ‘add_fd’; expected 0, have 2 967 | add_fd(user->fd, contact_user); | ^~~~~~ ~~~~~~~~ header.h:362:13: note: declared here 362 | extern void add_fd( /* fd, func */ ); /* fd.c */ | ^~~~~~ comm.c: In function ‘house_clean’: comm.c:987:21: error: too many arguments to function ‘send_auto’; expected 0, have 1 987 | if (send_auto(LEAVE_INVITE) != 0) { | ^~~~~~~~~ header.h:384:12: note: declared here 384 | extern int send_auto( /* type */ ); /* socket.c */ | ^~~~~~~~~ comm.c:988:25: error: too many arguments to function ‘show_error’; expected 0, have 1 988 | show_error("house_clean: send_auto() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:995:32: error: too many arguments to function ‘send_dgram’; expected 0, have 2 995 | (void) send_dgram(u, LEAVE_INVITE); | ^~~~~~~~~~ ~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:1007:42: error: too many arguments to function ‘yes_no’; expected 0, have 1 1007 | answer = yes_no(estr); | ^~~~~~ ~~~~ menu.h:45:12: note: declared here 45 | extern int yes_no( /* prompt */ ); /* menu.c */ | ^~~~~~ comm.c:1013:40: error: too many arguments to function ‘send_dgram’; expected 0, have 2 1013 | (void) send_dgram(u, DELETE_INVITE); | ^~~~~~~~~~ ~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:1026:33: error: too many arguments to function ‘show_error’; expected 0, have 1 1026 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:1027:33: error: too many arguments to function ‘free_user’; expected 0, have 1 1027 | free_user(u); | ^~~~~~~~~ ~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c: In function ‘rering_all’: comm.c:1039:13: error: too many arguments to function ‘send_auto’; expected 0, have 1 1039 | if (send_auto(LEAVE_INVITE) != 0) { | ^~~~~~~~~ header.h:384:12: note: declared here 384 | extern int send_auto( /* type */ ); /* socket.c */ | ^~~~~~~~~ comm.c:1040:17: error: too many arguments to function ‘show_error’; expected 0, have 1 1040 | show_error("rering_all: send_auto() failed"); | ^~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:1045:24: error: too many arguments to function ‘send_dgram’; expected 0, have 2 1045 | (void) send_dgram(u, LEAVE_INVITE); | ^~~~~~~~~~ ~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:1048:32: error: too many arguments to function ‘send_dgram’; expected 0, have 2 1048 | (void) send_dgram(u, DELETE_INVITE); | ^~~~~~~~~~ ~ header.h:383:12: note: declared here 383 | extern int send_dgram( /* user, type */ ); /* socket.c */ | ^~~~~~~~~~ comm.c:1061:25: error: too many arguments to function ‘show_error’; expected 0, have 1 1061 | show_error(errstr); | ^~~~~~~~~~ ~~~~~~ header.h:314:13: note: declared here 314 | extern void show_error( /* str */ ); /* main.c */ | ^~~~~~~~~~ comm.c:1062:25: error: too many arguments to function ‘free_user’; expected 0, have 1 1062 | free_user(u); | ^~~~~~~~~ ~ header.h:356:13: note: declared here 356 | extern void free_user( /* yuser */ ); /* user.c */ | ^~~~~~~~~ comm.c: In function ‘send_winch’: comm.c:1068:1: warning: old-style function definition [-Wold-style-definition] 1068 | send_winch(user) | ^~~~~~~~~~ comm.c:1070:1: error: number of arguments doesn’t match prototype 1070 | { | ^ header.h:371:13: error: prototype declaration 371 | extern void send_winch( /* yuser */ ); /* comm.c */ | ^~~~~~~~~~ comm.c: In function ‘send_users’: comm.c:1121:1: warning: old-style function definition [-Wold-style-definition] 1121 | send_users(user, buf, len, cbuf, clen) | ^~~~~~~~~~ comm.c:1125:1: error: number of arguments doesn’t match prototype 1125 | { | ^ header.h:374:13: error: prototype declaration 374 | extern void send_users( /* buf, len */ ); /* comm.c */ | ^~~~~~~~~~ comm.c:1135:25: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 1135 | o_buf = realloc_mem(o_buf, o_len); | ^~~~~~~~~~~ ~~~~~ mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ comm.c:1139:26: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 1139 | o_cbuf = realloc_mem(o_cbuf, o_clen); | ^~~~~~~~~~~ ~~~~~~ mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ comm.c: In function ‘show_input’: comm.c:1178:1: warning: old-style function definition [-Wold-style-definition] 1178 | show_input(user, buf, len) | ^~~~~~~~~~ comm.c:1182:1: error: number of arguments doesn’t match prototype 1182 | { | ^ header.h:375:13: error: prototype declaration 375 | extern void show_input( /* user, buf, len */ ); /* comm.c */ | ^~~~~~~~~~ comm.c:1186:25: error: too many arguments to function ‘vt100_process’; expected 0, have 2 1186 | vt100_process(user, *buf); | ^~~~~~~~~~~~~ ~~~~ header.h:402:13: note: declared here 402 | extern void vt100_process( /* yuser, char */ ); /* vt100.c */ | ^~~~~~~~~~~~~ comm.c:1196:25: error: too many arguments to function ‘gtalk_process’; expected 0, have 2 1196 | gtalk_process(user, *buf); | ^~~~~~~~~~~~~ ~~~~ In file included from comm.c:26: gtalk.h:28:13: note: declared here 28 | extern void gtalk_process( /* yuser *, ychar */ ); | ^~~~~~~~~~~~~ comm.c:1210:49: error: too many arguments to function ‘newline_term’; expected 0, have 1 1210 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:1212:49: error: too many arguments to function ‘addch_term’; expected 0, have 2 1212 | addch_term(user, *buf); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c:1214:49: error: too many arguments to function ‘addch_term’; expected 0, have 2 1214 | addch_term(user, *buf); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c:1215:49: error: too many arguments to function ‘newline_term’; expected 0, have 1 1215 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:1220:57: error: too many arguments to function ‘newline_term’; expected 0, have 1 1220 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:1221:57: error: too many arguments to function ‘addch_term’; expected 0, have 2 1221 | addch_term(user, *buf); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c:1224:57: error: too many arguments to function ‘addch_term’; expected 0, have 2 1224 | addch_term(user, *buf); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c:1230:33: error: too many arguments to function ‘addch_term’; expected 0, have 2 1230 | addch_term(user, *buf); | ^~~~~~~~~~ ~~~~ header.h:323:13: note: declared here 323 | extern void addch_term( /* yuser, ch */ ); /* term.c */ | ^~~~~~~~~~ comm.c:1232:25: error: too many arguments to function ‘rub_term’; expected 0, have 1 1232 | rub_term(user); | ^~~~~~~~ ~~~~ header.h:331:13: note: declared here 331 | extern void rub_term( /* yuser */ ); /* term.c */ | ^~~~~~~~ comm.c:1234:25: error: too many arguments to function ‘word_term’; expected 0, have 1 1234 | word_term(user); | ^~~~~~~~~ ~~~~ header.h:332:13: note: declared here 332 | extern void word_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~ comm.c:1236:25: error: too many arguments to function ‘kill_term’; expected 0, have 1 1236 | kill_term(user); | ^~~~~~~~~ ~~~~ header.h:333:13: note: declared here 333 | extern void kill_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~ comm.c:1245:41: error: too many arguments to function ‘move_term’; expected 0, have 3 1245 | move_term(user, user->y, user->x - 1); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ comm.c:1248:33: error: too many arguments to function ‘tab_term’; expected 0, have 1 1248 | tab_term(user); | ^~~~~~~~ ~~~~ header.h:334:13: note: declared here 334 | extern void tab_term( /* yuser */ ); /* term.c */ | ^~~~~~~~ comm.c:1252:41: error: too many arguments to function ‘lf_term’; expected 0, have 1 1252 | lf_term(user); | ^~~~~~~ ~~~~ header.h:336:13: note: declared here 336 | extern void lf_term( /* yuser */ ); /* term.c */ | ^~~~~~~ comm.c:1254:41: error: too many arguments to function ‘newline_term’; expected 0, have 1 1254 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:1257:33: error: too many arguments to function ‘lf_term’; expected 0, have 1 1257 | lf_term(user); | ^~~~~~~ ~~~~ header.h:336:13: note: declared here 336 | extern void lf_term( /* yuser */ ); /* term.c */ | ^~~~~~~ comm.c:1261:41: error: too many arguments to function ‘move_term’; expected 0, have 3 1261 | move_term(user, user->y, 0); | ^~~~~~~~~ ~~~~ header.h:324:13: note: declared here 324 | extern void move_term( /* yuser, y, x */ ); /* term.c */ | ^~~~~~~~~ comm.c:1263:41: error: too many arguments to function ‘newline_term’; expected 0, have 1 1263 | newline_term(user); | ^~~~~~~~~~~~ ~~~~ header.h:335:13: note: declared here 335 | extern void newline_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~~~ comm.c:1287:9: error: too many arguments to function ‘flush_term’; expected 0, have 1 1287 | flush_term(user); | ^~~~~~~~~~ ~~~~ header.h:330:13: note: declared here 330 | extern void flush_term( /* yuser */ ); /* term.c */ | ^~~~~~~~~~ comm.c: In function ‘my_input’: comm.c:1294:1: warning: old-style function definition [-Wold-style-definition] 1294 | my_input(user, buf, len) | ^~~~~~~~ comm.c:1298:1: error: number of arguments doesn’t match prototype 1298 | { | ^ header.h:376:13: error: prototype declaration 376 | extern void my_input( /* buf, len */ ); /* comm.c */ | ^~~~~~~~ comm.c:1314:24: error: too many arguments to function ‘realloc_mem’; expected 0, have 2 1314 | nbuf = realloc_mem(nbuf, nlen); | ^~~~~~~~~~~ ~~~~ mem.h:45:14: note: declared here 45 | extern yaddr realloc_mem( /* yaddr, size_t */ ); | ^~~~~~~~~~~ comm.c:1347:49: error: too many arguments to function ‘bail’; expected 0, have 1 1347 | bail(0); | ^~~~ ~ header.h:312:13: note: declared here 312 | extern void bail( /* int */ ); /* main.c */ | ^~~~ comm.c:1364:41: error: too many arguments to function ‘show_input’; expected 0, have 3 1364 | show_input(me, nbuf, j); | ^~~~~~~~~~ ~~ comm.c:1178:1: note: declared here 1178 | show_input(user, buf, len) | ^~~~~~~~~~ comm.c:1365:41: error: too many arguments to function ‘send_users’; expected 0, have 5 1365 | send_users(user, c, i, nbuf, j); | ^~~~~~~~~~ ~~~~ comm.c:1121:1: note: declared here 1121 | send_users(user, buf, len, cbuf, clen) | ^~~~~~~~~~ comm.c: In function ‘lock_flags’: comm.c:1390:1: warning: old-style function definition [-Wold-style-definition] 1390 | lock_flags(flags) | ^~~~~~~~~~ comm.c:1392:1: error: number of arguments doesn’t match prototype 1392 | { | ^ header.h:377:13: error: prototype declaration 377 | extern void lock_flags( /* flags */ ); /* comm.c */ | ^~~~~~~~~~ comm.c: In function ‘invite’: comm.c:922:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 922 | write(user->fd, me->edit, 3); /* send the edit keys */ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c: In function ‘announce’: comm.c:809:17: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 809 | write(fd, &v2p, V2_PACKLEN); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c: In function ‘send_users’: comm.c:1156:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1156 | write(user->fd, o_cbuf, (size_t)(co - o_cbuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c:1158:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1158 | write(user->fd, o_buf, (size_t)(o - o_buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c:1160:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1160 | write(user->fd, buf, (size_t)(b - buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c:1166:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1166 | write(u->fd, o_cbuf, (size_t)(co - o_cbuf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c:1168:41: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1168 | write(u->fd, o_buf, (size_t)(o - o_buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ comm.c:1170:33: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 1170 | write(u->fd, buf, (size_t)(b - buf)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[2]: *** [Makefile:233: comm.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/ytalk-3.3.0-build/ytalk-3.3.0/src' RPM build errors: make[1]: *** [Makefile:290: all-recursive] Error 1 make: *** [Makefile:166: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.6TuhHP (%build) Bad exit status from /var/tmp/rpm-tmp.6TuhHP (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 77157bf5d5dc4a6182bfd9261fb60642 -D /var/lib/mock/f42-build-56692643-6545562/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.13/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.13/site-packages/mockbuild/util.py", line 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 77157bf5d5dc4a6182bfd9261fb60642 -D /var/lib/mock/f42-build-56692643-6545562/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.td93sxy6:/etc/resolv.conf --bind=/dev/btrfs-control --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --console=pipe --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ytalk.spec'