=>> Building mail/qmail-tls build started at Mon May 5 17:22:57 EDT 2025 port directory: /usr/ports/mail/qmail-tls package name: netqmail-tls-1.06.20200107_4 building for: FreeBSD 13amd64-weekly-desktop-job-02 13.4-RELEASE-p4 FreeBSD 13.4-RELEASE-p4 amd64 maintained by: erdgeist@erdgeist.org Makefile datestamp: -rw-r--r-- 1 root wheel 454 Feb 24 2024 /usr/ports/mail/qmail-tls/Makefile Ports top last git commit: 57a50b106b87 Ports top unclean checkout: yes Port dir last git commit: d9c7e0b18ad0 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1402000 Jail OSVERSION: 1304000 Job Id: 02 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1304000 UNAME_v=FreeBSD 13.4-RELEASE-p4 UNAME_r=13.4-RELEASE-p4 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/mnt/data/.m/13amd64-weekly-desktop/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen GID=0 OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 UID=0 PWD=/mnt/data/.m/13amd64-weekly-desktop/02/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13amd64-weekly-desktop SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/mnt/data/.m/13amd64-weekly-desktop/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ===> The following configuration options are available for netqmail-tls-1.06.20200107_4: BIG_CONCURRENCY_PATCH=off: Use a concurrency greater than 240 BIG_TODO_PATCH=off: Enable big_todo qmail patch BLOCKEXEC_PATCH=off: Block many windows viruses/worms DISCBOUNCES_PATCH=off: Discard double-bounces DNS_CNAME=on: Request CNAME (vs ANY for BIND 4 bug) DOCS=on: Build and/or install documentation EXTTODO_PATCH=off: Extern high-perform. todo processing LOCALTIME_PATCH=off: Emit dates in the local timezone MAILDIRQUOTA_PATCH=off: Maildir++ support OUTGOINGIP_PATCH=off: Set the IP address to send messages QEXTRA=off: Enable QUEUE_EXTRA copy feature QMTPC_PATCH=off: Send email using qmtp protocol RCDLINK=on: Create rc.d/qmail symlink SMTP_AUTH_PATCH=off: Provide SMTP Authentication SPF_PATCH=off: Implement SPF checker TLS_DEBUG=off: Enable additional debug information ===> Use 'make config' to modify these settings ---End OPTIONS List--- --MAINTAINER-- erdgeist@erdgeist.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work/.cache HOME=/wrkdirs/usr/ports/mail/qmail-tls/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/qmail-tls/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/qmail-tls/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig SHELL=/bin/sh CONFIG_SHELL=/bin/sh --End CONFIGURE_ENV-- --MAKE_ENV-- OPENSSLBASE=/usr OPENSSLDIR=/etc/ssl OPENSSLINC=/usr/include OPENSSLLIB=/usr/lib XDG_DATA_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/qmail-tls/work/.cache HOME=/wrkdirs/usr/ports/mail/qmail-tls/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/qmail-tls/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/qmail-tls/work/.pkgconfig:/usr/local/libdata/pkgconfig:/usr/local/share/pkgconfig:/usr/libdata/pkgconfig MK_DEBUG_FILES=no MK_KERNEL_SYMBOLS=no SHELL=/bin/sh NO_LINT=YES PREFIX=/var/qmail LOCALBASE=/usr/local CC="cc" CFLAGS="-O2 -pipe -I/usr/include -L/usr/lib -DTLS=20200107 -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -I/usr/include -L/usr/lib -DTLS=20200107 -fstack-protector-strong -fno-strict-aliasing " BSD_INSTALL_PROGRAM="install -s -m 555" BSD_INSTALL_LIB="install -s -m 0644" BSD_INSTALL_SCRIPT="install -m 555" BSD_INSTALL_DATA="install -m 0644" BSD_INSTALL_MAN="install -m 444" --End MAKE_ENV-- --PLIST_SUB-- QMAIL_PREFIX="/var/qmail" LDAP="@comment " NO_LDAP="" SPAMCONTROL="@comment " TLS="" NO_TLS="@comment " PORTDOCS="" BIG_CONCURRENCY_PATCH="@comment " NO_BIG_CONCURRENCY_PATCH="" BIG_TODO_PATCH="@comment " NO_BIG_TODO_PATCH="" BLOCKEXEC_PATCH="@comment " NO_BLOCKEXEC_PATCH="" DISCBOUNCES_PATCH="@comment " NO_DISCBOUNCES_PATCH="" DNS_CNAME="" NO_DNS_CNAME="@comment " DOCS="" NO_DOCS="@comment " EXTTODO_PATCH="@comment " NO_EXTTODO_PATCH="" LOCALTIME_PATCH="@comment " NO_LOCALTIME_PATCH="" MAILDIRQUOTA_PATCH="@comment " NO_MAILDIRQUOTA_PATCH="" OUTGOINGIP_PATCH="@comment " NO_OUTGOINGIP_PATCH="" QEXTRA="@comment " NO_QEXTRA="" QMTPC_PATCH="@comment " NO_QMTPC_PATCH="" RCDLINK="" NO_RCDLINK="@comment " SMTP_AUTH_PATCH="@comment " NO_SMTP_AUTH_PATCH="" SPF_PATCH="@comment " NO_SPF_PATCH="" TLS_DEBUG="@comment " NO_TLS_DEBUG="" EXTTODO="@comment " RCDLINK="" OSREL=13.4 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/var/qmail LIB32DIR=lib DOCSDIR="doc" EXAMPLESDIR="share/examples/netqmail" DATADIR="share/netqmail" WWWDIR="www/netqmail" ETCDIR="etc/netqmail" --End PLIST_SUB-- --SUB_LIST-- ECHO_CMD=echo RCDLINK= BIG_CONCURRENCY_PATCH="@comment " NO_BIG_CONCURRENCY_PATCH="" BIG_TODO_PATCH="@comment " NO_BIG_TODO_PATCH="" BLOCKEXEC_PATCH="@comment " NO_BLOCKEXEC_PATCH="" DISCBOUNCES_PATCH="@comment " NO_DISCBOUNCES_PATCH="" DNS_CNAME="" NO_DNS_CNAME="@comment " DOCS="" NO_DOCS="@comment " EXTTODO_PATCH="@comment " NO_EXTTODO_PATCH="" LOCALTIME_PATCH="@comment " NO_LOCALTIME_PATCH="" MAILDIRQUOTA_PATCH="@comment " NO_MAILDIRQUOTA_PATCH="" OUTGOINGIP_PATCH="@comment " NO_OUTGOINGIP_PATCH="" QEXTRA="@comment " NO_QEXTRA="" QMTPC_PATCH="@comment " NO_QMTPC_PATCH="" SMTP_AUTH_PATCH="@comment " NO_SMTP_AUTH_PATCH="" SPF_PATCH="@comment " NO_SPF_PATCH="" TLS_DEBUG="@comment " NO_TLS_DEBUG="" PREFIX=/var/qmail LOCALBASE=/usr/local DATADIR=/var/qmail/share/netqmail DOCSDIR=/var/qmail/doc EXAMPLESDIR=/var/qmail/share/examples/netqmail WWWDIR=/var/qmail/www/netqmail ETCDIR=/var/qmail/etc/netqmail --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### # Work around some weirdness when fetching golang modules GO_TAGS+=netcgo .if ${.CURDIR:M*/www/chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/www/ungoogled-chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/lang/rust*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/lang/gcc*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/www/iridium*} MAKE_JOBS_NUMBER=16 .endif .if ${.CURDIR:M*/devel/electron*} MAKE_JOBS_NUMBER=20 .endif .if ${.CURDIR:M*/databases/mongodb*} MAKE_JOBS_NUMBER=12 .endif .if ${.CURDIR:M*/devel/llvm*} MAKE_JOBS_NUMBER=16 .endif # Speed things up a bit MAKE_JOBS_NUMBER?=8 #### #### #MAKE_JOBS_NUMBER?=4 # Alows us to build ports non-interactivly DISABLE_LICENSES=yes LICENSES_ACCEPTED+= DCC # Enable SNDIO on anything that supports it #OPTIONS_SET+=PULSEAUDIO OPTIONS_SET+=SNDIO # Yes we have MS Windows x11-fonts_webfonts_SET+=EXTRAFONTS CLEARTYPE # Desktop Specific Options sysutils_gksu_UNSET+=NAUTILUS x11-wm_compiz-fusion_UNSET+=EMERALD accessibility_redshift_SET+=GUI VIDMODE # These ports default to other audio servers, audio_espeak_UNSET+=PORTAUDIO www_qt5-webengine_UNSET+=ALSA www_qt6-webengine_UNSET+=ALSA audio_rhvoice_UNSET+=AO comms_morse_UNSET+=OSS audio_harp_UNSET+=OSS # Somehow these options are being set and result in ports being rebuilt needlessly becuase they are actually turned off audio_alsa-plugins_SET+=FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX #### Misc Poudriere #### .include "/etc/make.conf.ports_env" ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 You may use the following build options: WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=NUMBER (default NUMBER=) set this to a value reasonable for your system if you use the patch =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> netqmail-tls-1.06.20200107_4 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.0.6.pkg [13amd64-weekly-desktop-job-02] Installing pkg-2.0.6... [13amd64-weekly-desktop-job-02] Extracting pkg-2.0.6: .......... done ===> netqmail-tls-1.06.20200107_4 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of netqmail-tls-1.06.20200107_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 You may use the following build options: WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=NUMBER (default NUMBER=) set this to a value reasonable for your system if you use the patch ===> Fetching all distfiles required by netqmail-tls-1.06.20200107_4 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 You may use the following build options: WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=NUMBER (default NUMBER=) set this to a value reasonable for your system if you use the patch ===> Fetching all distfiles required by netqmail-tls-1.06.20200107_4 for building => SHA256 Checksum OK for qmail/netqmail-1.06.tar.gz. => SHA256 Checksum OK for qmail/qmail-103.patch. => SHA256 Checksum OK for qmail/netqmail-1.06-tls-20200107.patch. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 You may use the following build options: WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT=NUMBER (default NUMBER=) set this to a value reasonable for your system if you use the patch ===> Fetching all distfiles required by netqmail-tls-1.06.20200107_4 for building ===> Extracting for netqmail-tls-1.06.20200107_4 => SHA256 Checksum OK for qmail/netqmail-1.06.tar.gz. => SHA256 Checksum OK for qmail/qmail-103.patch. => SHA256 Checksum OK for qmail/netqmail-1.06-tls-20200107.patch. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Patching for netqmail-tls-1.06.20200107_4 ===> Applying distribution patches for netqmail-tls-1.06.20200107_4 ===> Applying extra patch /usr/ports/mail/qmail-tls/../qmail/files/extra-patch-amd64 ===> Applying extra patch /usr/ports/mail/qmail-tls/../qmail/files/extra-patch-utmpx ===> Applying extra patch /usr/ports/mail/qmail-tls/../qmail/files/extra-patch-dns-cname ===> Applying FreeBSD patches for netqmail-tls-1.06.20200107_4 from /usr/ports/mail/qmail-tls/../qmail/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> netqmail-tls-1.06.20200107_4 depends on executable: fakeroot - not found ===> Installing existing package /packages/All/fakeroot-1.23_1.pkg [13amd64-weekly-desktop-job-02] Installing fakeroot-1.23_1... [13amd64-weekly-desktop-job-02] Extracting fakeroot-1.23_1: .......... done ===> netqmail-tls-1.06.20200107_4 depends on executable: fakeroot - found ===> Returning to build of netqmail-tls-1.06.20200107_4 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Configuring for netqmail-tls-1.06.20200107_4 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Building for netqmail-tls-1.06.20200107_4 ( cat warn-auto.sh; echo CC=\'`head -1 conf-cc`\'; echo LD=\'`head -1 conf-ld`\' ) > auto-ccld.sh cat auto-ccld.sh make-load.sh > make-load chmod 755 make-load cat auto-ccld.sh find-systype.sh > find-systype chmod 755 find-systype ./find-systype > systype ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load chmod 755 load cat auto-ccld.sh make-compile.sh > make-compile chmod 755 make-compile ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > compile chmod 755 compile ( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null 2>&1 && cat fork.h2 || cat fork.h1 ) > fork.h rm -f tryvfork.o tryvfork ./compile qmail-local.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-local.c:32:16: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | void usage() { strerr_die1x(100,"qmail-local: usage: qmail-local [ -nN ] user homedir local dash ext domain sender aliasempty"); } | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:34:21: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | void temp_nomem() { strerr_die1x(111,"Out of memory. (#4.3.0)"); } | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:35:22: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | void temp_rewind() { strerr_die1x(111,"Unable to rewind message. (#4.3.0)"); } | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:36:28: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void temp_childcrashed() { strerr_die1x(111,"Aack, child crashed. (#4.3.0)"); } | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:37:65: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | void temp_fork() { strerr_die3x(111,"Unable to fork: ",error_str(errno),". (#4.3.0)"); } | ^ qmail-local.c:37:20: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | void temp_fork() { strerr_die3x(111,"Unable to fork: ",error_str(errno),". (#4.3.0)"); } | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:38:73: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void temp_read() { strerr_die3x(111,"Unable to read message: ",error_str(errno),". (#4.3.0)"); } | ^ qmail-local.c:38:20: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void temp_read() { strerr_die3x(111,"Unable to read message: ",error_str(errno),". (#4.3.0)"); } | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:40:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | { strerr_die1x(111,"File has been locked for 30 seconds straight. (#4.3.0)"); } | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:42:55: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | { strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.3.0)"); } | ^ qmail-local.c:42:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | { strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.3.0)"); } | ^ ./strerr.h:70:11: note: expanded from macro 'strerr_die5x' 70 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | void temp_qmail(fn) char *fn; | ^ qmail-local.c:74:23: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | void tryunlinktmp() { unlink(fntmptph); } | ^ qmail-local.c:90:16: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | sig_alarmcatch(sigalrm); | ^ qmail-local.c:91:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | if (chdir(dir) == -1) { if (error_temp(errno)) _exit(1); _exit(2); } | ^ qmail-local.c:91:40: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | if (chdir(dir) == -1) { if (error_temp(errno)) _exit(1); _exit(2); } | ^ qmail-local.c:92:8: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | pid = getpid(); | ^ qmail-local.c:94:2: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 94 | gethostname(host,sizeof(host)); | ^ qmail-local.c:99:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | s += fmt_str(s,"tmp/"); | ^ qmail-local.c:100:18: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | s += fmt_ulong(s,time); *s++ = '.'; | ^ qmail-local.c:101:18: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | s += fmt_ulong(s,pid); *s++ = '.'; | ^ qmail-local.c:102:17: warning: passing arguments to 'fmt_strn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | s += fmt_strn(s,host,sizeof(host)); *s++ = 0; | ^ qmail-local.c:106:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | sleep(2); | ^ qmail-local.c:108:10: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | str_copy(fnnewtph,fntmptph); | ^ qmail-local.c:109:11: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | byte_copy(fnnewtph,3,"new"); | ^ qmail-local.c:111:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | alarm(86400); | ^ qmail-local.c:112:16: warning: passing arguments to 'open_excl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | fd = open_excl(fntmptph); | ^ qmail-local.c:115:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:116:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | substdio_fdbuf(&ssout,write,fd,outbuf,sizeof(outbuf)); | ^ qmail-local.c:117:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (substdio_put(&ssout,rpline.s,rpline.len) == -1) goto fail; | ^ qmail-local.c:118:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | if (substdio_put(&ssout,dtline.s,dtline.len) == -1) goto fail; | ^ qmail-local.c:120:22: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | switch(substdio_copy(&ssout,&ss)) | ^ qmail-local.c:126:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | if (substdio_flush(&ssout) == -1) goto fail; | ^ qmail-local.c:127:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | if (fsync(fd) == -1) goto fail; | ^ qmail-local.c:128:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | if (close(fd) == -1) goto fail; /* NFS dorks */ | ^ qmail-local.c:130:6: warning: call to undeclared function 'link'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | if (link(fntmptph,fnnewtph) == -1) goto fail; | ^ qmail-local.c:77:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | void maildir_child(dir) | ^ qmail-local.c:145:6: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (seek_begin(0) == -1) temp_rewind(); | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ qmail-local.c:156:10: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | wait_pid(&wstat,child); | ^ qmail-local.c:162:12: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | case 2: strerr_die1x(111,"Unable to chdir to maildir. (#4.2.1)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:163:12: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | case 3: strerr_die1x(111,"Timeout on maildir delivery. (#4.3.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:164:12: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | case 4: strerr_die1x(111,"Unable to read message. (#4.3.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:165:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | default: strerr_die1x(111,"Temporary error on maildir delivery. (#4.3.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:139:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | void maildir(fn) | ^ qmail-local.c:179:6: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | if (seek_begin(0) == -1) temp_rewind(); | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ qmail-local.c:181:18: warning: passing arguments to 'open_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | fd = open_append(fn); | ^ qmail-local.c:183:56: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.2.1)"); | ^ qmail-local.c:183:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.2.1)"); | ^ ./strerr.h:70:11: note: expanded from macro 'strerr_die5x' 70 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:185:16: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | sig_alarmcatch(temp_slowlock); | ^ qmail-local.c:186:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | alarm(30); | ^ qmail-local.c:187:23: warning: passing arguments to 'lock_ex' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | flaglocked = (lock_ex(fd) != -1); | ^ qmail-local.c:191:10: warning: passing arguments to 'seek_end' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | seek_end(fd); | ^ qmail-local.c:192:16: warning: passing arguments to 'seek_cur' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | pos = seek_cur(fd); | ^ qmail-local.c:194:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:195:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | substdio_fdbuf(&ssout,write,fd,outbuf,sizeof(outbuf)); | ^ qmail-local.c:196:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | if (substdio_put(&ssout,ufline.s,ufline.len)) goto writeerrs; | ^ qmail-local.c:197:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | if (substdio_put(&ssout,rpline.s,rpline.len)) goto writeerrs; | ^ qmail-local.c:198:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | if (substdio_put(&ssout,dtline.s,dtline.len)) goto writeerrs; | ^ qmail-local.c:201:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | if (getln(&ss,&messline,&match,'\n') != 0) | ^ qmail-local.c:203:55: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | strerr_warn3("Unable to read message: ",error_str(errno),". (#4.3.0)",0); | ^ qmail-local.c:203:6: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | strerr_warn3("Unable to read message: ",error_str(errno),". (#4.3.0)",0); | ^ ./strerr.h:35:12: note: expanded from macro 'strerr_warn3' 35 | strerr_warn((x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ qmail-local.c:204:32: warning: passing arguments to 'seek_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | if (flaglocked) seek_trunc(fd,pos); close(fd); | ^ qmail-local.c:204:42: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | if (flaglocked) seek_trunc(fd,pos); close(fd); | ^ qmail-local.c:208:13: warning: passing arguments to 'gfrom' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | if (gfrom(messline.s,messline.len)) | ^ qmail-local.c:209:23: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | if (substdio_bput(&ssout,">",1)) goto writeerrs; | ^ qmail-local.c:210:21: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | if (substdio_bput(&ssout,messline.s,messline.len)) goto writeerrs; | ^ qmail-local.c:213:24: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | if (substdio_bputs(&ssout,"\n")) goto writeerrs; | ^ qmail-local.c:217:20: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | if (substdio_bputs(&ssout,"\n")) goto writeerrs; | ^ qmail-local.c:218:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | if (substdio_flush(&ssout)) goto writeerrs; | ^ qmail-local.c:219:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | if (fsync(fd) == -1) goto writeerrs; | ^ qmail-local.c:220:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 220 | close(fd); | ^ qmail-local.c:224:51: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | strerr_warn5("Unable to write ",fn,": ",error_str(errno),". (#4.3.0)",0); | ^ qmail-local.c:224:2: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | strerr_warn5("Unable to write ",fn,": ",error_str(errno),". (#4.3.0)",0); | ^ ./strerr.h:31:12: note: expanded from macro 'strerr_warn5' 31 | strerr_warn((x1),(x2),(x3),(x4),(x5),(char *) 0,(struct strerr *) (se)) | ^ qmail-local.c:225:28: warning: passing arguments to 'seek_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if (flaglocked) seek_trunc(fd,pos); | ^ qmail-local.c:169:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | void mailfile(fn) | ^ qmail-local.c:237:6: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | if (seek_begin(0) == -1) temp_rewind(); | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ qmail-local.c:246:6: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 246 | execv(*args,args); | ^ qmail-local.c:247:58: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:247:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:250:10: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | wait_pid(&wstat,child); | ^ qmail-local.c:230:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | void mailprogram(prog) | ^ qmail-local.c:273:6: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | if (seek_begin(0) == -1) temp_rewind(); | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ qmail-local.c:274:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:276:16: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | if (qmail_open(&qqt) == -1) temp_fork(); | ^ qmail-local.c:277:27: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | mailforward_qp = qmail_qp(&qqt); | ^ qmail-local.c:278:11: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | qmail_put(&qqt,dtline.s,dtline.len); | ^ qmail-local.c:281:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | if (getln(&ss,&messline,&match,'\n') != 0) { qmail_fail(&qqt); break; } | ^ qmail-local.c:281:59: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | if (getln(&ss,&messline,&match,'\n') != 0) { qmail_fail(&qqt); break; } | ^ qmail-local.c:282:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | qmail_put(&qqt,messline.s,messline.len); | ^ qmail-local.c:285:12: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | qmail_from(&qqt,ueo.s); | ^ qmail-local.c:286:26: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | while (*recips) qmail_to(&qqt,*recips++); | ^ qmail-local.c:287:19: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | qqx = qmail_close(&qqt); | ^ qmail-local.c:289:2: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | strerr_die3x(*qqx == 'D' ? 100 : 111,"Unable to forward message: ",qqx + 1,"."); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:265:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | void mailforward(recips) | ^ qmail-local.c:297:6: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | if (seek_begin(0) == -1) temp_rewind(); | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ qmail-local.c:298:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:301:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | if (getln(&ss,&messline,&match,'\n') != 0) temp_read(); | ^ qmail-local.c:306:20: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | if (!str_diffn(messline.s,dtline.s,dtline.len)) | ^ qmail-local.c:307:8: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | strerr_die1x(100,"This message is looping: it already has my Delivered-To line. (#5.4.6)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:316:64: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | strerr_die3x(111,"Unable to stat home directory: ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:316:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | strerr_die3x(111,"Unable to stat home directory: ",error_str(errno),". (#4.3.0)"); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:318:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | strerr_die1x(111,"Uh-oh: home directory is writable. (#4.7.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:321:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | strerr_die1x(111,"Home directory is sticky: user is editing his .qmail file. (#4.2.1)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:323:6: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | strerr_warn1("Warning: home directory is sticky.",0); | ^ ./strerr.h:39:12: note: expanded from macro 'strerr_warn1' 39 | strerr_warn((x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ qmail-local.c:322:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 322 | else | ^ qmail-local.c:331:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:332:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:333:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | if (!stralloc_cat(&qme,&safeext)) temp_nomem(); | ^ qmail-local.c:334:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | if (!stralloc_cats(&qme,dashowner)) temp_nomem(); | ^ qmail-local.c:335:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | if (!stralloc_0(&qme)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:338:18: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 338 | if (error_temp(errno)) temp_qmail(qme.s); | ^ qmail-local.c:326:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | int qmeox(dashowner) | ^ qmail-local.c:350:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | if (!stralloc_0(&qme)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:352:18: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | *fd = open_read(qme.s); | ^ qmail-local.c:354:19: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | if (error_temp(errno)) temp_qmail(qme.s); | ^ qmail-local.c:363:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | strerr_die1x(111,"Uh-oh: .qmail file is writable. (#4.7.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:367:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 367 | close(*fd); | ^ qmail-local.c:344:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 344 | int qmeexists(fd,cutable) | ^ qmail-local.c:385:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:386:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:387:20: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 387 | if (!stralloc_cat(&qme,&safeext)) temp_nomem(); | ^ qmail-local.c:391:21: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | if (!byte_diff("default",7,safeext.s + i)) | ^ qmail-local.c:392:18: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | if (i <= str_len(ext)) /* paranoia */ | ^ qmail-local.c:393:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 393 | if (!env_put2("DEFAULT",ext + i)) temp_nomem(); | ^ qmail-local.c:400:26: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:401:25: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:402:25: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 402 | if (!stralloc_catb(&qme,safeext.s,i)) temp_nomem(); | ^ qmail-local.c:403:25: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | if (!stralloc_cats(&qme,"default")) temp_nomem(); | ^ qmail-local.c:405:18: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | if (i <= str_len(ext)) /* paranoia */ | ^ qmail-local.c:406:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | if (!env_put2("DEFAULT",ext + i)) temp_nomem(); | ^ qmail-local.c:379:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | void qmesearch(fd,cutable) | ^ qmail-local.c:421:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | substdio_puts(subfdoutsmall,"did "); | ^ qmail-local.c:422:48: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_file)); | ^ qmail-local.c:422:14: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_file)); | ^ qmail-local.c:423:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | substdio_puts(subfdoutsmall,"+"); | ^ qmail-local.c:424:48: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_forward)); | ^ qmail-local.c:424:14: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_forward)); | ^ qmail-local.c:425:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | substdio_puts(subfdoutsmall,"+"); | ^ qmail-local.c:426:48: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_program)); | ^ qmail-local.c:426:14: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_program)); | ^ qmail-local.c:427:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | substdio_puts(subfdoutsmall,"\n"); | ^ qmail-local.c:430:17: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | substdio_puts(subfdoutsmall,"qp "); | ^ qmail-local.c:431:50: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,mailforward_qp)); | ^ qmail-local.c:431:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,mailforward_qp)); | ^ qmail-local.c:432:17: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 432 | substdio_puts(subfdoutsmall,"\n"); | ^ qmail-local.c:434:16: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 434 | substdio_flush(subfdoutsmall); | ^ qmail-local.c:442:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | substdio_puts(subfdoutsmall,type); | ^ qmail-local.c:443:14: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | substdio_put(subfdoutsmall,cmd,len); | ^ qmail-local.c:444:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | substdio_putsflush(subfdoutsmall,"\n"); | ^ qmail-local.c:437:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | void sayit(type,cmd,len) | ^ qmail-local.c:468:22: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | while ((opt = getopt(argc,argv,"nN")) != opteof) | ^ qmail-local.c:490:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 490 | if (chdir(homedir) == -1) | ^ qmail-local.c:491:66: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | strerr_die5x(111,"Unable to switch to ",homedir,": ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:491:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 491 | strerr_die5x(111,"Unable to switch to ",homedir,": ",error_str(errno),". (#4.3.0)"); | ^ ./strerr.h:70:11: note: expanded from macro 'strerr_die5x' 70 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:494:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 494 | if (!env_put2("HOST",host)) temp_nomem(); | ^ qmail-local.c:495:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 495 | if (!env_put2("HOME",homedir)) temp_nomem(); | ^ qmail-local.c:496:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | if (!env_put2("USER",user)) temp_nomem(); | ^ qmail-local.c:497:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 497 | if (!env_put2("LOCAL",local)) temp_nomem(); | ^ qmail-local.c:499:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | if (!stralloc_copys(&envrecip,local)) temp_nomem(); | ^ qmail-local.c:500:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 500 | if (!stralloc_cats(&envrecip,"@")) temp_nomem(); | ^ qmail-local.c:501:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 501 | if (!stralloc_cats(&envrecip,host)) temp_nomem(); | ^ qmail-local.c:503:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 503 | if (!stralloc_copy(&foo,&envrecip)) temp_nomem(); | ^ qmail-local.c:504:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:505:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 505 | if (!env_put2("RECIPIENT",foo.s)) temp_nomem(); | ^ qmail-local.c:507:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | if (!stralloc_copys(&dtline,"Delivered-To: ")) temp_nomem(); | ^ qmail-local.c:508:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | if (!stralloc_cat(&dtline,&envrecip)) temp_nomem(); | ^ qmail-local.c:510:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | if (!stralloc_cats(&dtline,"\n")) temp_nomem(); | ^ qmail-local.c:512:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 512 | if (!stralloc_copy(&foo,&dtline)) temp_nomem(); | ^ qmail-local.c:513:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 513 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:514:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | if (!env_put2("DTLINE",foo.s)) temp_nomem(); | ^ qmail-local.c:519:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 519 | if (!env_put2("SENDER",sender)) temp_nomem(); | ^ qmail-local.c:521:13: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | if (!quote2(&foo,sender)) temp_nomem(); | ^ qmail-local.c:522:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 522 | if (!stralloc_copys(&rpline,"Return-Path: <")) temp_nomem(); | ^ qmail-local.c:523:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | if (!stralloc_cat(&rpline,&foo)) temp_nomem(); | ^ qmail-local.c:525:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 525 | if (!stralloc_cats(&rpline,">\n")) temp_nomem(); | ^ qmail-local.c:527:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | if (!stralloc_copy(&foo,&rpline)) temp_nomem(); | ^ qmail-local.c:528:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 528 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:529:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | if (!env_put2("RPLINE",foo.s)) temp_nomem(); | ^ qmail-local.c:531:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | if (!stralloc_copys(&ufline,"From ")) temp_nomem(); | ^ qmail-local.c:536:17: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | len = str_len(sender); | ^ qmail-local.c:537:27: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 537 | if (!stralloc_readyplus(&ufline,len)) temp_nomem(); | ^ qmail-local.c:547:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | if (!stralloc_cats(&ufline,"MAILER-DAEMON")) temp_nomem(); | ^ qmail-local.c:548:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | if (!stralloc_cats(&ufline," ")) temp_nomem(); | ^ qmail-local.c:550:36: warning: passing arguments to 'myctime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | if (!stralloc_cats(&ufline,myctime(starttime))) temp_nomem(); | ^ qmail-local.c:550:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 550 | if (!stralloc_cats(&ufline,myctime(starttime))) temp_nomem(); | ^ qmail-local.c:552:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 552 | if (!stralloc_copy(&foo,&ufline)) temp_nomem(); | ^ qmail-local.c:553:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 553 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:554:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | if (!env_put2("UFLINE",foo.s)) temp_nomem(); | ^ qmail-local.c:557:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | if (!env_put2("EXT",x)) temp_nomem(); | ^ qmail-local.c:558:14: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | x += str_chr(x,'-'); if (*x) ++x; | ^ qmail-local.c:559:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | if (!env_put2("EXT2",x)) temp_nomem(); | ^ qmail-local.c:560:14: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | x += str_chr(x,'-'); if (*x) ++x; | ^ qmail-local.c:561:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 561 | if (!env_put2("EXT3",x)) temp_nomem(); | ^ qmail-local.c:562:14: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 562 | x += str_chr(x,'-'); if (*x) ++x; | ^ qmail-local.c:563:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | if (!env_put2("EXT4",x)) temp_nomem(); | ^ qmail-local.c:565:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | if (!stralloc_copys(&safeext,ext)) temp_nomem(); | ^ qmail-local.c:566:13: warning: passing arguments to 'case_lowerb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 566 | case_lowerb(safeext.s,safeext.len); | ^ qmail-local.c:571:13: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 571 | i = str_len(host); | ^ qmail-local.c:572:15: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:573:21: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:574:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:575:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 575 | if (!env_put2("HOST2",foo.s)) temp_nomem(); | ^ qmail-local.c:576:15: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:577:21: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:578:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:579:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | if (!env_put2("HOST3",foo.s)) temp_nomem(); | ^ qmail-local.c:580:15: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:581:21: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:582:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:583:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | if (!env_put2("HOST4",foo.s)) temp_nomem(); | ^ qmail-local.c:589:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | strerr_die1x(100,"Sorry, no mailbox here by that name. (#5.1.1)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:591:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | if (!stralloc_copys(&ueo,sender)) temp_nomem(); | ^ qmail-local.c:592:14: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 592 | if (str_diff(sender,"")) | ^ qmail-local.c:593:16: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | if (str_diff(sender,"#@[]")) | ^ qmail-local.c:598:29: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | if (!stralloc_copys(&ueo,local)) temp_nomem(); | ^ qmail-local.c:599:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | if (!stralloc_cats(&ueo,"-owner-@")) temp_nomem(); | ^ qmail-local.c:600:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | if (!stralloc_cats(&ueo,host)) temp_nomem(); | ^ qmail-local.c:601:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | if (!stralloc_cats(&ueo,"-@[]")) temp_nomem(); | ^ qmail-local.c:605:29: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 605 | if (!stralloc_copys(&ueo,local)) temp_nomem(); | ^ qmail-local.c:606:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | if (!stralloc_cats(&ueo,"-owner@")) temp_nomem(); | ^ qmail-local.c:607:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | if (!stralloc_cats(&ueo,host)) temp_nomem(); | ^ qmail-local.c:610:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | if (!stralloc_0(&ueo)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:611:15: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | if (!env_put2("NEWSENDER",ueo.s)) temp_nomem(); | ^ qmail-local.c:613:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 613 | if (!stralloc_ready(&cmds,0)) temp_nomem(); | ^ qmail-local.c:616:18: warning: passing arguments to 'slurpclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | if (slurpclose(fd,&cmds,256) == -1) temp_nomem(); | ^ qmail-local.c:620:23: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 620 | if (!stralloc_copys(&cmds,aliasempty)) temp_nomem(); | ^ qmail-local.c:624:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | if (!stralloc_cats(&cmds,"\n")) temp_nomem(); | ^ qmail-local.c:636:26: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | recips = (char **) alloc((numforward + 1) * sizeof(char *)); | ^ qmail-local.c:654:10: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | strerr_die1x(111,"Uh-oh: first line of .qmail file is blank. (#4.2.1)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:660:24: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | if (flagforwardonly) strerr_die1x(111,"Uh-oh: .qmail has file delivery but has x bit set. (#4.7.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:670:24: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | if (flagforwardonly) strerr_die1x(111,"Uh-oh: .qmail has prog delivery but has x bit set. (#4.7.0)"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ qmail-local.c:675:7: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | if (str_equal(cmds.s + i + 1,"list")) | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-local.c:447:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 447 | int main(argc,argv) | ^ 233 warnings generated. ./compile qmail.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail.c:16:27: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | binqqargs[0] = env_get("QMAILQUEUE"); | ^ qmail.c:29:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | if (pipe(pim) == -1) return -1; | ^ qmail.c:30:26: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | if (pipe(pie) == -1) { close(pim[0]); close(pim[1]); return -1; } | ^ qmail.c:34:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | close(pim[0]); close(pim[1]); | ^ qmail.c:40:18: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (fd_move(0,pim[0]) == -1) _exit(120); | ^ qmail.c:41:18: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | if (fd_move(1,pie[0]) == -1) _exit(120); | ^ qmail.c:42:11: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | if (chdir(auto_qmail) == -1) _exit(61); | ^ qmail.c:43:7: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | execv(*binqqargs,binqqargs); | ^ qmail.c:47:21: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | qq->fdm = pim[1]; close(pim[0]); | ^ qmail.c:49:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | substdio_fdbuf(&qq->ss,write,qq->fdm,qq->buf,sizeof(qq->buf)); | ^ qmail.c:21:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | int qmail_open(qq) | ^ In file included from qmail.c:7: ./qmail.h:15:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | extern int qmail_open(); | ^ qmail.c:54:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | unsigned long qmail_qp(qq) struct qmail *qq; | ^ In file included from qmail.c:7: ./qmail.h:22:22: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | extern unsigned long qmail_qp(); | ^ qmail.c:59:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | void qmail_fail(qq) struct qmail *qq; | ^ In file included from qmail.c:7: ./qmail.h:20:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern void qmail_fail(); | ^ qmail.c:66:37: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (!qq->flagerr) if (substdio_put(&qq->ss,s,len) == -1) qq->flagerr = 1; | ^ qmail.c:64:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | void qmail_put(qq,s,len) struct qmail *qq; char *s; int len; | ^ In file included from qmail.c:7: ./qmail.h:16:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern void qmail_put(); | ^ qmail.c:71:38: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (!qq->flagerr) if (substdio_puts(&qq->ss,s) == -1) qq->flagerr = 1; | ^ qmail.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | void qmail_puts(qq,s) struct qmail *qq; char *s; | ^ In file included from qmail.c:7: ./qmail.h:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern void qmail_puts(); | ^ qmail.c:76:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (substdio_flush(&qq->ss) == -1) qq->flagerr = 1; | ^ qmail.c:77:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | close(qq->fdm); | ^ qmail.c:78:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_fdbuf(&qq->ss,write,qq->fde,qq->buf,sizeof(qq->buf)); | ^ qmail.c:74:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | void qmail_from(qq,s) struct qmail *qq; char *s; | ^ In file included from qmail.c:7: ./qmail.h:18:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern void qmail_from(); | ^ qmail.c:84:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | void qmail_to(qq,s) struct qmail *qq; char *s; | ^ In file included from qmail.c:7: ./qmail.h:19:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | extern void qmail_to(); | ^ qmail.c:98:39: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | if (!qq->flagerr) if (substdio_flush(&qq->ss) == -1) qq->flagerr = 1; | ^ qmail.c:99:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | close(qq->fde); | ^ qmail.c:101:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | if (wait_pid(&wstat,qq->pid) != qq->pid) | ^ qmail.c:91:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | char *qmail_close(qq) | ^ In file included from qmail.c:7: ./qmail.h:21:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | extern char *qmail_close(); | ^ 34 warnings generated. ./compile quote.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] quote.c:27:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (!stralloc_ready(saout,sain->len * 2 + 2)) return 0; | ^ quote.c:19:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | static int doit(saout,sain) | ^ quote.c:42:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | int quote_need(s,n) | ^ In file included from quote.c:3: ./quote.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int quote_need(); | ^ quote.c:66:22: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | return stralloc_copy(saout,sain); | ^ quote.c:61:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | int quote(saout,sain) | ^ In file included from quote.c:3: ./quote.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int quote(); | ^ quote.c:76:32: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (!*s) return stralloc_copys(sa,s); | ^ quote.c:77:14: warning: passing arguments to 'str_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | j = str_rchr(s,'@'); | ^ quote.c:78:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (!stralloc_copys(&foo,s)) return 0; | ^ quote.c:82:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | return stralloc_cats(sa,s + j); | ^ quote.c:71:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | int quote2(sa,s) | ^ In file included from quote.c:3: ./quote.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int quote2(); | ^ 13 warnings generated. ./compile now.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile gfrom.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] gfrom.c:9:33: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | return (len >= 5) && !str_diffn(s,"From ",5); | ^ gfrom.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int gfrom(s,len) | ^ In file included from gfrom.c:2: ./gfrom.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int gfrom(); | ^ 3 warnings generated. ./compile myctime.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] myctime.c:19:14: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | datetime_tai(&dt,t); | ^ myctime.c:21:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | len += fmt_str(result + len,daytab[dt.wday]); | ^ myctime.c:23:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | len += fmt_str(result + len,montab[dt.mon]); | ^ myctime.c:25:18: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | len += fmt_uint0(result + len,dt.mday,2); | ^ myctime.c:27:18: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | len += fmt_uint0(result + len,dt.hour,2); | ^ myctime.c:29:18: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | len += fmt_uint0(result + len,dt.min,2); | ^ myctime.c:31:18: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | len += fmt_uint0(result + len,dt.sec,2); | ^ myctime.c:33:17: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | len += fmt_uint(result + len,1900 + dt.year); | ^ myctime.c:14:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | char *myctime(t) | ^ In file included from myctime.c:3: ./myctime.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern char *myctime(); | ^ 10 warnings generated. ./compile slurpclose.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] slurpclose.c:13:28: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (!stralloc_readyplus(sa,bufsize)) { close(fd); return -1; } | ^ slurpclose.c:13:44: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 13 | if (!stralloc_readyplus(sa,bufsize)) { close(fd); return -1; } | ^ slurpclose.c:14:13: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | r = read(fd,sa->s + sa->len,bufsize); | ^ slurpclose.c:16:19: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 16 | if (r <= 0) { close(fd); return r; } | ^ slurpclose.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int slurpclose(fd,sa,bufsize) | ^ In file included from slurpclose.c:3: ./slurpclose.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int slurpclose(); | ^ 6 warnings generated. cat auto-ccld.sh make-makelib.sh > make-makelib chmod 755 make-makelib ( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > makelib chmod 755 makelib ./compile case_diffb.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] case_diffb.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int case_diffb(s,len,t) | ^ In file included from case_diffb.c:1: ./case.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern int case_diffb(); | ^ 2 warnings generated. ./compile case_diffs.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] case_diffs.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int case_diffs(s,t) | ^ In file included from case_diffs.c:1: ./case.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int case_diffs(); | ^ 2 warnings generated. ./compile case_lowerb.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] case_lowerb.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void case_lowerb(s,len) | ^ In file included from case_lowerb.c:1: ./case.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void case_lowerb(); | ^ 2 warnings generated. ./compile case_lowers.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] case_lowers.c:7:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 7 | while (x = *s) { | ~~^~~~ case_lowers.c:7:12: note: place parentheses around the assignment to silence this warning 7 | while (x = *s) { | ^ | ( ) case_lowers.c:7:12: note: use '==' to turn this assignment into an equality comparison 7 | while (x = *s) { | ^ | == case_lowers.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void case_lowers(s) | ^ In file included from case_lowers.c:1: ./case.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void case_lowers(); | ^ 3 warnings generated. ./compile case_starts.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] case_starts.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int case_starts(s,t) | ^ In file included from case_starts.c:1: ./case.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int case_starts(); | ^ 2 warnings generated. ./makelib case.a case_diffb.o case_diffs.o case_lowerb.o case_lowers.o case_starts.o ./compile getln.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] getln.c:15:13: warning: passing arguments to 'getln2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | if (getln2(ss,sa,&cont,&clen,sep) == -1) return -1; | ^ getln.c:17:21: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | if (!stralloc_catb(sa,cont,clen)) return -1; | ^ getln.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int getln(ss,sa,match,sep) | ^ In file included from getln.c:4: ./getln.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int getln(); | ^ 4 warnings generated. ./compile getln2.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] getln2.c:17:22: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | if (!stralloc_ready(sa,0)) return -1; | ^ getln2.c:21:22: warning: passing arguments to 'substdio_feed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | n = substdio_feed(ss); | ^ getln2.c:25:17: warning: passing arguments to 'byte_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | i = byte_chr(x,n,sep); | ^ getln2.c:27:28: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (!stralloc_readyplus(sa,n)) return -1; | ^ getln2.c:29:31: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | sa->len = i + substdio_get(ss,sa->s + i,n); | ^ getln2.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int getln2(ss,sa,cont,clen,sep) | ^ In file included from getln2.c:4: ./getln.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int getln2(); | ^ 7 warnings generated. ./makelib getln.a getln.o getln2.o ./compile subgetopt.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] subgetopt.c:28:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | int sgopt(argc,argv,opts) | ^ subgetopt.c:15:15: note: expanded from macro 'sgopt' 15 | #define sgopt subgetopt | ^ In file included from subgetopt.c:13: ./subgetopt.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int subgetopt(); | ^ 2 warnings generated. ./compile sgetopt.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sgetopt.c:41:16: warning: passing arguments to 'subgetopt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | c = subgetopt(argc,argv,opts); | ^ sgetopt.c:45:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | substdio_puts(subfderr,optprogname); | ^ sgetopt.c:47:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_puts(subfderr,": illegal option -- "); | ^ sgetopt.c:49:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | substdio_puts(subfderr,": option requires an argument -- "); | ^ sgetopt.c:50:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | substdio_put(subfderr,chp,2); | ^ sgetopt.c:51:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | substdio_flush(subfderr); | ^ sgetopt.c:28:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | int getopt(argc,argv,opts) | ^ sgetopt.c:19:16: note: expanded from macro 'getopt' 19 | #define getopt sgetoptmine | ^ In file included from sgetopt.c:15: ./sgetopt.h:17:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern int sgetoptmine(); | ^ 8 warnings generated. ./makelib getopt.a subgetopt.o sgetopt.o ./compile sig_alarm.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_alarm.c:4:34: warning: passing arguments to 'sig_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_alarmblock() { sig_block(SIGALRM); } | ^ sig_alarm.c:5:38: warning: passing arguments to 'sig_unblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_alarmunblock() { sig_unblock(SIGALRM); } | ^ sig_alarm.c:6:48: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_alarmcatch(f) void (*f)(); { sig_catch(SIGALRM,f); } | ^ sig_alarm.c:6:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_alarmcatch(f) void (*f)(); { sig_catch(SIGALRM,f); } | ^ In file included from sig_alarm.c:2: ./sig.h:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | extern void sig_alarmcatch(); | ^ sig_alarm.c:7:36: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void sig_alarmdefault() { sig_catch(SIGALRM,SIG_DFL); } | ^ 6 warnings generated. ( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null 2>&1 && echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h rm -f trysgprm.o trysgprm ./compile sig_block.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_block.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_block(sig) | ^ In file included from sig_block.c:2: ./sig.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void sig_block(); | ^ sig_block.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void sig_unblock(sig) | ^ In file included from sig_block.c:2: ./sig.h:6:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern void sig_unblock(); | ^ 4 warnings generated. ( ( ./compile trysgact.c && ./load trysgact ) >/dev/null 2>&1 && echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h rm -f trysgact.o trysgact ./compile sig_catch.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_catch.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_catch(sig,f) | ^ In file included from sig_catch.c:2: ./sig.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void sig_catch(); | ^ 2 warnings generated. ./compile sig_pause.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile sig_pipe.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_pipe.c:4:34: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_pipeignore() { sig_catch(SIGPIPE,SIG_IGN); } | ^ sig_pipe.c:5:35: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_pipedefault() { sig_catch(SIGPIPE,SIG_DFL); } | ^ 2 warnings generated. ./compile sig_child.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_child.c:4:34: warning: passing arguments to 'sig_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_childblock() { sig_block(SIGCHLD); } | ^ sig_child.c:5:38: warning: passing arguments to 'sig_unblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_childunblock() { sig_unblock(SIGCHLD); } | ^ sig_child.c:6:48: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_childcatch(f) void (*f)(); { sig_catch(SIGCHLD,f); } | ^ sig_child.c:6:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_childcatch(f) void (*f)(); { sig_catch(SIGCHLD,f); } | ^ In file included from sig_child.c:2: ./sig.h:35:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 35 | extern void sig_childcatch(); | ^ sig_child.c:7:36: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void sig_childdefault() { sig_catch(SIGCHLD,SIG_DFL); } | ^ 6 warnings generated. ./compile sig_hup.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_hup.c:4:35: warning: passing arguments to 'sig_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_hangupblock() { sig_block(SIGHUP); } | ^ sig_hup.c:5:39: warning: passing arguments to 'sig_unblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_hangupunblock() { sig_unblock(SIGHUP); } | ^ sig_hup.c:6:49: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_hangupcatch(f) void (*f)(); { sig_catch(SIGHUP,f); } | ^ sig_hup.c:6:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_hangupcatch(f) void (*f)(); { sig_catch(SIGHUP,f); } | ^ In file included from sig_hup.c:2: ./sig.h:40:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 40 | extern void sig_hangupcatch(); | ^ sig_hup.c:7:37: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void sig_hangupdefault() { sig_catch(SIGHUP,SIG_DFL); } | ^ 6 warnings generated. ./compile sig_term.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_term.c:4:33: warning: passing arguments to 'sig_block' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_termblock() { sig_block(SIGTERM); } | ^ sig_term.c:5:37: warning: passing arguments to 'sig_unblock' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void sig_termunblock() { sig_unblock(SIGTERM); } | ^ sig_term.c:6:47: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_termcatch(f) void (*f)(); { sig_catch(SIGTERM,f); } | ^ sig_term.c:6:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void sig_termcatch(f) void (*f)(); { sig_catch(SIGTERM,f); } | ^ In file included from sig_term.c:2: ./sig.h:25:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | extern void sig_termcatch(); | ^ sig_term.c:7:35: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void sig_termdefault() { sig_catch(SIGTERM,SIG_DFL); } | ^ 6 warnings generated. ./compile sig_bug.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_bug.c:6:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | sig_catch(SIGILL,f); | ^ sig_bug.c:7:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | sig_catch(SIGABRT,f); | ^ sig_bug.c:8:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | sig_catch(SIGFPE,f); | ^ sig_bug.c:9:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | sig_catch(SIGBUS,f); | ^ sig_bug.c:10:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | sig_catch(SIGSEGV,f); | ^ sig_bug.c:12:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | sig_catch(SIGSYS,f); | ^ sig_bug.c:15:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | sig_catch(SIGEMT,f); | ^ sig_bug.c:4:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void sig_bugcatch(f) void (*f)(); | ^ In file included from sig_bug.c:2: ./sig.h:13:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern void sig_bugcatch(); | ^ 9 warnings generated. ./compile sig_misc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sig_misc.c:6:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | sig_catch(SIGVTALRM,SIG_IGN); | ^ sig_misc.c:7:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | sig_catch(SIGPROF,SIG_IGN); | ^ sig_misc.c:8:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | sig_catch(SIGQUIT,SIG_IGN); | ^ sig_misc.c:9:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | sig_catch(SIGINT,SIG_IGN); | ^ sig_misc.c:10:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | sig_catch(SIGHUP,SIG_IGN); | ^ sig_misc.c:12:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | sig_catch(SIGXCPU,SIG_IGN); | ^ sig_misc.c:15:12: warning: passing arguments to 'sig_catch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | sig_catch(SIGXFSZ,SIG_IGN); | ^ 7 warnings generated. ./makelib sig.a sig_alarm.o sig_block.o sig_catch.o sig_pause.o sig_pipe.o sig_child.o sig_hup.o sig_term.o sig_bug.o sig_misc.o ./compile open_append.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] open_append.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int open_append(fn) char *fn; | ^ In file included from open_append.c:3: ./open.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int open_append(); | ^ 2 warnings generated. ./compile open_excl.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] open_excl.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int open_excl(fn) char *fn; | ^ In file included from open_excl.c:3: ./open.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int open_excl(); | ^ 2 warnings generated. ./compile open_read.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] open_read.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int open_read(fn) char *fn; | ^ In file included from open_read.c:3: ./open.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int open_read(); | ^ 2 warnings generated. ./compile open_trunc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] open_trunc.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int open_trunc(fn) char *fn; | ^ In file included from open_trunc.c:3: ./open.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern int open_trunc(); | ^ 2 warnings generated. ./compile open_write.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] open_write.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int open_write(fn) char *fn; | ^ In file included from open_write.c:3: ./open.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int open_write(); | ^ 2 warnings generated. ./makelib open.a open_append.o open_excl.o open_read.o open_trunc.o open_write.o ./compile seek_cur.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] seek_cur.c:6:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | seek_pos seek_cur(fd) int fd; | ^ In file included from seek_cur.c:2: ./seek.h:6:17: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern seek_pos seek_cur(); | ^ 2 warnings generated. ./compile seek_end.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] seek_end.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int seek_end(fd) int fd; | ^ In file included from seek_end.c:2: ./seek.h:9:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern int seek_end(); | ^ 2 warnings generated. ./compile seek_set.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] seek_set.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int seek_set(fd,pos) int fd; seek_pos pos; | ^ In file included from seek_set.c:2: ./seek.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int seek_set(); | ^ 2 warnings generated. ./compile seek_trunc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] seek_trunc.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int seek_trunc(fd,pos) int fd; seek_pos pos; | ^ In file included from seek_trunc.c:2: ./seek.h:11:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern int seek_trunc(); | ^ 2 warnings generated. ./makelib seek.a seek_cur.o seek_end.o seek_set.o seek_trunc.o ( ( ./compile tryflock.c && ./load tryflock ) >/dev/null 2>&1 && echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h rm -f tryflock.o tryflock ./compile lock_ex.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] lock_ex.c:8:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | int lock_ex(fd) int fd; { return flock(fd,LOCK_EX); } | ^ In file included from lock_ex.c:5: ./lock.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int lock_ex(); | ^ 2 warnings generated. ./compile lock_exnb.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] lock_exnb.c:8:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | int lock_exnb(fd) int fd; { return flock(fd,LOCK_EX | LOCK_NB); } | ^ In file included from lock_exnb.c:5: ./lock.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int lock_exnb(); | ^ 2 warnings generated. ./compile lock_un.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] lock_un.c:8:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | int lock_un(fd) int fd; { return flock(fd,LOCK_UN); } | ^ In file included from lock_un.c:5: ./lock.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int lock_un(); | ^ 2 warnings generated. ./makelib lock.a lock_ex.o lock_exnb.o lock_un.o ./compile fd_copy.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fd_copy.c:10:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 10 | close(to); | ^ fd_copy.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int fd_copy(to,from) | ^ In file included from fd_copy.c:2: ./fd.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int fd_copy(); | ^ 3 warnings generated. ./compile fd_move.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fd_move.c:8:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | if (fd_copy(to,from) == -1) return -1; | ^ fd_move.c:9:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 9 | close(from); | ^ fd_move.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int fd_move(to,from) | ^ In file included from fd_move.c:1: ./fd.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int fd_move(); | ^ 4 warnings generated. ./makelib fd.a fd_copy.o fd_move.o ( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null 2>&1 && echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h rm -f trywaitp.o trywaitp ./compile wait_pid.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] wait_pid.c:8:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | int wait_pid(wstat,pid) int *wstat; int pid; | ^ 1 warning generated. ./compile wait_nohang.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] wait_nohang.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int wait_nohang(wstat) int *wstat; | ^ 1 warning generated. ./makelib wait.a wait_pid.o wait_nohang.o ./compile env.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] env.c:19:12: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | alloc_free(environ[i]); | ^ env.c:17:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | static void env_goodbye(i) int i; | ^ env.c:36:18: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | if (!str_diffn(s,environ[i],len)) | ^ env.c:32:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | static void env_unsetlen(s,len) char *s; int len; | ^ env.c:44:24: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | env_unsetlen(s,str_len(s)); | ^ env.c:41:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | int env_unset(s) char *s; | ^ In file included from env.c:11: ./env.h:9:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern int env_unset(); | ^ env.c:51:16: warning: passing arguments to 'env_findeq' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | t = env_findeq(s); | ^ env.c:56:17: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | if (!alloc_re(&environ,(en + 1) * sizeof(char *),(ea + 1) * sizeof(char *))) | ^ env.c:48:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | static int env_add(s) char *s; | ^ env.c:68:19: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | u = alloc(str_len(s) + 1); | ^ env.c:68:11: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | u = alloc(str_len(s) + 1); | ^ env.c:70:10: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | str_copy(u,s); | ^ env.c:71:31: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (!env_add(u)) { alloc_free(u); return 0; } | ^ env.c:64:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | int env_put(s) char *s; | ^ In file included from env.c:11: ./env.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern int env_put(); | ^ env.c:80:16: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | slen = str_len(s); | ^ env.c:81:26: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | u = alloc(slen + str_len(t) + 2); | ^ env.c:81:11: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | u = alloc(slen + str_len(t) + 2); | ^ env.c:83:10: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | str_copy(u,s); | ^ env.c:85:10: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | str_copy(u + slen + 1,t); | ^ env.c:86:31: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | if (!env_add(u)) { alloc_free(u); return 0; } | ^ env.c:75:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | int env_put2(s,t) char *s; char *t; | ^ In file included from env.c:11: ./env.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int env_put2(); | ^ env.c:96:30: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | newenviron = (char **) alloc((ea + 1) * sizeof(char *)); | ^ env.c:100:34: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | newenviron[en] = alloc(str_len(environ[en]) + 1); | ^ env.c:100:26: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | newenviron[en] = alloc(str_len(environ[en]) + 1); | ^ env.c:103:39: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | for (i = 0;i < en;++i) alloc_free(newenviron[i]); | ^ env.c:104:16: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | alloc_free(newenviron); | ^ env.c:107:12: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | str_copy(newenviron[en],environ[en]); | ^ 30 warnings generated. ./compile envread.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] envread.c:11:17: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | slen = str_len(s); | ^ envread.c:12:19: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 12 | for (i = 0;envi = environ[i];++i) | ~~~~~^~~~~~~~~~~~ envread.c:12:19: note: place parentheses around the assignment to silence this warning 12 | for (i = 0;envi = environ[i];++i) | ^ | ( ) envread.c:12:19: note: use '==' to turn this assignment into an equality comparison 12 | for (i = 0;envi = environ[i];++i) | ^ | == envread.c:13:20: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if ((!str_diffn(s,envi,slen)) && (envi[slen] == '=')) | ^ envread.c:4:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | extern /*@null@*/char *env_get(s) | ^ In file included from envread.c:1: ./env.h:10:24: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern /*@null@*/char *env_get(); | ^ envread.c:23:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | extern char *env_findeq(s) | ^ In file included from envread.c:1: ./env.h:13:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern char *env_findeq(); | ^ 7 warnings generated. ./makelib env.a env.o envread.o ./compile stralloc_eady.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_eady.c:5:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_ready(stralloc,char,s,len,a,i,n,x,30,stralloc_ready) | ^ ./gen_allocdefs.h:11:19: note: expanded from macro 'GEN_ALLOC_ready' 11 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ stralloc_eady.c:5:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:15:38: note: expanded from macro 'GEN_ALLOC_ready' 15 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ stralloc_eady.c:5:48: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_ready(stralloc,char,s,len,a,i,n,x,30,stralloc_ready) | ^ In file included from stralloc_eady.c:2: ./stralloc.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int stralloc_ready(); | ^ stralloc_eady.c:6:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | GEN_ALLOC_readyplus(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ stralloc_eady.c:6:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ stralloc_eady.c:6:52: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | GEN_ALLOC_readyplus(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus) | ^ In file included from stralloc_eady.c:2: ./stralloc.h:9:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern int stralloc_readyplus(); | ^ 8 warnings generated. ./compile stralloc_pend.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_pend.c:5:1: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_append(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus,stralloc_append) | ^ ./gen_allocdefs.h:32:16: note: expanded from macro 'GEN_ALLOC_append' 32 | { if (!ta_rplus(x,1)) return 0; x->field[x->len++] = *i; return 1; } | ^ stralloc_pend.c:5:68: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_append(stralloc,char,s,len,a,i,n,x,30,stralloc_readyplus,stralloc_append) | ^ In file included from stralloc_pend.c:2: ./stralloc.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int stralloc_append(); /* beware: this takes a pointer to 1 char */ | ^ 3 warnings generated. ./compile stralloc_copy.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_copy.c:8:24: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | return stralloc_copyb(sato,safrom->s,safrom->len); | ^ stralloc_copy.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int stralloc_copy(sato,safrom) | ^ In file included from stralloc_copy.c:2: ./stralloc.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int stralloc_copy(); | ^ 3 warnings generated. ./compile stralloc_opys.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_opys.c:9:37: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | return stralloc_copyb(sa,s,str_len(s)); | ^ stralloc_opys.c:9:24: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | return stralloc_copyb(sa,s,str_len(s)); | ^ stralloc_opys.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int stralloc_copys(sa,s) | ^ In file included from stralloc_opys.c:3: ./stralloc.h:12:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | extern int stralloc_copys(); | ^ 4 warnings generated. ./compile stralloc_opyb.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_opyb.c:9:22: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | if (!stralloc_ready(sa,n + 1)) return 0; | ^ stralloc_opyb.c:10:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | byte_copy(sa->s,n,s); | ^ stralloc_opyb.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int stralloc_copyb(sa,s,n) | ^ In file included from stralloc_opyb.c:1: ./stralloc.h:14:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | extern int stralloc_copyb(); | ^ 4 warnings generated. ./compile stralloc_cat.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_cat.c:8:23: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | return stralloc_catb(sato,safrom->s,safrom->len); | ^ stralloc_cat.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int stralloc_cat(sato,safrom) | ^ In file included from stralloc_cat.c:2: ./stralloc.h:11:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern int stralloc_cat(); | ^ 3 warnings generated. ./compile stralloc_cats.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_cats.c:9:36: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | return stralloc_catb(sa,s,str_len(s)); | ^ stralloc_cats.c:9:23: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | return stralloc_catb(sa,s,str_len(s)); | ^ stralloc_cats.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int stralloc_cats(sa,s) | ^ In file included from stralloc_cats.c:3: ./stralloc.h:13:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern int stralloc_cats(); | ^ 4 warnings generated. ./compile stralloc_catb.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_catb.c:9:36: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | if (!sa->s) return stralloc_copyb(sa,s,n); | ^ stralloc_catb.c:10:26: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | if (!stralloc_readyplus(sa,n + 1)) return 0; | ^ stralloc_catb.c:11:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | byte_copy(sa->s + sa->len,n,s); | ^ stralloc_catb.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int stralloc_catb(sa,s,n) | ^ In file included from stralloc_catb.c:1: ./stralloc.h:15:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | extern int stralloc_catb(); | ^ 5 warnings generated. ./compile stralloc_arts.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] stralloc_arts.c:10:16: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | len = str_len(s); | ^ stralloc_arts.c:11:30: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | return (sa->len >= len) && byte_equal(s,len,sa->s); | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ stralloc_arts.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int stralloc_starts(sa,s) | ^ In file included from stralloc_arts.c:3: ./stralloc.h:17:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern int stralloc_starts(); | ^ 4 warnings generated. ./makelib stralloc.a stralloc_eady.o stralloc_pend.o stralloc_copy.o stralloc_opys.o stralloc_opyb.o stralloc_cat.o stralloc_cats.o stralloc_catb.o stralloc_arts.o ./compile alloc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] alloc.c:14:26: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | /*@null@*//*@out@*/char *alloc(n) | ^ In file included from alloc.c:3: ./alloc.h:4:33: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern /*@null@*//*@out@*/char *alloc(); | ^ alloc.c:29:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | void alloc_free(x) | ^ In file included from alloc.c:3: ./alloc.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void alloc_free(); | ^ 4 warnings generated. ./compile alloc_re.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] alloc_re.c:11:12: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | y = alloc(n); | ^ alloc_re.c:13:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | byte_copy(y,m,*x); | ^ alloc_re.c:14:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | alloc_free(*x); | ^ alloc_re.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int alloc_re(x,m,n) | ^ In file included from alloc_re.c:1: ./alloc.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int alloc_re(); | ^ 5 warnings generated. ./makelib alloc.a alloc.o alloc_re.o ./compile strerr_sys.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] strerr_sys.c:9:27: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | strerr_sys.x = error_str(errno); | ^ 1 warning generated. ./compile strerr_die.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] strerr_die.c:12:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | if (x1) substdio_puts(subfderr,x1); | ^ strerr_die.c:13:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (x2) substdio_puts(subfderr,x2); | ^ strerr_die.c:14:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | if (x3) substdio_puts(subfderr,x3); | ^ strerr_die.c:15:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | if (x4) substdio_puts(subfderr,x4); | ^ strerr_die.c:16:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | if (x5) substdio_puts(subfderr,x5); | ^ strerr_die.c:17:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | if (x6) substdio_puts(subfderr,x6); | ^ strerr_die.c:20:29: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | if (se->x) substdio_puts(subfderr,se->x); | ^ strerr_die.c:21:29: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | if (se->y) substdio_puts(subfderr,se->y); | ^ strerr_die.c:22:29: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | if (se->z) substdio_puts(subfderr,se->z); | ^ strerr_die.c:26:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | substdio_puts(subfderr,"\n"); | ^ strerr_die.c:27:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | substdio_flush(subfderr); | ^ strerr_die.c:6:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | void strerr_warn(x1,x2,x3,x4,x5,x6,se) | ^ In file included from strerr_die.c:4: ./strerr.h:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern void strerr_warn(); | ^ strerr_die.c:30:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | void strerr_die(e,x1,x2,x3,x4,x5,x6,se) | ^ In file included from strerr_die.c:4: ./strerr.h:18:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern void strerr_die(); | ^ 15 warnings generated. ./makelib strerr.a strerr_sys.o strerr_die.o ./compile substdio.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] substdio.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void substdio_fdbuf(s,op,fd,buf,len) | ^ In file included from substdio.c:1: ./substdio.h:14:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | extern void substdio_fdbuf(); | ^ 2 warnings generated. ./compile substdi.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] substdi.c:14:11: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | r = op(fd,buf,len); | ^ substdi.c:5:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | static int oneread(op,fd,buf,len) | ^ substdi.c:31:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | byte_copy(buf,r,s->x + s->n); | ^ substdi.c:20:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | static int getthis(s,buf,len) | ^ substdi.c:49:48: warning: passing arguments to 'byte_copyr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (q > 0) /* damn, gotta shift */ byte_copyr(s->x + q,r,s->x); | ^ substdi.c:36:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | int substdio_feed(s) | ^ In file included from substdi.c:1: ./substdio.h:26:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | extern int substdio_feed(); | ^ substdi.c:53:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | int substdio_bget(s,buf,len) | ^ In file included from substdi.c:1: ./substdio.h:25:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 25 | extern int substdio_bget(); | ^ substdi.c:66:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | int substdio_get(s,buf,len) | ^ In file included from substdi.c:1: ./substdio.h:24:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 24 | extern int substdio_get(); | ^ substdi.c:79:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | char *substdio_peek(s) | ^ In file included from substdi.c:1: ./substdio.h:28:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | extern char *substdio_peek(); | ^ substdi.c:85:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | void substdio_seek(s,len) | ^ In file included from substdi.c:1: ./substdio.h:29:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 29 | extern void substdio_seek(); | ^ 15 warnings generated. ./compile substdo.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] substdo.c:15:11: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | w = op(fd,buf,len); | ^ substdo.c:20:17: warning: if statement has empty body [-Wempty-body] 20 | if (w == 0) ; /* luser's fault */ | ^ substdo.c:20:17: note: put the semicolon on a separate line to silence this warning substdo.c:6:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | static int allwrite(op,fd,buf,len) | ^ substdo.c:27:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | int substdio_flush(s) | ^ In file included from substdo.c:1: ./substdio.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int substdio_flush(); | ^ substdo.c:46:14: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | byte_copy(s->x + s->p,n,buf); s->p += n; buf += n; len -= n; | ^ substdo.c:50:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | byte_copy(s->x + s->p,len,buf); | ^ substdo.c:38:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | int substdio_bput(s,buf,len) | ^ In file included from substdo.c:1: ./substdio.h:18:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern int substdio_bput(); | ^ substdo.c:75:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | byte_copy(s->x + s->p,len,buf); | ^ substdo.c:55:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | int substdio_put(s,buf,len) | ^ In file included from substdo.c:1: ./substdio.h:17:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern int substdio_put(); | ^ substdo.c:80:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | int substdio_putflush(s,buf,len) | ^ In file included from substdo.c:1: ./substdio.h:19:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | extern int substdio_putflush(); | ^ substdo.c:93:37: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | return substdio_bput(s,buf,str_len(buf)); | ^ substdo.c:89:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | int substdio_bputs(s,buf) | ^ In file included from substdo.c:1: ./substdio.h:21:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | extern int substdio_bputs(); | ^ substdo.c:100:36: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | return substdio_put(s,buf,str_len(buf)); | ^ substdo.c:96:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | int substdio_puts(s,buf) | ^ In file included from substdo.c:1: ./substdio.h:20:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern int substdio_puts(); | ^ substdo.c:107:41: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | return substdio_putflush(s,buf,str_len(buf)); | ^ substdo.c:103:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | int substdio_putsflush(s,buf) | ^ In file included from substdo.c:1: ./substdio.h:22:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | extern int substdio_putsflush(); | ^ 23 warnings generated. ./compile subfderr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile subfdout.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile subfdouts.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile subfdin.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] subfdin.c:7:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | if (substdio_flush(subfdout) == -1) return -1; | ^ subfdin.c:8:14: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | return read(fd,buf,len); | ^ subfdin.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int subfd_read(fd,buf,len) int fd; char *buf; int len; | ^ In file included from subfdin.c:3: ./subfd.h:12:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | extern int subfd_read(); | ^ 4 warnings generated. ./compile subfdins.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] subfdins.c:7:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | if (substdio_flush(subfdoutsmall) == -1) return -1; | ^ subfdins.c:8:14: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | return read(fd,buf,len); | ^ subfdins.c:5:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | int subfd_readsmall(fd,buf,len) int fd; char *buf; int len; | ^ In file included from subfdins.c:3: ./subfd.h:13:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern int subfd_readsmall(); | ^ 4 warnings generated. ./compile substdio_copy.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] substdio_copy.c:11:22: warning: passing arguments to 'substdio_feed' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | n = substdio_feed(ssin); | ^ substdio_copy.c:15:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | if (substdio_put(ssout,x,n) == -1) return -3; | ^ substdio_copy.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int substdio_copy(ssout,ssin) | ^ In file included from substdio_copy.c:1: ./substdio.h:45:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 45 | extern int substdio_copy(); | ^ 4 warnings generated. ./makelib substdio.a substdio.o substdi.o substdo.o subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o substdio_copy.o ./compile error.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile error_str.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] error_str.c:6:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | char *error_str(i) | ^ In file included from error_str.c:2: ./error.h:20:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern char *error_str(); | ^ 2 warnings generated. ./compile error_temp.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] error_temp.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int error_temp(e) | ^ In file included from error_temp.c:2: ./error.h:21:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | extern int error_temp(); | ^ 2 warnings generated. ./makelib error.a error.o error_str.o error_temp.o ./compile str_len.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_len.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int str_len(s) | ^ In file included from str_len.c:1: ./str.h:7:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern unsigned int str_len(); | ^ 2 warnings generated. ./compile str_diff.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_diff.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int str_diff(s,t) | ^ In file included from str_diff.c:1: ./str.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int str_diff(); | ^ 2 warnings generated. ./compile str_diffn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_diffn.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int str_diffn(s,t,len) | ^ In file included from str_diffn.c:1: ./str.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int str_diffn(); | ^ 2 warnings generated. ./compile str_cpy.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_cpy.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int str_copy(s,t) | ^ In file included from str_cpy.c:1: ./str.h:4:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern unsigned int str_copy(); | ^ 2 warnings generated. ./compile str_chr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_chr.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int str_chr(s,c) | ^ In file included from str_chr.c:1: ./str.h:8:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern unsigned int str_chr(); | ^ 2 warnings generated. ./compile str_rchr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_rchr.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int str_rchr(s,c) | ^ In file included from str_rchr.c:1: ./str.h:9:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern unsigned int str_rchr(); | ^ 2 warnings generated. ./compile str_start.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] str_start.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int str_start(s,t) | ^ In file included from str_start.c:1: ./str.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int str_start(); | ^ 2 warnings generated. ./compile byte_chr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_chr.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int byte_chr(s,n,c) | ^ In file included from byte_chr.c:1: ./byte.h:4:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern unsigned int byte_chr(); | ^ 2 warnings generated. ./compile byte_rchr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_rchr.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int byte_rchr(s,n,c) | ^ In file included from byte_rchr.c:1: ./byte.h:5:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern unsigned int byte_rchr(); | ^ 2 warnings generated. ./compile byte_diff.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_diff.c:3:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | int byte_diff(s,n,t) | ^ In file included from byte_diff.c:1: ./byte.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int byte_diff(); | ^ 2 warnings generated. ./compile byte_copy.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_copy.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void byte_copy(to,n,from) | ^ In file included from byte_copy.c:1: ./byte.h:6:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern void byte_copy(); | ^ 2 warnings generated. ./compile byte_cr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_cr.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void byte_copyr(to,n,from) | ^ In file included from byte_cr.c:1: ./byte.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void byte_copyr(); | ^ 2 warnings generated. ./compile byte_zero.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] byte_zero.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void byte_zero(s,n) | ^ In file included from byte_zero.c:1: ./byte.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void byte_zero(); | ^ 2 warnings generated. ./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o byte_diff.o byte_copy.o byte_cr.o byte_zero.o ./compile fmt_str.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmt_str.c:9:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 9 | if (s) { while (ch = t[len]) s[len++] = ch; } | ~~~^~~~~~~~ fmt_str.c:9:22: note: place parentheses around the assignment to silence this warning 9 | if (s) { while (ch = t[len]) s[len++] = ch; } | ^ | ( ) fmt_str.c:9:22: note: use '==' to turn this assignment into an equality comparison 9 | if (s) { while (ch = t[len]) s[len++] = ch; } | ^ | == fmt_str.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int fmt_str(s,t) | ^ In file included from fmt_str.c:1: ./fmt.h:22:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | extern unsigned int fmt_str(); | ^ 3 warnings generated. ./compile fmt_strn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmt_strn.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int fmt_strn(s,t,n) | ^ In file included from fmt_strn.c:1: ./fmt.h:23:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | extern unsigned int fmt_strn(); | ^ 2 warnings generated. ./compile fmt_uint.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmt_uint.c:5:52: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | register unsigned long l; l = u; return fmt_ulong(s,l); | ^ fmt_uint.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int fmt_uint(s,u) register char *s; register unsigned int u; | ^ In file included from fmt_uint.c:1: ./fmt.h:7:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern unsigned int fmt_uint(); | ^ 3 warnings generated. ./compile fmt_uint0.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmt_uint0.c:6:17: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | len = fmt_uint(FMT_LEN,u); | ^ fmt_uint0.c:8:18: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | if (s) fmt_uint(s,u); | ^ fmt_uint0.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int fmt_uint0(s,u,n) char *s; unsigned int u; unsigned int n; | ^ In file included from fmt_uint0.c:1: ./fmt.h:8:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern unsigned int fmt_uint0(); | ^ 4 warnings generated. ./compile fmt_ulong.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmt_ulong.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int fmt_ulong(s,u) register char *s; register unsigned long u; | ^ In file included from fmt_ulong.c:1: ./fmt.h:14:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 14 | extern unsigned int fmt_ulong(); | ^ 2 warnings generated. ./compile scan_ulong.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] scan_ulong.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int scan_ulong(s,u) register char *s; register unsigned long *u; | ^ In file included from scan_ulong.c:1: ./scan.h:10:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern unsigned int scan_ulong(); | ^ 2 warnings generated. ./compile scan_8long.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] scan_8long.c:3:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | unsigned int scan_8long(s,u) register char *s; register unsigned long *u; | ^ 1 warning generated. ./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o fmt_ulong.o scan_ulong.o scan_8long.o ./compile datetime.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] datetime.c:4:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | void datetime_tai(dt,t) | ^ In file included from datetime.c:2: ./datetime.h:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern void datetime_tai(); | ^ 2 warnings generated. ./compile datetime_un.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] datetime_un.c:4:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | datetime_sec datetime_untai(dt) | ^ In file included from datetime_un.c:1: ./datetime.h:18:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern datetime_sec datetime_untai(); | ^ 2 warnings generated. ./makelib datetime.a datetime.o datetime_un.o ./compile auto-str.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] auto-str.c:11:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | if (substdio_puts(&ss1,s) == -1) _exit(111); | ^ auto-str.c:8:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | void puts(s) | ^ auto-str.c:32:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 32 | while (ch = *value++) { | ~~~^~~~~~~~~~ auto-str.c:32:13: note: place parentheses around the assignment to silence this warning 32 | while (ch = *value++) { | ^ | ( ) auto-str.c:32:13: note: use '==' to turn this assignment into an equality comparison 32 | while (ch = *value++) { | ^ | == auto-str.c:42:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | if (substdio_flush(&ss1) == -1) _exit(111); | ^ auto-str.c:14:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | int main(argc,argv) | ^ 5 warnings generated. ./load auto-str substdio.a error.a str.a ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c ./compile auto_qmail.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./compile auto-int8.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] auto-int8.c:13:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (substdio_puts(&ss1,s) == -1) _exit(111); | ^ auto-int8.c:10:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | void puts(s) | ^ auto-int8.c:30:3: warning: call to undeclared function 'scan_8long'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | scan_8long(value,&num); | ^ auto-int8.c:31:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | strnum[fmt_ulong(strnum,num)] = 0; | ^ auto-int8.c:38:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | if (substdio_flush(&ss1) == -1) _exit(111); | ^ auto-int8.c:16:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | int main(argc,argv) | ^ 6 warnings generated. ./load auto-int8 substdio.a error.a str.a fs.a ./auto-int8 auto_patrn `head -1 conf-patrn` > auto_patrn.c ./compile auto_patrn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ( ( ./compile trylsock.c && ./load trylsock -lsocket -lnsl ) >/dev/null 2>&1 && echo -lsocket -lnsl || exit 0 ) > socket.lib rm -f trylsock.o trylsock ./load qmail-local qmail.o quote.o now.o gfrom.o myctime.o slurpclose.o case.a getln.a getopt.a sig.a open.a seek.a lock.a fd.a wait.a env.a stralloc.a alloc.a strerr.a substdio.a error.a str.a fs.a datetime.a auto_qmail.o auto_patrn.o `cat socket.lib` ( ( ./compile tryulong32.c && ./load tryulong32 && ./tryulong32 ) >/dev/null 2>&1 && cat uint32.h2 || cat uint32.h1 ) > uint32.h rm -f tryulong32.o tryulong32 ./compile qmail-lspawn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-lspawn.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void initialize(argc,argv) | ^ qmail-lspawn.c:37:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | { substdio_puts(ss,"Zqmail-local crashed.\n"); return; } | ^ qmail-lspawn.c:41:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | substdio_puts(ss,"ZTrouble reading users/cdb in qmail-lspawn.\n"); return; | ^ qmail-lspawn.c:43:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | substdio_puts(ss,"ZOut of memory in qmail-lspawn.\n"); return; | ^ qmail-lspawn.c:45:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | substdio_puts(ss,"ZTemporary failure in qmail-lspawn.\n"); return; | ^ qmail-lspawn.c:47:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_puts(ss,"ZUnable to find alias user!\n"); return; | ^ qmail-lspawn.c:49:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | substdio_puts(ss,"ZNot allowed to perform deliveries as root.\n"); return; | ^ qmail-lspawn.c:51:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | substdio_puts(ss,"ZInternal qmail-lspawn bug.\n"); return; | ^ qmail-lspawn.c:53:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | substdio_puts(ss,"ZNFS failure in qmail-local.\n"); return; | ^ qmail-lspawn.c:55:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | substdio_puts(ss,"DUnable to run qmail-local.\n"); return; | ^ qmail-lspawn.c:57:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | substdio_puts(ss,"ZUnable to run qmail-local.\n"); return; | ^ qmail-lspawn.c:59:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | substdio_puts(ss,"ZUnable to run qmail-getpw.\n"); return; | ^ qmail-lspawn.c:61:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | substdio_put(ss,"Z",1); break; | ^ qmail-lspawn.c:63:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | substdio_put(ss,"K",1); break; | ^ qmail-lspawn.c:66:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | substdio_put(ss,"D",1); break; | ^ qmail-lspawn.c:70:14: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | substdio_put(ss,s,i); | ^ qmail-lspawn.c:29:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | void report(ss,wstat,s,len) | ^ qmail-lspawn.c:88:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (!stralloc_copys(&lower,"!")) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:89:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | if (!stralloc_cats(&lower,local)) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:90:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | if (!stralloc_0(&lower)) _exit(QLX_NOMEM); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-lspawn.c:91:13: warning: passing arguments to 'case_lowerb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | case_lowerb(lower.s,lower.len); | ^ qmail-lspawn.c:93:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | if (!stralloc_copys(&nughde,"")) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:95:7: warning: call to undeclared function 'open_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | fd = open_read("users/cdb"); | ^ qmail-lspawn.c:105:16: warning: passing arguments to 'cdb_seek' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | r = cdb_seek(fd,"",0,&dlen); | ^ qmail-lspawn.c:107:23: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | if (!stralloc_ready(&wildchars,(unsigned int) dlen)) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:109:17: warning: passing arguments to 'cdb_bread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (cdb_bread(fd,wildchars.s,wildchars.len) == -1) _exit(QLX_CDB); | ^ qmail-lspawn.c:117:36: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | if (!flagwild || (i == 1) || (byte_chr(wildchars.s,wildchars.len,lower.s[i - 1]) < wildchars.len)) | ^ qmail-lspawn.c:119:20: warning: passing arguments to 'cdb_seek' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | r = cdb_seek(fd,lower.s,i,&dlen); | ^ qmail-lspawn.c:123:29: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | if (!stralloc_ready(&nughde,(unsigned int) dlen)) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:125:23: warning: passing arguments to 'cdb_bread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | if (cdb_bread(fd,nughde.s,nughde.len) == -1) _exit(QLX_CDB); | ^ qmail-lspawn.c:127:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | if (!stralloc_cats(&nughde,local + i - 1)) _exit(QLX_NOMEM); | ^ qmail-lspawn.c:128:15: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | if (!stralloc_0(&nughde)) _exit(QLX_NOMEM); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-lspawn.c:129:10: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | close(fd); | ^ qmail-lspawn.c:138:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | close(fd); | ^ qmail-lspawn.c:141:6: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 141 | if (pipe(pi) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:150:18: warning: passing arguments to 'prot_gid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | if (prot_gid(auto_gidn) == -1) _exit(QLX_USAGE); | ^ qmail-lspawn.c:151:18: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if (prot_uid(auto_uidp) == -1) _exit(QLX_USAGE); | ^ qmail-lspawn.c:152:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | close(pi[0]); | ^ qmail-lspawn.c:153:17: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | if (fd_move(1,pi[1]) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:154:6: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | execv(*args,args); | ^ qmail-lspawn.c:157:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 157 | close(pi[1]); | ^ qmail-lspawn.c:159:16: warning: passing arguments to 'slurpclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | if (slurpclose(pi[0],&nughde,128) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:161:14: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if (wait_pid(&gpwstat,gpwpid) != -1) | ^ qmail-lspawn.c:77:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | void nughde_get(local) | ^ qmail-lspawn.c:187:8: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | if (chdir(auto_qmail) == -1) _exit(QLX_USAGE); | ^ qmail-lspawn.c:197:8: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 197 | n = byte_chr(x,xlen,0); if (n++ == xlen) _exit(QLX_USAGE); x += n; xlen -= n; | ^ qmail-lspawn.c:199:14: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | scan_ulong(x,&u); | ^ qmail-lspawn.c:203:14: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | scan_ulong(x,&u); | ^ qmail-lspawn.c:222:15: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | if (fd_move(0,fdmess) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:223:15: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | if (fd_move(1,fdout) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:224:15: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | if (fd_copy(2,1) == -1) _exit(QLX_SYS); | ^ qmail-lspawn.c:225:16: warning: passing arguments to 'prot_gid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if (prot_gid(gid) == -1) _exit(QLX_USAGE); | ^ qmail-lspawn.c:226:16: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | if (prot_uid(uid) == -1) _exit(QLX_USAGE); | ^ qmail-lspawn.c:227:9: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 227 | if (!getuid()) _exit(QLX_ROOT); | ^ qmail-lspawn.c:229:4: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | execv(*args,args); | ^ qmail-lspawn.c:230:18: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | if (error_temp(errno)) _exit(QLX_EXECSOFT); | ^ qmail-lspawn.c:168:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | int spawn(fdmess,fdout,s,r,at) | ^ 57 warnings generated. ( ./compile trysysel.c >/dev/null 2>&1 && cat select.h2 || cat select.h1 ) > select.h rm -f trysysel.o trysysel ./compile chkspawn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from chkspawn.c:4: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ chkspawn.c:20:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | substdio_puts(subfderr,"Oops. You have set conf-spawn lower than 1.\n"); | ^ chkspawn.c:21:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | substdio_flush(subfderr); | ^ chkspawn.c:26:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | substdio_puts(subfderr,"Oops. You have set conf-spawn higher than 255.\n"); | ^ chkspawn.c:27:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | substdio_flush(subfderr); | ^ chkspawn.c:32:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | substdio_puts(subfderr,"Oops. Your system's FD_SET() has a hidden limit of "); | ^ chkspawn.c:33:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | substdio_put(subfderr,num,fmt_ulong(num,hiddenlimit)); | ^ chkspawn.c:33:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | substdio_put(subfderr,num,fmt_ulong(num,hiddenlimit)); | ^ chkspawn.c:34:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | substdio_puts(subfderr," descriptors.\n\ | ^ chkspawn.c:37:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | substdio_put(subfderr,num,fmt_ulong(num,maxnumd)); | ^ chkspawn.c:37:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | substdio_put(subfderr,num,fmt_ulong(num,maxnumd)); | ^ chkspawn.c:38:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | substdio_puts(subfderr,". So I'm going to insist that the concurrency\n\ | ^ chkspawn.c:40:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | substdio_put(subfderr,num,fmt_ulong(num,maxnumd)); | ^ chkspawn.c:40:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | substdio_put(subfderr,num,fmt_ulong(num,maxnumd)); | ^ chkspawn.c:41:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | substdio_puts(subfderr,". Right now it's "); | ^ chkspawn.c:42:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | substdio_put(subfderr,num,fmt_ulong(num,(unsigned long) auto_spawn)); | ^ chkspawn.c:42:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | substdio_put(subfderr,num,fmt_ulong(num,(unsigned long) auto_spawn)); | ^ chkspawn.c:43:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | substdio_puts(subfderr,".\n"); | ^ chkspawn.c:44:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | substdio_flush(subfderr); | ^ 19 warnings generated. ./compile auto-int.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] auto-int.c:13:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (substdio_puts(&ss1,s) == -1) _exit(111); | ^ auto-int.c:10:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | void puts(s) | ^ auto-int.c:30:13: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | scan_ulong(value,&num); | ^ auto-int.c:31:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | strnum[fmt_ulong(strnum,num)] = 0; | ^ auto-int.c:38:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | if (substdio_flush(&ss1) == -1) _exit(111); | ^ auto-int.c:16:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | int main(argc,argv) | ^ 6 warnings generated. ./load auto-int substdio.a error.a str.a fs.a ./auto-int auto_spawn `head -1 conf-spawn` > auto_spawn.c ./compile auto_spawn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./load chkspawn substdio.a error.a str.a fs.a auto_spawn.o ./chkspawn ./compile spawn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from spawn.c:11: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ spawn.c:43:27: warning: passing arguments to 'wait_nohang' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | while ((pid = wait_nohang(&wstat)) > 0) | ^ spawn.c:47:8: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | close(d[i].fdout); d[i].fdout = -1; | ^ spawn.c:58:6: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | w = write(fd,buf,n); | ^ spawn.c:61:19: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 61 | flagwriting = 0; close(fd); | ^ spawn.c:54:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | int okwrite(fd,buf,n) int fd; char *buf; int n; | ^ spawn.c:77:36: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | char ch; ch = delnum; substdio_put(&ssout,&ch,1); | ^ spawn.c:78:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_puts(&ssout,s); substdio_putflush(&ssout,"",1); | ^ spawn.c:78:44: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_puts(&ssout,s); substdio_putflush(&ssout,"",1); | ^ spawn.c:75:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | void err(s) char *s; | ^ spawn.c:102:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | if (!stralloc_copys(&d[delnum].output,"")) | ^ spawn.c:105:15: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | j = byte_rchr(recip.s,recip.len,'@'); | ^ spawn.c:108:20: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | fdmess = open_read(messid.s); | ^ spawn.c:112:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | { close(fdmess); err("Zqmail-spawn unable to fstat message. (#4.3.0)\n"); return; } | ^ spawn.c:114:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 114 | { close(fdmess); err("ZSorry, message has wrong type. (#4.3.5)\n"); return; } | ^ spawn.c:117:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | { close(fdmess); err("ZSorry, message has wrong owner. (#4.3.5)\n"); return; } | ^ spawn.c:119:6: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | if (pipe(pi) == -1) | ^ spawn.c:120:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | { close(fdmess); err("Zqmail-spawn unable to create pipe. (#4.3.0)\n"); return; } | ^ spawn.c:122:5: warning: passing arguments to 'coe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | coe(pi[0]); | ^ spawn.c:124:11: warning: passing arguments to 'spawn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | f = spawn(fdmess,pi[1],sender.s,recip.s,j); | ^ spawn.c:125:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 125 | close(fdmess); | ^ spawn.c:130:30: warning: passing arguments to 'coe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | d[delnum].fdout = pi[1]; coe(pi[1]); | ^ spawn.c:143:6: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | r = read(0,cmdbuf,sizeof(cmdbuf)); | ^ spawn.c:162:28: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | if (!stralloc_append(&messid,&ch)) flagabort = 1; | ^ spawn.c:166:28: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | if (!stralloc_append(&sender,&ch)) flagabort = 1; | ^ spawn.c:170:28: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | if (!stralloc_append(&recip,&ch)) flagabort = 1; | ^ spawn.c:190:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | if (chdir(auto_qmail) == -1) _exit(111); | ^ spawn.c:192:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | if (!stralloc_copys(&messid,"")) _exit(111); | ^ spawn.c:193:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | if (!stralloc_copys(&sender,"")) _exit(111); | ^ spawn.c:194:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | if (!stralloc_copys(&recip,"")) _exit(111); | ^ spawn.c:196:31: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | d = (struct delivery *) alloc((auto_spawn + 10) * sizeof(struct delivery)); | ^ spawn.c:199:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | substdio_fdbuf(&ssout,okwrite,1,outbuf,sizeof(outbuf)); | ^ spawn.c:202:16: warning: passing arguments to 'sig_childcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | sig_childcatch(sigchld); | ^ spawn.c:204:12: warning: passing arguments to 'initialize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | initialize(argc,argv); | ^ spawn.c:206:36: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | ch = auto_spawn; substdio_putflush(&ssout,&ch,1); | ^ spawn.c:236:7: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 236 | r = read(d[i].fdin,inbuf,128); | ^ spawn.c:241:32: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | ch = i; substdio_put(&ssout,&ch,1); | ^ spawn.c:242:11: warning: passing arguments to 'report' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | report(&ssout,d[i].wstat,d[i].output.s,d[i].output.len); | ^ spawn.c:243:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | substdio_put(&ssout,"",1); | ^ spawn.c:244:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | substdio_flush(&ssout); | ^ spawn.c:245:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 245 | close(d[i].fdin); d[i].used = 0; | ^ spawn.c:248:29: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | while (!stralloc_readyplus(&d[i].output,r)) sleep(10); /*XXX*/ | ^ spawn.c:248:47: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 248 | while (!stralloc_readyplus(&d[i].output,r)) sleep(10); /*XXX*/ | ^ spawn.c:249:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | byte_copy(d[i].output.s + d[i].output.len,r,inbuf); | ^ spawn.c:255:46: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | d[i].output.len = truncreport - str_len(truncmess) - 3; | ^ spawn.c:256:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | stralloc_cats(&d[i].output,truncmess); | ^ spawn.c:180:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | int main(argc,argv) | ^ 47 warnings generated. ./compile chkshsgr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] chkshsgr.c:7:6: warning: call to undeclared function 'getgroups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 7 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); | ^ chkshsgr.c:7:31: warning: call to undeclared function 'setgroups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 7 | if (getgroups(1,x) == 0) if (setgroups(1,x) == -1) _exit(1); | ^ 2 warnings generated. ./load chkshsgr ./chkshsgr || ( cat warn-shsgr; exit 1 ) ( ( ./compile tryshsgr.c && ./load tryshsgr && ./tryshsgr ) >/dev/null 2>&1 && echo \#define HASSHORTSETGROUPS 1 || exit 0 ) > hasshsgr.h rm -f tryshsgr.o tryshsgr ./compile prot.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] prot.c:13:7: warning: call to undeclared function 'setgroups'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 13 | if (setgroups(1,&gid) == -1) return -1; | ^ prot.c:15:10: warning: call to undeclared function 'setgid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 15 | return setgid(gid); /* _should_ be redundant, but on some systems it isn't */ | ^ prot.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int prot_gid(gid) int gid; | ^ In file included from prot.c:2: ./prot.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int prot_gid(); | ^ prot.c:20:10: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20 | return setuid(uid); | ^ prot.c:18:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | int prot_uid(uid) int uid; | ^ In file included from prot.c:2: ./prot.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int prot_uid(); | ^ 7 warnings generated. ./compile coe.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] coe.c:4:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 4 | int coe(fd) | ^ In file included from coe.c:2: ./coe.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int coe(); | ^ 2 warnings generated. ./compile cdb_hash.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdb_hash.c:3:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | uint32 cdb_hash(buf,len) | ^ In file included from cdb_hash.c:1: ./cdb.h:6:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern uint32 cdb_hash(); | ^ 2 warnings generated. ./compile cdb_unpack.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdb_unpack.c:3:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | uint32 cdb_unpack(buf) | ^ In file included from cdb_unpack.c:1: ./cdb.h:7:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern uint32 cdb_unpack(); | ^ 2 warnings generated. ./compile cdb_seek.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdb_seek.c:17:11: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | r = read(fd,buf,len); | ^ cdb_seek.c:9:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | int cdb_bread(fd,buf,len) | ^ In file included from cdb_seek.c:3: ./cdb.h:9:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern int cdb_bread(); | ^ cdb_seek.c:27:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | static int match(fd,key,len) | ^ cdb_seek.c:61:15: warning: passing arguments to 'cdb_hash' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | h = cdb_hash(key,len); | ^ cdb_seek.c:68:19: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | pos = cdb_unpack(packbuf); | ^ cdb_seek.c:69:23: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | lenhash = cdb_unpack(packbuf + 4); | ^ cdb_seek.c:77:23: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | poskd = cdb_unpack(packbuf + 4); | ^ cdb_seek.c:79:19: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | if (cdb_unpack(packbuf) == h) { | ^ cdb_seek.c:82:21: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (cdb_unpack(packbuf) == len) | ^ cdb_seek.c:87:24: warning: passing arguments to 'cdb_unpack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | *dlen = cdb_unpack(packbuf + 4); | ^ cdb_seek.c:47:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | int cdb_seek(fd,key,len,dlen) | ^ In file included from cdb_seek.c:3: ./cdb.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int cdb_seek(); | ^ 13 warnings generated. ./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o mv auto_uids.c.dist auto_uids.c ./compile auto_uids.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./load qmail-lspawn spawn.o prot.o slurpclose.o coe.o sig.a wait.a case.a cdb.a fd.a open.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_uids.o auto_spawn.o ./compile qmail-getpw.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-getpw.c:29:30: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | extension = local + str_len(local); | ^ qmail-getpw.c:33:11: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | byte_copy(username,extension - local,local); | ^ qmail-getpw.c:35:13: warning: passing arguments to 'case_lowers' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | case_lowers(username); | ^ qmail-getpw.c:49:22: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (error_temp(errno)) _exit(QLX_NFS); | ^ qmail-getpw.c:48:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 48 | else | ^ qmail-getpw.c:73:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | substdio_puts(subfdoutsmall,pw->pw_name); | ^ qmail-getpw.c:74:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:75:43: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_uid)); | ^ qmail-getpw.c:75:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_uid)); | ^ qmail-getpw.c:76:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:77:43: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_gid)); | ^ qmail-getpw.c:77:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_gid)); | ^ qmail-getpw.c:78:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:79:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | substdio_puts(subfdoutsmall,pw->pw_dir); | ^ qmail-getpw.c:80:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:81:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | substdio_puts(subfdoutsmall,dash); | ^ qmail-getpw.c:82:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:83:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | substdio_puts(subfdoutsmall,extension); | ^ qmail-getpw.c:84:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:85:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | substdio_flush(subfdoutsmall); | ^ qmail-getpw.c:58:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | int main(argc,argv) | ^ 21 warnings generated. ./auto-str auto_break "`head -1 conf-break`" > auto_break.c ./compile auto_break.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./auto-str auto_usera `head -1 conf-users` > auto_usera.c ./compile auto_usera.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./load qmail-getpw case.a substdio.a error.a str.a fs.a auto_break.o auto_usera.o ./compile qmail-remote.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-remote.c:38:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | GEN_ALLOC_readyplus(saa,stralloc,sa,len,a,i,n,x,10,saa_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ qmail-remote.c:38:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ qmail-remote.c:38:52: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | GEN_ALLOC_readyplus(saa,stralloc,sa,len,a,i,n,x,10,saa_readyplus) | ^ qmail-remote.c:62:41: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | void out(s) char *s; { if (substdio_puts(subfdoutsmall,s) == -1) _exit(0); } | ^ qmail-remote.c:62:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | void out(s) char *s; { if (substdio_puts(subfdoutsmall,s) == -1) _exit(0); } | ^ qmail-remote.c:63:31: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | void zero() { if (substdio_put(subfdoutsmall,"\0",1) == -1) _exit(0); } | ^ qmail-remote.c:64:40: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | void zerodie() { zero(); substdio_flush(subfdoutsmall); _exit(0); } | ^ qmail-remote.c:68:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | if (substdio_put(subfdoutsmall,&ch,1) == -1) _exit(0); } } | ^ qmail-remote.c:65:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | void outsafe(sa) stralloc *sa; { int i; char ch; | ^ qmail-remote.c:103:42: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | if (substdio_put(subfdoutsmall,x,ip_fmt(x,&partner)) == -1) _exit(0); | ^ qmail-remote.c:103:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | if (substdio_put(subfdoutsmall,x,ip_fmt(x,&partner)) == -1) _exit(0); | ^ qmail-remote.c:133:18: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | r = timeoutread(timeout,smtpfd,buf,len); | ^ qmail-remote.c:124:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-remote.c:146:19: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | r = timeoutwrite(timeout,smtpfd,buf,len); | ^ qmail-remote.c:137:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-remote.c:163:15: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | substdio_get(&smtpfrom,ch,1); | ^ qmail-remote.c:166:26: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | if (!stralloc_append(&smtptext,ch)) temp_nomem(); | ^ qmail-remote.c:160:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | void get(ch) | ^ qmail-remote.c:174:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | if (!stralloc_copys(&smtptext,"")) temp_nomem(); | ^ qmail-remote.c:176:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 176 | get(&ch); code = ch - '0'; | ^~~ qmail-remote.c:177:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 177 | get(&ch); code = code * 10 + (ch - '0'); | ^~~ qmail-remote.c:178:7: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 178 | get(&ch); code = code * 10 + (ch - '0'); | ^~~ qmail-remote.c:180:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 180 | get(&ch); | ^~~ qmail-remote.c:182:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 182 | while (ch != '\n') get(&ch); | ^~~ qmail-remote.c:183:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 183 | get(&ch); | ^~~ qmail-remote.c:184:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 184 | get(&ch); | ^~~ qmail-remote.c:185:9: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 185 | get(&ch); | ^~~ qmail-remote.c:187:26: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 187 | while (ch != '\n') get(&ch); | ^~~ qmail-remote.c:209:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | substdio_puts(&smtpto, "EHLO "); | ^ qmail-remote.c:210:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | substdio_put(&smtpto, helohost.s, helohost.len); | ^ qmail-remote.c:211:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | substdio_puts(&smtpto, "\r\n"); | ^ qmail-remote.c:212:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | substdio_flush(&smtpto); | ^ qmail-remote.c:233:30: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | if (!stralloc_catb(sa, s, p - s) || !stralloc_0(sa)) temp_nomem(); | ^ qmail-remote.c:233:49: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | if (!stralloc_catb(sa, s, p - s) || !stralloc_0(sa)) temp_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-remote.c:258:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | if (substdio_put(subfdoutsmall,smtptext.s,smtptext.len) == -1) _exit(0); | ^ qmail-remote.c:278:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | substdio_putsflush(&smtpto,"QUIT\r\n"); | ^ qmail-remote.c:263:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | void quit(prepend,append) | ^ qmail-remote.c:318:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | r = substdio_get(&ssin,&ch,1); | ^ qmail-remote.c:322:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | substdio_put(&smtpto,".",1); | ^ qmail-remote.c:324:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | substdio_put(&smtpto,&ch,1); | ^ qmail-remote.c:325:23: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 325 | r = substdio_get(&ssin,&ch,1); | ^ qmail-remote.c:329:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | substdio_put(&smtpto,"\r\n",2); | ^ qmail-remote.c:333:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | substdio_put(&smtpto,".\r\n",3); | ^ qmail-remote.c:334:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | substdio_flush(&smtpto); | ^ qmail-remote.c:349:18: warning: passing arguments to 'case_diffb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | if (!case_diffb(partner_fqdn, len, s) && !partner_fqdn[len]) return 1; | ^ qmail-remote.c:352:48: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | const char *domain = partner_fqdn + str_chr(partner_fqdn, '.'); | ^ qmail-remote.c:353:20: warning: passing arguments to 'case_diffb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | if (!case_diffb(domain, --len, ++s) && !domain[len]) return 1; | ^ qmail-remote.c:372:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 372 | if (!stralloc_copys(&tmp, "control/tlshosts/") | ^ qmail-remote.c:373:52: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | || !stralloc_catb(&tmp, partner_fqdn, str_len(partner_fqdn)) | ^ qmail-remote.c:373:24: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | || !stralloc_catb(&tmp, partner_fqdn, str_len(partner_fqdn)) | ^ qmail-remote.c:374:24: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | || !stralloc_catb(&tmp, ".pem", 5)) temp_nomem(); | ^ qmail-remote.c:378:26: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | if (!stralloc_copys(&tmp, "control/notlshosts/") | ^ qmail-remote.c:379:54: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | || !stralloc_catb(&tmp, partner_fqdn, str_len(partner_fqdn)+1)) | ^ qmail-remote.c:379:26: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | || !stralloc_catb(&tmp, partner_fqdn, str_len(partner_fqdn)+1)) | ^ qmail-remote.c:383:20: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 383 | alloc_free(tmp.s); | ^ qmail-remote.c:386:17: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | alloc_free(tmp.s); | ^ qmail-remote.c:394:30: warning: passing arguments to 'case_diffs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 394 | for ( ; len && case_diffs(sa->s, "STARTTLS"); ++sa, --len) ; | ^ qmail-remote.c:441:33: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 441 | if (!smtps) substdio_putsflush(&smtpto, "STARTTLS\r\n"); | ^ qmail-remote.c:444:23: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | if (control_readfile(&saciphers, "control/tlsclientciphers", 0) == -1) | ^ qmail-remote.c:453:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | alloc_free(saciphers.s); | ^ qmail-remote.c:483:15: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | alloc_free(servercert); | ^ qmail-remote.c:500:29: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 500 | if (match_partner(gn->d.ia5->data, gn->d.ia5->length)){ | ^~~~~~~~~~~~~~~ qmail-remote.c:347:31: note: passing argument to parameter 's' here 347 | int match_partner(const char *s, int len) | ^ qmail-remote.c:516:47: warning: assigning to 'char *' from 'unsigned char *const' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 516 | if (s) { peer.len = s->length; peer.s = s->data; } | ^ ~~~~~~~ qmail-remote.c:586:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | substdio_puts(&smtpto,"HELO "); | ^ qmail-remote.c:587:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 587 | substdio_put(&smtpto,helohost.s,helohost.len); | ^ qmail-remote.c:588:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 588 | substdio_puts(&smtpto,"\r\n"); | ^ qmail-remote.c:589:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | substdio_flush(&smtpto); | ^ qmail-remote.c:596:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | substdio_puts(&smtpto,"MAIL FROM:<"); | ^ qmail-remote.c:597:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 597 | substdio_put(&smtpto,sender.s,sender.len); | ^ qmail-remote.c:598:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 598 | substdio_puts(&smtpto,">\r\n"); | ^ qmail-remote.c:599:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | substdio_flush(&smtpto); | ^ qmail-remote.c:606:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | substdio_puts(&smtpto,"RCPT TO:<"); | ^ qmail-remote.c:607:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 607 | substdio_put(&smtpto,reciplist.sa[i].s,reciplist.sa[i].len); | ^ qmail-remote.c:608:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 608 | substdio_puts(&smtpto,">\r\n"); | ^ qmail-remote.c:609:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 609 | substdio_flush(&smtpto); | ^ qmail-remote.c:626:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 626 | substdio_putsflush(&smtpto,"DATA\r\n"); | ^ qmail-remote.c:652:15: warning: passing arguments to 'str_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | j = str_rchr(s,'@'); | ^ qmail-remote.c:654:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | if (!stralloc_copys(saout,s)) temp_nomem(); | ^ qmail-remote.c:657:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 657 | if (!stralloc_copys(&canonbox,s)) temp_nomem(); | ^ qmail-remote.c:659:13: warning: passing arguments to 'quote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 659 | if (!quote(saout,&canonbox)) temp_nomem(); | ^ qmail-remote.c:660:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | if (!stralloc_cats(saout,"@")) temp_nomem(); | ^ qmail-remote.c:662:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 662 | if (!stralloc_copys(&canonhost,s + j + 1)) temp_nomem(); | ^ qmail-remote.c:664:21: warning: passing arguments to 'dns_cname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | switch(dns_cname(&canonhost)) { | ^ qmail-remote.c:671:20: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | if (!stralloc_cat(saout,&canonhost)) temp_nomem(); | ^ qmail-remote.c:642:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 642 | void addrmangle(saout,s,flagalias,flagcname) | ^ qmail-remote.c:677:22: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | if (control_readint(&timeout,"control/timeoutremote") == -1) temp_control(); | ^ qmail-remote.c:678:22: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 678 | if (control_readint(&timeoutconnect,"control/timeoutconnect") == -1) | ^ qmail-remote.c:680:20: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | if (control_rldef(&helohost,"control/helohost",1,(char *) 0) != 1) | ^ qmail-remote.c:682:26: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | switch(control_readfile(&routes,"control/smtproutes",0)) { | ^ qmail-remote.c:686:25: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 686 | if (!constmap_init(&maproutes,"",0,1)) temp_nomem(); break; | ^ qmail-remote.c:688:25: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | if (!constmap_init(&maproutes,routes.s,routes.len,1)) temp_nomem(); break; | ^ qmail-remote.c:707:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 707 | if (chdir(auto_qmail) == -1) temp_chdir(); | ^ qmail-remote.c:711:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | if (!stralloc_copys(&host,argv[1])) temp_nomem(); | ^ qmail-remote.c:716:31: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ qmail-remote.c:716:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 716 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-remote.c:716:21: note: place parentheses around the assignment to silence this warning 716 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ | ( ) qmail-remote.c:716:21: note: use '==' to turn this assignment into an equality comparison 716 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ | == qmail-remote.c:721:16: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | i = str_chr(relayhost,':'); | ^ qmail-remote.c:723:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 723 | scan_ulong(relayhost + i + 1,&port); | ^ qmail-remote.c:726:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | if (!stralloc_copys(&host,relayhost)) temp_nomem(); | ^ qmail-remote.c:747:21: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 747 | random = now() + (getpid() << 16); | ^ qmail-remote.c:748:29: warning: passing arguments to 'dns_ip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&host,random)) { | ^ qmail-remote.c:748:51: warning: passing arguments to 'dns_mxip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&host,random)) { | ^ qmail-remote.c:760:16: warning: passing arguments to 'ipme_is' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 760 | if (ipme_is(&ip.ix[i].ip)) | ^ qmail-remote.c:775:14: warning: passing arguments to 'tcpto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | if (tcpto(&ip.ix[i].ip)) continue; | ^ qmail-remote.c:780:20: warning: passing arguments to 'timeoutconn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | if (timeoutconn(smtpfd,&ip.ix[i].ip,(unsigned int) port,timeoutconnect) == 0) { | ^ qmail-remote.c:781:16: warning: passing arguments to 'tcpto_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | tcpto_err(&ip.ix[i].ip,0); | ^ qmail-remote.c:788:14: warning: passing arguments to 'tcpto_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | tcpto_err(&ip.ix[i].ip,errno == error_timeout); | ^ qmail-remote.c:789:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 789 | close(smtpfd); | ^ qmail-remote.c:692:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 692 | int main(argc,argv) | ^ 108 warnings generated. ./compile control.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] control.c:16:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | static void striptrailingwhitespace(sa) | ^ control.c:33:22: warning: passing arguments to 'control_readline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | r = control_readline(&me,"control/me"); | ^ control.c:45:22: warning: passing arguments to 'control_readline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | r = control_readline(sa,fn); | ^ control.c:47:44: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | if (flagme) if (meok) return stralloc_copy(sa,&me) ? 1 : -1; | ^ control.c:48:32: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | if (def) return stralloc_copys(sa,def) ? 1 : -1; | ^ control.c:38:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | int control_rldef(sa,fn,flagme,def) | ^ In file included from control.c:7: ./control.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int control_rldef(); | ^ control.c:60:16: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | fd = open_read(fn); | ^ control.c:63:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | substdio_fdbuf(&ss,read,fd,inbuf,sizeof(inbuf)); | ^ control.c:65:11: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | if (getln(&ss,sa,&match,'\n') == -1) { close(fd); return -1; } | ^ control.c:65:41: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | if (getln(&ss,sa,&match,'\n') == -1) { close(fd); return -1; } | ^ control.c:68:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | close(fd); | ^ control.c:52:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | int control_readline(sa,fn) | ^ In file included from control.c:7: ./control.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int control_readline(); | ^ control.c:82:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (!stralloc_0(&line)) return -1; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ control.c:83:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (!scan_ulong(line.s,&u)) return 0; | ^ control.c:72:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | int control_readint(i,fn) | ^ In file included from control.c:7: ./control.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern int control_readint(); | ^ control.c:97:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (!stralloc_copys(sa,"")) return -1; | ^ control.c:99:16: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | fd = open_read(fn); | ^ control.c:106:26: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (!stralloc_copy(sa,&me)) return -1; | ^ control.c:107:13: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | if (!stralloc_0(sa)) return -1; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ control.c:115:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | substdio_fdbuf(&ss,read,fd,inbuf,sizeof(inbuf)); | ^ control.c:119:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | if (getln(&ss,&line,&match,'\n') == -1) break; | ^ control.c:120:31: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | if (!match && !line.len) { close(fd); return 1; } | ^ control.c:122:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | if (!stralloc_0(&line)) break; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ control.c:125:25: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | if (!stralloc_cat(sa,&line)) break; | ^ control.c:126:18: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 126 | if (!match) { close(fd); return 1; } | ^ control.c:128:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | close(fd); | ^ control.c:88:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | int control_readfile(sa,fn,flagme) | ^ In file included from control.c:7: ./control.h:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern int control_readfile(); | ^ 31 warnings generated. ./compile constmap.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] constmap.c:5:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | static constmap_hash hash(s,len) | ^ constmap.c:33:24: warning: passing arguments to 'case_diffb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | if (!case_diffb(cm->input[pos],len,s)) | ^ constmap.c:21:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | char *constmap(cm,s,len) | ^ In file included from constmap.c:1: ./constmap.h:18:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern char *constmap(); | ^ constmap.c:59:28: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | cm->first = (int *) alloc(sizeof(int) * h); | ^ constmap.c:61:32: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | cm->input = (char **) alloc(sizeof(char *) * cm->num); | ^ constmap.c:63:35: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | cm->inputlen = (int *) alloc(sizeof(int) * cm->num); | ^ constmap.c:65:43: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | cm->hash = (constmap_hash *) alloc(sizeof(constmap_hash) * cm->num); | ^ constmap.c:67:28: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | cm->next = (int *) alloc(sizeof(int) * cm->num); | ^ constmap.c:95:14: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | alloc_free(cm->hash); | ^ constmap.c:97:19: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | alloc_free(cm->inputlen); | ^ constmap.c:99:17: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | alloc_free(cm->input); | ^ constmap.c:101:15: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | alloc_free(cm->first); | ^ constmap.c:40:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | int constmap_init(cm,s,len,flagcolon) | ^ In file included from constmap.c:1: ./constmap.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int constmap_init(); | ^ constmap.c:109:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | alloc_free(cm->next); | ^ constmap.c:110:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | alloc_free(cm->hash); | ^ constmap.c:111:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | alloc_free(cm->inputlen); | ^ constmap.c:112:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | alloc_free(cm->input); | ^ constmap.c:113:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | alloc_free(cm->first); | ^ constmap.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | void constmap_free(cm) | ^ In file included from constmap.c:1: ./constmap.h:17:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern void constmap_free(); | ^ 22 warnings generated. ./compile timeoutread.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from timeoutread.c:2: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ timeoutread.c:18:38: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | if (FD_ISSET(fd,&rfds)) return read(fd,buf,len); | ^ timeoutread.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int timeoutread(t,fd,buf,len) int t; int fd; char *buf; int len; | ^ In file included from timeoutread.c:1: ./timeoutread.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int timeoutread(); | ^ 4 warnings generated. ./compile timeoutwrite.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from timeoutwrite.c:2: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ timeoutwrite.c:18:39: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | if (FD_ISSET(fd,&wfds)) return write(fd,buf,len); | ^ timeoutwrite.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int timeoutwrite(t,fd,buf,len) int t; int fd; char *buf; int len; | ^ In file included from timeoutwrite.c:1: ./timeoutwrite.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int timeoutwrite(); | ^ 4 warnings generated. ./compile timeoutconn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from timeoutconn.c:6: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ timeoutconn.c:25:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | byte_zero(&sin,sizeof(sin)); | ^ timeoutconn.c:26:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | byte_copy(&sin.sin_addr,4,ip); | ^ timeoutconn.c:31:16: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | if (ndelay_on(s) == -1) return -1; | ^ timeoutconn.c:36:15: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | ndelay_off(s); | ^ timeoutconn.c:49:48: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 49 | if (getpeername(s,(struct sockaddr *) &sin,&dummy) == -1) { | ^~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ timeoutconn.c:50:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | read(s,&ch,1); | ^ timeoutconn.c:53:15: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | ndelay_off(s); | ^ timeoutconn.c:13:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | int timeoutconn(s,ip,port,timeout) | ^ In file included from timeoutconn.c:11: ./timeoutconn.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int timeoutconn(); | ^ 10 warnings generated. ./compile tcpto.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] tcpto.c:21:21: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | fdlock = open_write("queue/lock/tcpto"); | ^ tcpto.c:23:16: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | fd = open_read("queue/lock/tcpto"); | ^ tcpto.c:24:18: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 24 | if (fd == -1) { close(fdlock); return 0; } | ^ tcpto.c:25:13: warning: passing arguments to 'lock_ex' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | if (lock_ex(fdlock) == -1) { close(fdlock); close(fd); return 0; } | ^ tcpto.c:25:31: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | if (lock_ex(fdlock) == -1) { close(fdlock); close(fd); return 0; } | ^ tcpto.c:26:10: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | r = read(fd,tcpto_buf,sizeof(tcpto_buf)); | ^ tcpto.c:27:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 27 | close(fd); | ^ tcpto.c:45:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | close(fdlock); | ^ tcpto.c:50:8: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | if (byte_equal(ip->d,4,record)) | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ tcpto.c:60:35: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | if (now() - when < ((60 + (getpid() & 31)) << 6)) | ^ tcpto.c:34:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | int tcpto(ip) struct ip_address *ip; | ^ In file included from tcpto.c:1: ./tcpto.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int tcpto(); | ^ tcpto.c:90:8: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | if (byte_equal(ip->d,4,record)) | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ tcpto.c:102:52: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 102 | if (record[4] && (when < 120 + lastwhen)) { close(fdlock); return; } | ^ tcpto.c:110:18: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (seek_set(fdlock,i << 4) == 0) | ^ tcpto.c:111:17: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (write(fdlock,record,16) < 16) | ^ tcpto.c:113:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | close(fdlock); | ^ tcpto.c:119:18: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | if (!flagerr) { close(fdlock); return; } | ^ tcpto.c:152:13: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | byte_copy(record,4,ip->d); | ^ tcpto.c:159:16: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | if (seek_set(fdlock,i << 4) == 0) | ^ tcpto.c:160:15: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | if (write(fdlock,record,16) < 16) | ^ tcpto.c:164:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 164 | close(fdlock); | ^ tcpto.c:70:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | void tcpto_err(ip,flagerr) struct ip_address *ip; int flagerr; | ^ In file included from tcpto.c:1: ./tcpto.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void tcpto_err(); | ^ 24 warnings generated. ./compile dns.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dns.c:8:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 8 | extern int res_query(); | ^ /usr/include/resolv.h:296:20: note: expanded from macro 'res_query' 296 | #define res_query __res_query | ^ /usr/include/resolv.h:313:6: note: conflicting prototype is here 313 | int res_query(const char *, int, int, u_char *, int); | ^ /usr/include/resolv.h:296:20: note: expanded from macro 'res_query' 296 | #define res_query __res_query | ^ dns.c:9:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 9 | extern int res_search(); | ^ /usr/include/resolv.h:298:21: note: expanded from macro 'res_search' 298 | #define res_search __res_search | ^ /usr/include/resolv.h:316:6: note: conflicting prototype is here 316 | int res_search(const char *, int, int, u_char *, int); | ^ /usr/include/resolv.h:298:21: note: expanded from macro 'res_search' 298 | #define res_search __res_search | ^ dns.c:19:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | static unsigned short getshort(c) unsigned char *c; | ^ dns.c:46:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if (!stralloc_copy(&glue,domain)) return DNS_MEM; | ^ dns.c:47:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | if (!stralloc_0(&glue)) return DNS_MEM; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dns.c:49:44: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) | ^ dns.c:49:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 49 | if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ dns.c:49:20: note: place parentheses around the assignment to silence this warning 49 | if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) | ^ | ( ) dns.c:49:20: note: use '==' to turn this assignment into an equality comparison 49 | if (response.buf = (unsigned char *)alloc(PACKETSZ+1)) | ^ | == dns.c:51:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 51 | else return DNS_MEM; | ^ dns.c:53:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | responselen = lookup(glue.s,C_IN,type,response.buf,responsebuflen); | ^ dns.c:58:17: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (alloc_re(&response.buf, responsebuflen, 65536)) | ^ dns.c:60:5: warning: add explicit braces to avoid dangling else [-Wdangling-else] 60 | else return DNS_MEM; | ^ dns.c:63:25: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | responselen = lookup(glue.s,C_IN,type,response.buf,responsebuflen); | ^ dns.c:38:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | static int resolve(domain,type) | ^ dns.c:88:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | static int findname(wanttype) | ^ dns.c:122:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | static int findip(wanttype) | ^ dns.c:160:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | static int findmx(wanttype) | ^ dns.c:197:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | void dns_init(flagsearch) | ^ In file included from dns.c:16: ./dns.h:8:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | void dns_init(); | ^ dns.c:225:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if (!stralloc_copys(sa,name)) return DNS_MEM; | ^ dns.c:204:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | int dns_cname(sa) | ^ In file included from dns.c:16: ./dns.h:9:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | int dns_cname(); | ^ dns.c:244:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 244 | i = fmt_ulong(s,(unsigned long) ip->d[3]); len += i; if (s) s += i; | ^ dns.c:245:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ dns.c:246:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | i = fmt_ulong(s,(unsigned long) ip->d[2]); len += i; if (s) s += i; | ^ dns.c:247:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ dns.c:248:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | i = fmt_ulong(s,(unsigned long) ip->d[1]); len += i; if (s) s += i; | ^ dns.c:249:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ dns.c:250:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | i = fmt_ulong(s,(unsigned long) ip->d[0]); len += i; if (s) s += i; | ^ dns.c:251:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | i = fmt_str(s,".in-addr.arpa."); len += i; if (s) s += i; | ^ dns.c:237:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | static int iaafmt(s,ip) | ^ dns.c:261:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | if (!stralloc_ready(sa,iaafmt((char *) 0,ip))) return DNS_MEM; | ^ dns.c:274:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | if (!stralloc_copys(sa,name)) return DNS_MEM; | ^ dns.c:255:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | int dns_ptr(sa,ip) | ^ In file included from dns.c:16: ./dns.h:12:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | int dns_ptr(); | ^ dns.c:289:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | if (!stralloc_copy(&glue,sa)) return DNS_MEM; | ^ dns.c:290:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | if (!stralloc_0(&glue)) return DNS_MEM; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dns.c:295:23: warning: passing arguments to 'ip_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:295:65: warning: passing arguments to 'ip_scanbracket' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:297:25: warning: passing arguments to 'ipalloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | if (!ipalloc_append(ia,&ix)) return DNS_MEM; | ^ dns.c:317:25: warning: passing arguments to 'ipalloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | if (!ipalloc_append(ia,&ix)) return DNS_MEM; | ^ dns.c:281:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | static int dns_ipplus(ia,sa,pref) | ^ dns.c:330:24: warning: passing arguments to 'ipalloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 330 | if (!ipalloc_readyplus(ia,0)) return DNS_MEM; | ^ dns.c:326:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | int dns_ip(ia,sa) | ^ In file included from dns.c:16: ./dns.h:11:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | int dns_ip(); | ^ dns.c:348:24: warning: passing arguments to 'ipalloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | if (!ipalloc_readyplus(ia,0)) return DNS_MEM; | ^ dns.c:351:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | if (!stralloc_copy(&glue,sa)) return DNS_MEM; | ^ dns.c:352:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | if (!stralloc_0(&glue)) return DNS_MEM; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dns.c:357:23: warning: passing arguments to 'ip_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:357:65: warning: passing arguments to 'ip_scanbracket' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:359:25: warning: passing arguments to 'ipalloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 359 | if (!ipalloc_append(ia,&ix)) return DNS_MEM; | ^ dns.c:371:26: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 371 | mx = (struct mx *) alloc(numanswers * sizeof(struct mx)); | ^ dns.c:377:35: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | if (r == DNS_SOFT) { alloc_free(mx); return DNS_SOFT; } | ^ dns.c:382:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | if (!stralloc_copys(&mx[nummx].sa,name)) | ^ dns.c:384:36: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | while (nummx > 0) alloc_free(mx[--nummx].sa.s); | ^ dns.c:385:18: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | alloc_free(mx); return DNS_MEM; | ^ dns.c:420:14: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | alloc_free(mx[i].sa.s); | ^ dns.c:424:12: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | alloc_free(mx); | ^ dns.c:335:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | int dns_mxip(ia,sa,random) | ^ In file included from dns.c:16: ./dns.h:10:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | int dns_mxip(); | ^ 59 warnings generated. ./compile ip.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ip.c:13:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | i = fmt_ulong(s,(unsigned long) ip->d[0]); len += i; if (s) s += i; | ^ ip.c:14:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ ip.c:15:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | i = fmt_ulong(s,(unsigned long) ip->d[1]); len += i; if (s) s += i; | ^ ip.c:16:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ ip.c:17:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | i = fmt_ulong(s,(unsigned long) ip->d[2]); len += i; if (s) s += i; | ^ ip.c:18:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ ip.c:19:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | i = fmt_ulong(s,(unsigned long) ip->d[3]); len += i; if (s) s += i; | ^ ip.c:5:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | unsigned int ip_fmt(s,ip) | ^ In file included from ip.c:3: ./ip.h:6:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern unsigned int ip_fmt(); | ^ ip.c:32:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | i = scan_ulong(s,&u); if (!i) return 0; ip->d[0] = u; s += i; len += i; | ^ ip.c:34:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | i = scan_ulong(s,&u); if (!i) return 0; ip->d[1] = u; s += i; len += i; | ^ ip.c:36:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | i = scan_ulong(s,&u); if (!i) return 0; ip->d[2] = u; s += i; len += i; | ^ ip.c:38:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | i = scan_ulong(s,&u); if (!i) return 0; ip->d[3] = u; s += i; len += i; | ^ ip.c:23:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | unsigned int ip_scan(s,ip) | ^ In file included from ip.c:3: ./ip.h:8:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 8 | extern unsigned int ip_scan(); | ^ ip.c:42:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | unsigned int ip_scanbracket(s,ip) | ^ In file included from ip.c:3: ./ip.h:9:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern unsigned int ip_scanbracket(); | ^ 17 warnings generated. ./compile ipalloc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ipalloc.c:6:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | GEN_ALLOC_readyplus(ipalloc,struct ip_mx,ix,len,a,i,n,x,10,ipalloc_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ ipalloc.c:6:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ ipalloc.c:6:60: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | GEN_ALLOC_readyplus(ipalloc,struct ip_mx,ix,len,a,i,n,x,10,ipalloc_readyplus) | ^ In file included from ipalloc.c:4: ./ipalloc.h:19:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 19 | extern int ipalloc_readyplus(); | ^ ipalloc.c:7:75: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | GEN_ALLOC_append(ipalloc,struct ip_mx,ix,len,a,i,n,x,10,ipalloc_readyplus,ipalloc_append) | ^ In file included from ipalloc.c:4: ./ipalloc.h:20:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern int ipalloc_append(); | ^ 6 warnings generated. ( ./compile trysalen.c >/dev/null 2>&1 && echo \#define HASSALEN 1 || exit 0 ) > hassalen.h rm -f trysalen.o ./compile ipme.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ipme.c:27:9: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (byte_equal(&ipme.ix[i].ip,4,ip)) | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ ipme.c:21:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | int ipme_is(ip) | ^ In file included from ipme.c:16: ./ipme.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int ipme_is(); | ^ ipme.c:45:25: warning: passing arguments to 'ipalloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | if (!ipalloc_readyplus(&ipme,0)) return 0; | ^ ipme.c:52:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | byte_copy(&ix.ip,4,"\0\0\0\0"); | ^ ipme.c:53:22: warning: passing arguments to 'ipalloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | if (!ipalloc_append(&ipme,&ix)) { return 0; } | ^ ipme.c:58:24: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (!stralloc_ready(&buf,len)) { close(s); return 0; } | ^ ipme.c:58:38: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | if (!stralloc_ready(&buf,len)) { close(s); return 0; } | ^ ipme.c:67:25: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | if (len > 200000) { close(s); return -1; } | ^ ipme.c:79:16: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | byte_copy(&ix.ip,4,&sin->sin_addr); | ^ ipme.c:82:30: warning: passing arguments to 'ipalloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (!ipalloc_append(&ipme,&ix)) { close(s); return 0; } | ^ ipme.c:82:45: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 82 | if (!ipalloc_append(&ipme,&ix)) { close(s); return 0; } | ^ ipme.c:97:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 97 | close(s); | ^ 13 warnings generated. ./compile ndelay.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ndelay.c:9:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | int ndelay_on(fd) | ^ In file included from ndelay.c:3: ./ndelay.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int ndelay_on(); | ^ 2 warnings generated. ./compile ndelay_off.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ndelay_off.c:9:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | int ndelay_off(fd) | ^ In file included from ndelay_off.c:3: ./ndelay.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int ndelay_off(); | ^ 2 warnings generated. ./makelib ndelay.a ndelay.o ndelay_off.o ( ( ./compile tryrsolv.c && ./load tryrsolv dns.o ipalloc.o ip.o stralloc.a alloc.a error.a fs.a str.a -lresolv `cat socket.lib` ) >/dev/null 2>&1 && echo -lresolv || exit 0 ) > dns.lib rm -f tryrsolv.o tryrsolv ./compile tls.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] tls.c:25:60: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | return (errno == error_timeout) ? "timed out" : error_str(errno); | ^ 1 warning generated. ./compile ssl_timeoutio.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from ssl_timeoutio.c:2: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ ssl_timeoutio.c:18:28: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | const int r = buf ? fun(ssl, buf, len) : fun(ssl); | ^ ssl_timeoutio.c:18:49: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | const int r = buf ? fun(ssl, buf, len) : fun(ssl); | ^ ssl_timeoutio.c:49:16: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (ndelay_on(rfd) == -1 || ndelay_on(wfd) == -1) return -1; | ^ ssl_timeoutio.c:49:40: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (ndelay_on(rfd) == -1 || ndelay_on(wfd) == -1) return -1; | ^ ssl_timeoutio.c:52:27: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); } | ^ ssl_timeoutio.c:52:44: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); } | ^ ssl_timeoutio.c:63:16: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (ndelay_on(rfd) == -1 || ndelay_on(wfd) == -1) return -1; | ^ ssl_timeoutio.c:63:40: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (ndelay_on(rfd) == -1 || ndelay_on(wfd) == -1) return -1; | ^ ssl_timeoutio.c:66:27: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); } | ^ ssl_timeoutio.c:66:44: warning: passing arguments to 'ndelay_off' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (r <= 0) { ndelay_off(rfd); ndelay_off(wfd); } | ^ 11 warnings generated. ./load qmail-remote control.o constmap.o timeoutread.o timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o tls.o ssl_timeoutio.o -L/usr/lib -lssl -lcrypto ipalloc.o ipme.o quote.o ndelay.a case.a sig.a open.a lock.a seek.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat dns.lib` `cat socket.lib` ./compile qmail-rspawn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-rspawn.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void initialize(argc,argv) | ^ qmail-rspawn.c:30:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | { substdio_puts(ss,"Zqmail-remote crashed.\n"); return; } | ^ qmail-rspawn.c:34:27: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | case 111: substdio_puts(ss,"ZUnable to run qmail-remote.\n"); return; | ^ qmail-rspawn.c:35:26: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | default: substdio_puts(ss,"DUnable to run qmail-remote.\n"); return; | ^ qmail-rspawn.c:38:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | { substdio_puts(ss,"Zqmail-remote produced no output.\n"); return; } | ^ qmail-rspawn.c:60:24: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | case 1: substdio_put(ss,"K",1); break; | ^ qmail-rspawn.c:61:24: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | case 0: substdio_put(ss,"Z",1); break; | ^ qmail-rspawn.c:62:25: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | case -1: substdio_put(ss,"D",1); break; | ^ qmail-rspawn.c:68:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | substdio_puts(ss,s + 1); | ^ qmail-rspawn.c:74:27: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | substdio_puts(ss,s + k + 1); | ^ qmail-rspawn.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void report(ss,wstat,s,len) | ^ qmail-rspawn.c:95:15: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (fd_move(0,fdmess) == -1) _exit(111); | ^ qmail-rspawn.c:96:15: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | if (fd_move(1,fdout) == -1) _exit(111); | ^ qmail-rspawn.c:97:15: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (fd_copy(2,1) == -1) _exit(111); | ^ qmail-rspawn.c:98:4: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 98 | execvp(*args,args); | ^ qmail-rspawn.c:99:18: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | if (error_temp(errno)) _exit(111); | ^ qmail-rspawn.c:80:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | int spawn(fdmess,fdout,s,r,at) | ^ 17 warnings generated. ./compile tcpto_clean.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] tcpto_clean.c:14:17: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | fd = open_write("../lock/tcpto"); | ^ tcpto_clean.c:16:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | substdio_fdbuf(&ss,write,fd,tcpto_cleanbuf,sizeof(tcpto_cleanbuf)); | ^ tcpto_clean.c:17:57: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | for (i = 0;i < sizeof(tcpto_cleanbuf);++i) substdio_put(&ss,"",1); | ^ tcpto_clean.c:18:16: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | substdio_flush(&ss); /* if it fails, bummer */ | ^ tcpto_clean.c:19:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 19 | close(fd); | ^ 5 warnings generated. ./load qmail-rspawn spawn.o tcpto_clean.o now.o coe.o sig.a open.a seek.a lock.a wait.a fd.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o auto_uids.o auto_spawn.o ( ./compile trydrent.c >/dev/null 2>&1 && cat direntry.h2 || cat direntry.h1 ) > direntry.h rm -f trydrent.o ./compile qmail-clean.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-clean.c:34:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 34 | while (d = readdir(dir)) | ~~^~~~~~~~~~~~~~ qmail-clean.c:34:11: note: place parentheses around the assignment to silence this warning 34 | while (d = readdir(dir)) | ^ | ( ) qmail-clean.c:34:11: note: use '==' to turn this assignment into an equality comparison 34 | while (d = readdir(dir)) | ^ | == qmail-clean.c:36:8: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | if (str_equal(d->d_name,".")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-clean.c:37:8: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | if (str_equal(d->d_name,"..")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-clean.c:38:23: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | if (!stralloc_copys(&line,"pid/")) continue; | ^ qmail-clean.c:39:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | if (!stralloc_cats(&line,d->d_name)) continue; | ^ qmail-clean.c:40:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (!stralloc_0(&line)) continue; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-clean.c:43:4: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | unlink(line.s); | ^ qmail-clean.c:50:49: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | void respond(s) char *s; { if (substdio_putflush(subfdoutsmall,s,1) == -1) _exit(100); } | ^ qmail-clean.c:50:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | void respond(s) char *s; { if (substdio_putflush(subfdoutsmall,s,1) == -1) _exit(100); } | ^ qmail-clean.c:59:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | if (chdir(auto_qmail) == -1) _exit(111); | ^ qmail-clean.c:64:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | if (!stralloc_ready(&line,200)) _exit(111); | ^ qmail-clean.c:71:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (getln(subfdinsmall,&line,&match,'\0') == -1) break; | ^ qmail-clean.c:79:19: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | if (!scan_ulong(line.s + 5,&id)) { respond("x"); continue; } | ^ qmail-clean.c:80:8: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | if (byte_equal(line.s,5,"foop/")) | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ qmail-clean.c:84:6: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | U("intd/",0) | ^ qmail-clean.c:82:30: note: expanded from macro 'U' 82 | #define U(prefix,flag) fmtqfn(fnbuf,prefix,id,flag); \ | ^ qmail-clean.c:84:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] qmail-clean.c:83:5: note: expanded from macro 'U' 83 | if (unlink(fnbuf) == -1) if (errno != error_noent) { respond("!"); continue; } | ^ qmail-clean.c:85:6: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | U("mess/",1) | ^ qmail-clean.c:82:30: note: expanded from macro 'U' 82 | #define U(prefix,flag) fmtqfn(fnbuf,prefix,id,flag); \ | ^ qmail-clean.c:88:13: warning: passing arguments to 'byte_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | else if (byte_equal(line.s,4,"todo/")) | ^ ./byte.h:11:38: note: expanded from macro 'byte_equal' 11 | #define byte_equal(s,n,t) (!byte_diff((s),(n),(t))) | ^ qmail-clean.c:90:6: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | U("intd/",0) | ^ qmail-clean.c:82:30: note: expanded from macro 'U' 82 | #define U(prefix,flag) fmtqfn(fnbuf,prefix,id,flag); \ | ^ qmail-clean.c:90:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] qmail-clean.c:83:5: note: expanded from macro 'U' 83 | if (unlink(fnbuf) == -1) if (errno != error_noent) { respond("!"); continue; } | ^ qmail-clean.c:91:6: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | U("todo/",0) | ^ qmail-clean.c:82:30: note: expanded from macro 'U' 82 | #define U(prefix,flag) fmtqfn(fnbuf,prefix,id,flag); \ | ^ 21 warnings generated. ./compile fmtqfn.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fmtqfn.c:15:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | i = fmt_str(s,dirslash); len += i; if (s) s += i; | ^ fmtqfn.c:18:17: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | i = fmt_ulong(s,id % auto_split); len += i; if (s) s += i; | ^ fmtqfn.c:19:15: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | i = fmt_str(s,"/"); len += i; if (s) s += i; | ^ fmtqfn.c:21:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | i = fmt_ulong(s,id); len += i; if (s) s += i; | ^ fmtqfn.c:5:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | unsigned int fmtqfn(s,dirslash,id,flagsplit) | ^ In file included from fmtqfn.c:1: ./fmtqfn.h:4:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern unsigned int fmtqfn(); | ^ 6 warnings generated. ./auto-int auto_split `head -1 conf-split` > auto_split.c ./compile auto_split.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./load qmail-clean fmtqfn.o now.o getln.a sig.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o ./compile qmail-send.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from qmail-send.c:7: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ In file included from qmail-send.c:29: ./qsutil.h:5:13: warning: incompatible redeclaration of library function 'log2' [-Wincompatible-library-redeclaration] 5 | extern void log2(); | ^ ./qsutil.h:5:13: note: 'log2' is a builtin with type 'double (double)' qmail-send.c:74:24: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | void cleandied() { log1("alert: oh no! lost qmail-clean connection! dying...\n"); | ^ qmail-send.c:78:32: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | void spawndied(c) int c; { log1("alert: oh no! lost spawn connection! dying...\n"); | ^ qmail-send.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | void spawndied(c) int c; { log1("alert: oh no! lost spawn connection! dying...\n"); | ^ qmail-send.c:94:24: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | while (!stralloc_ready(&fn,FMTQFN)) nomem(); | ^ qmail-send.c:95:24: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | while (!stralloc_ready(&fn2,FMTQFN)) nomem(); | ^ qmail-send.c:98:57: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | void fnmake_info(id) unsigned long id; { fn.len = fmtqfn(fn.s,"info/",id,1); } | ^ qmail-send.c:98:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | void fnmake_info(id) unsigned long id; { fn.len = fmtqfn(fn.s,"info/",id,1); } | ^ qmail-send.c:99:57: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | void fnmake_todo(id) unsigned long id; { fn.len = fmtqfn(fn.s,"todo/",id,0); } | ^ qmail-send.c:99:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | void fnmake_todo(id) unsigned long id; { fn.len = fmtqfn(fn.s,"todo/",id,0); } | ^ qmail-send.c:100:57: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | void fnmake_mess(id) unsigned long id; { fn.len = fmtqfn(fn.s,"mess/",id,1); } | ^ qmail-send.c:100:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | void fnmake_mess(id) unsigned long id; { fn.len = fmtqfn(fn.s,"mess/",id,1); } | ^ qmail-send.c:101:57: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | void fnmake_foop(id) unsigned long id; { fn.len = fmtqfn(fn.s,"foop/",id,0); } | ^ qmail-send.c:101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | void fnmake_foop(id) unsigned long id; { fn.len = fmtqfn(fn.s,"foop/",id,0); } | ^ qmail-send.c:102:58: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | void fnmake_split(id) unsigned long id; { fn.len = fmtqfn(fn.s,"",id,1); } | ^ qmail-send.c:102:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | void fnmake_split(id) unsigned long id; { fn.len = fmtqfn(fn.s,"",id,1); } | ^ qmail-send.c:104:19: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | { fn2.len = fmtqfn(fn2.s,"bounce/",id,0); } | ^ qmail-send.c:103:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | void fnmake2_bounce(id) unsigned long id; | ^ qmail-send.c:106:18: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | { fn.len = fmtqfn(fn.s,chanaddr[c],id,1); } | ^ qmail-send.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | void fnmake_chanaddr(id,c) unsigned long id; int c; | ^ qmail-send.c:124:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (!stralloc_copys(&rwline,"T")) return 0; | ^ qmail-send.c:125:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | if (!stralloc_copys(&addr,recip)) return 0; | ^ qmail-send.c:127:16: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | i = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-send.c:129:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | if (!stralloc_cats(&addr,"@")) return 0; | ^ qmail-send.c:130:22: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (!stralloc_cat(&addr,&envnoathost)) return 0; | ^ qmail-send.c:133:18: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | while (constmap(&mappercenthack,addr.s + i + 1,addr.len - i - 1)) { | ^ qmail-send.c:134:18: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | j = byte_rchr(addr.s,i,'%'); | ^ qmail-send.c:141:17: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | at = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-send.c:143:15: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | if (constmap(&maplocals,addr.s + at + 1,addr.len - at - 1)) { | ^ qmail-send.c:144:22: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:145:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:151:23: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ qmail-send.c:151:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 151 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:151:13: note: place parentheses around the assignment to silence this warning 151 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ | ( ) qmail-send.c:151:13: note: use '==' to turn this assignment into an equality comparison 151 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ | == qmail-send.c:153:27: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | if (!stralloc_cats(&rwline,x)) return 0; | ^ qmail-send.c:154:27: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | if (!stralloc_cats(&rwline,"-")) return 0; | ^ qmail-send.c:155:26: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:156:14: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:160:20: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:161:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:115:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | int rewrite(recip) | ^ qmail-send.c:174:13: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | i = str_len(sender); | ^ qmail-send.c:176:8: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | if (str_equal(sender + i - 4,"-@[]")) | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-send.c:178:19: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | j = byte_rchr(sender,i - 4,'@'); | ^ qmail-send.c:179:18: warning: passing arguments to 'str_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | k = str_rchr(recip,'@'); | ^ qmail-send.c:183:29: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | while (!stralloc_catb(sa,sender,j)) nomem(); | ^ qmail-send.c:184:29: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | while (!stralloc_catb(sa,recip,k)) nomem(); | ^ qmail-send.c:185:29: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | while (!stralloc_cats(sa,"=")) nomem(); | ^ qmail-send.c:186:29: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | while (!stralloc_cats(sa,recip + k + 1)) nomem(); | ^ qmail-send.c:187:29: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | while (!stralloc_cats(sa,"@")) nomem(); | ^ qmail-send.c:188:29: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | while (!stralloc_catb(sa,sender + j + 1,i - 5 - j)) nomem(); | ^ qmail-send.c:192:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | while (!stralloc_cats(sa,sender)) nomem(); | ^ qmail-send.c:165:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | void senderadd(sa,sender,recip) | ^ qmail-send.c:211:20: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | fdinfo = open_read(fn.s); | ^ qmail-send.c:213:33: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | if (fstat(fdinfo,&st) == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:214:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | substdio_fdbuf(&ss,read,fdinfo,buf,sizeof(buf)); | ^ qmail-send.c:215:11: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | if (getln(&ss,&line,&match,'\0') == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:215:44: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 215 | if (getln(&ss,&line,&match,'\0') == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:216:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 216 | close(fdinfo); | ^ qmail-send.c:221:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | while (!stralloc_copys(sa,line.s + 1)) nomem(); | ^ qmail-send.c:222:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | while (!stralloc_0(sa)) nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:198:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | int getinfo(sa,dt,id) | ^ qmail-send.c:237:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | substdio_fdbuf(&sstoqc,write,5,sstoqcbuf,sizeof(sstoqcbuf)); | ^ qmail-send.c:238:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | substdio_fdbuf(&ssfromqc,read,6,ssfromqcbuf,sizeof(ssfromqcbuf)); | ^ qmail-send.c:240:17: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | if (ndelay_on(chanfdout[c]) == -1) | ^ qmail-send.c:245:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | int comm_canwrite(c) | ^ qmail-send.c:262:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | while (!stralloc_copys(&comm_buf[c],"")) nomem(); | ^ qmail-send.c:264:25: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | while (!stralloc_append(&comm_buf[c],&ch)) nomem(); | ^ qmail-send.c:266:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | while (!stralloc_cats(&comm_buf[c],fn.s)) nomem(); | ^ qmail-send.c:267:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:269:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:270:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | while (!stralloc_cats(&comm_buf[c],recip)) nomem(); | ^ qmail-send.c:271:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:253:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | void comm_write(c,delnum,id,sender,recip) | ^ qmail-send.c:275:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | void comm_selprep(nfds,wfds) | ^ qmail-send.c:302:19: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | w = write(chanfdout[c],comm_buf[c].s + comm_pos[c],len - comm_pos[c]); | ^ qmail-send.c:290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | void comm_do(wfds) | ^ qmail-send.c:332:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | void cleanup_selprep(wakeup) | ^ qmail-send.c:348:19: warning: passing arguments to 'readsubdir_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | readsubdir_init(&cleanupdir,"mess",pausedir); | ^ qmail-send.c:352:24: warning: passing arguments to 'readsubdir_next' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 352 | switch(readsubdir_next(&cleanupdir,&id)) | ^ qmail-send.c:375:23: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:376:18: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:378:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:421:26: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | while (!prioq_insert(&pqchan[c],&pechan[c])) nomem(); | ^ qmail-send.c:427:24: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:433:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:435:22: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 435 | while (!prioq_insert(&pqfail,&pe)) nomem(); | ^ qmail-send.c:390:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 390 | void pqadd(id) | ^ qmail-send.c:444:17: warning: passing arguments to 'readsubdir_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | readsubdir_init(&rs,"info",pausedir); | ^ qmail-send.c:446:28: warning: passing arguments to 'readsubdir_next' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 446 | while (x = readsubdir_next(&rs,&id)) | ^ qmail-send.c:446:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 446 | while (x = readsubdir_next(&rs,&id)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:446:11: note: place parentheses around the assignment to silence this warning 446 | while (x = readsubdir_next(&rs,&id)) | ^ | ( ) qmail-send.c:446:11: note: use '==' to turn this assignment into an equality comparison 446 | while (x = readsubdir_next(&rs,&id)) | ^ | == qmail-send.c:458:20: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | while (prioq_min(&pqchan[c],&pe)) | ^ qmail-send.c:460:18: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 460 | prioq_delmin(&pqchan[c]); | ^ qmail-send.c:463:10: warning: call to undeclared function 'utime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 463 | if (utime(fn.s,ut) == -1) | ^ qmail-send.c:464:12: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | log3("warning: unable to utime ",fn.s,"; message will be retried too soon\n"); | ^ qmail-send.c:501:36: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 501 | while (!(jo = (struct job *) alloc(numjobs * sizeof(struct job)))) nomem(); | ^ qmail-send.c:516:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | int job_open(id,channel) | ^ qmail-send.c:544:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 544 | if (unlink(fn.s) == -1) | ^ qmail-send.c:546:10: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | log3("warning: unable to unlink ",fn.s,"; will try again later\n"); | ^ qmail-send.c:558:14: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | log3("warning: unable to stat ",fn.s,"\n"); | ^ qmail-send.c:563:26: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:568:22: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | while (!prioq_insert(&pqchan[jo[j].channel],&pe)) nomem(); | ^ qmail-send.c:531:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | void job_close(j) | ^ qmail-send.c:582:14: warning: passing arguments to 'str_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 582 | i = str_rchr(recip,'@'); | ^ qmail-send.c:585:21: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | domainlen = str_len(domain); | ^ qmail-send.c:589:28: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ qmail-send.c:589:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 589 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:589:18: note: place parentheses around the assignment to silence this warning 589 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ | ( ) qmail-send.c:589:18: note: use '==' to turn this assignment into an equality comparison 589 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ | == qmail-send.c:592:19: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 592 | i = str_len(prepend); | ^ qmail-send.c:593:21: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | if (str_diffn(recip,prepend,i)) break; | ^ qmail-send.c:574:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 574 | char *stripvdomprepend(recip) | ^ qmail-send.c:610:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 610 | while (!stralloc_copys(&bouncetext,"<")) nomem(); | ^ qmail-send.c:611:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | while (!stralloc_cats(&bouncetext,stripvdomprepend(recip))) nomem(); | ^ qmail-send.c:615:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | while (!stralloc_cats(&bouncetext,">:\n")) nomem(); | ^ qmail-send.c:616:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | while (!stralloc_cats(&bouncetext,report)) nomem(); | ^ qmail-send.c:618:22: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 618 | if (report[str_len(report) - 1] != '\n') | ^ qmail-send.c:619:27: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | while (!stralloc_cats(&bouncetext,"\n")) nomem(); | ^ qmail-send.c:624:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | while (!stralloc_cats(&bouncetext,"\n")) nomem(); | ^ qmail-send.c:628:20: warning: passing arguments to 'open_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 628 | fd = open_append(fn2.s); | ^ qmail-send.c:630:8: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 630 | log1("alert: unable to append to bounce message; HELP! sleeping...\n"); | ^ qmail-send.c:631:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 631 | sleep(10); | ^ qmail-send.c:636:13: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | w = write(fd,bouncetext.s + pos,bouncetext.len - pos); | ^ qmail-send.c:639:10: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | log1("alert: unable to append to bounce message; HELP! sleeping...\n"); | ^ qmail-send.c:640:6: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 640 | sleep(10); | ^ qmail-send.c:645:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 645 | close(fd); | ^ qmail-send.c:602:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | void addbounce(id,recip,report) | ^ qmail-send.c:669:8: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | if (str_equal(sender.s + sender.len - 5,"-@[]")) | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-send.c:681:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | log3("warning: unable to stat ",fn2.s,"\n"); | ^ qmail-send.c:684:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 684 | if (str_equal(sender.s,"#@[]")) | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-send.c:685:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | log3("triple bounce: discarding ",fn2.s,"\n"); | ^ qmail-send.c:688:18: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 688 | if (qmail_open(&qqt) == -1) | ^ qmail-send.c:689:11: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | { log1("warning: unable to start qmail-queue, will try later\n"); return 0; } | ^ qmail-send.c:690:17: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 690 | qp = qmail_qp(&qqt); | ^ qmail-send.c:695:29: warning: passing arguments to 'newfield_datemake' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 695 | while (!newfield_datemake(now())) nomem(); | ^ qmail-send.c:696:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 696 | qmail_put(&qqt,newfield_date.s,newfield_date.len); | ^ qmail-send.c:697:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | qmail_puts(&qqt,"From: "); | ^ qmail-send.c:698:17: warning: passing arguments to 'quote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 698 | while (!quote("ed,&bouncefrom)) nomem(); | ^ qmail-send.c:699:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:700:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | qmail_puts(&qqt,"@"); | ^ qmail-send.c:701:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | qmail_put(&qqt,bouncehost.s,bouncehost.len); | ^ qmail-send.c:702:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | qmail_puts(&qqt,"\nTo: "); | ^ qmail-send.c:703:18: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | while (!quote2("ed,bouncerecip)) nomem(); | ^ qmail-send.c:704:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:705:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 705 | qmail_puts(&qqt,"\n\ | ^ qmail-send.c:709:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | qmail_put(&qqt,bouncehost.s,bouncehost.len); | ^ qmail-send.c:710:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | qmail_puts(&qqt,*sender.s ? ".\n\ | ^ qmail-send.c:719:18: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 719 | fd = open_read(fn2.s); | ^ qmail-send.c:721:16: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | qmail_fail(&qqt); | ^ qmail-send.c:724:20: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | substdio_fdbuf(&ssread,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-send.c:725:30: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 725 | while ((r = substdio_get(&ssread,buf,sizeof(buf))) > 0) | ^ qmail-send.c:726:17: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 726 | qmail_put(&qqt,buf,r); | ^ qmail-send.c:727:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 727 | close(fd); | ^ qmail-send.c:729:18: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | qmail_fail(&qqt); | ^ qmail-send.c:732:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 732 | qmail_puts(&qqt,*sender.s ? "--- Below this line is a copy of the message.\n\n" : "--- Below this line is the original bounce.\n\n"); | ^ qmail-send.c:733:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | qmail_puts(&qqt,"Return-Path: <"); | ^ qmail-send.c:734:18: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 734 | while (!quote2("ed,sender.s)) nomem(); | ^ qmail-send.c:735:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 735 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:736:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | qmail_puts(&qqt,">\n"); | ^ qmail-send.c:738:18: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | fd = open_read(fn.s); | ^ qmail-send.c:740:16: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 740 | qmail_fail(&qqt); | ^ qmail-send.c:743:20: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 743 | substdio_fdbuf(&ssread,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-send.c:744:30: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 744 | while ((r = substdio_get(&ssread,buf,sizeof(buf))) > 0) | ^ qmail-send.c:745:17: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | qmail_put(&qqt,buf,r); | ^ qmail-send.c:746:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 746 | close(fd); | ^ qmail-send.c:748:18: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | qmail_fail(&qqt); | ^ qmail-send.c:751:14: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | qmail_from(&qqt,bouncesender); | ^ qmail-send.c:752:12: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | qmail_to(&qqt,bouncerecip); | ^ qmail-send.c:753:20: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | if (*qmail_close(&qqt)) | ^ qmail-send.c:754:11: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 754 | { log1("warning: trouble injecting bounce message, will try later\n"); return 0; } | ^ qmail-send.c:756:21: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 756 | strnum2[fmt_ulong(strnum2,id)] = 0; | ^ qmail-send.c:757:8: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 757 | log2("bounce msg ",strnum2); | ^ qmail-send.c:758:21: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 758 | strnum2[fmt_ulong(strnum2,qp)] = 0; | ^ qmail-send.c:759:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 759 | log3(" qp ",strnum2,"\n"); | ^ qmail-send.c:761:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 761 | if (unlink(fn2.s) == -1) | ^ qmail-send.c:763:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | log3("warning: unable to unlink ",fn2.s,"\n"); | ^ qmail-send.c:648:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 648 | int injectbounce(id) | ^ qmail-send.c:793:7: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 793 | log1("status:"); | ^ qmail-send.c:795:22: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 795 | strnum2[fmt_ulong(strnum2,(unsigned long) concurrencyused[c])] = 0; | ^ qmail-send.c:796:22: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | strnum3[fmt_ulong(strnum3,(unsigned long) concurrency[c])] = 0; | ^ qmail-send.c:797:9: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 797 | log2(chanstatusmsg[c],strnum2); | ^ qmail-send.c:798:9: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 798 | log2("/",strnum3); | ^ qmail-send.c:800:25: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 800 | if (flagexitasap) log1(" exitasap"); | ^ qmail-send.c:801:7: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 801 | log1("\n"); | ^ qmail-send.c:811:40: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | while (!(d[c] = (struct del *) alloc(concurrency[c] * sizeof(struct del)))) | ^ qmail-send.c:816:26: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | while (!stralloc_copys(&dline[c],"")) nomem(); | ^ qmail-send.c:830:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 830 | int del_avail(c) | ^ qmail-send.c:851:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 851 | if (!stralloc_copys(&d[c][i].recip,recip)) { nomem(); return; } | ^ qmail-send.c:852:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 852 | if (!stralloc_0(&d[c][i].recip)) { nomem(); return; } | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:860:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 860 | strnum2[fmt_ulong(strnum2,d[c][i].delid)] = 0; | ^ qmail-send.c:861:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | strnum3[fmt_ulong(strnum3,jo[j].id)] = 0; | ^ qmail-send.c:862:6: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 862 | log2("starting delivery ",strnum2); | ^ qmail-send.c:863:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 863 | log3(": msg ",strnum3,tochan[c]); | ^ qmail-send.c:864:9: warning: passing arguments to 'logsafe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 864 | logsafe(recip); | ^ qmail-send.c:865:6: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 865 | log1("\n"); | ^ qmail-send.c:836:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 836 | void del_start(j,mpos,recip) | ^ qmail-send.c:879:19: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 879 | fd = open_write(fn.s); | ^ qmail-send.c:881:31: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 881 | if (fstat(fd,&st) == -1) { close(fd); break; } | ^ qmail-send.c:882:16: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 882 | if (seek_set(fd,pos) == -1) { close(fd); break; } | ^ qmail-send.c:882:34: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 882 | if (seek_set(fd,pos) == -1) { close(fd); break; } | ^ qmail-send.c:883:13: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | if (write(fd,"D",1) != 1) { close(fd); break; } | ^ qmail-send.c:883:32: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 883 | if (write(fd,"D",1) != 1) { close(fd); break; } | ^ qmail-send.c:885:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 885 | close(fd); | ^ qmail-send.c:888:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 888 | log3("warning: trouble marking ",fn.s,"; message will be delivered twice!\n"); | ^ qmail-send.c:869:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 869 | void markdone(c,id,pos) | ^ qmail-send.c:898:10: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 898 | r = read(chanfdin[c],delbuf,sizeof(delbuf)); | ^ qmail-send.c:904:27: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 904 | while (!stralloc_append(&dline[c],&ch)) nomem(); | ^ qmail-send.c:913:12: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | log1("warning: internal error: delivery report out of range\n"); | ^ qmail-send.c:916:25: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | strnum3[fmt_ulong(strnum3,d[c][delnum].delid)] = 0; | ^ qmail-send.c:922:26: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | while (!stralloc_cats(&dline[c],"I'm not going to try again; this message has been in the queue too long.\n")) nomem(); | ^ qmail-send.c:923:13: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 923 | while (!stralloc_0(&dline[c])) nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:928:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 928 | log3("delivery ",strnum3,": success: "); | ^ qmail-send.c:929:12: warning: passing arguments to 'logsafe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | logsafe(dline[c].s + 2); | ^ qmail-send.c:930:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | log1("\n"); | ^ qmail-send.c:935:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 935 | log3("delivery ",strnum3,": deferral: "); | ^ qmail-send.c:936:12: warning: passing arguments to 'logsafe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | logsafe(dline[c].s + 2); | ^ qmail-send.c:937:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 937 | log1("\n"); | ^ qmail-send.c:940:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | log3("delivery ",strnum3,": failure: "); | ^ qmail-send.c:941:12: warning: passing arguments to 'logsafe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 941 | logsafe(dline[c].s + 2); | ^ qmail-send.c:942:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 942 | log1("\n"); | ^ qmail-send.c:948:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | log3("delivery ",strnum3,": report mangled, will defer\n"); | ^ qmail-send.c:891:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 891 | void del_dochan(c) | ^ qmail-send.c:959:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 959 | void del_selprep(nfds,rfds) | ^ qmail-send.c:973:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | void del_do(rfds) | ^ qmail-send.c:1016:21: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1016 | if (prioq_min(&pqchan[c],&pe)) | ^ qmail-send.c:1019:15: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1019 | if (prioq_min(&pqfail,&pe)) | ^ qmail-send.c:1022:15: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1022 | if (prioq_min(&pqdone,&pe)) | ^ qmail-send.c:1003:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1003 | void pass_selprep(wakeup) | ^ qmail-send.c:1027:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1027 | static datetime_sec squareroot(x) /* result^2 <= x < (result + 1)^2 */ | ^ qmail-send.c:1044:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | datetime_sec nextretry(birth,c) | ^ qmail-send.c:1069:18: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | if (!prioq_min(&pqchan[c],&pe)) return; | ^ qmail-send.c:1073:16: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1073 | prioq_delmin(&pqchan[c]); | ^ qmail-send.c:1075:26: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1075 | pass[c].fd = open_read(fn.s); | ^ qmail-send.c:1077:40: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1077 | if (!getinfo(&line,&birth,pe.id)) { close(pass[c].fd); goto trouble; } | ^ qmail-send.c:1079:18: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1079 | substdio_fdbuf(&pass[c].ss,read,pass[c].fd,pass[c].buf,sizeof(pass[c].buf)); | ^ qmail-send.c:1083:25: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1083 | while (!stralloc_copy(&jo[pass[c].j].sender,&line)) nomem(); | ^ qmail-send.c:1088:11: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1088 | if (getln(&pass[c].ss,&line,&match,'\0') == -1) | ^ qmail-send.c:1091:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1091 | log3("warning: trouble reading ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1092:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1092 | close(pass[c].fd); | ^ qmail-send.c:1099:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1099 | close(pass[c].fd); | ^ qmail-send.c:1115:10: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1115 | log3("warning: unknown record type in ",fn.s,"!\n"); | ^ qmail-send.c:1116:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1116 | close(pass[c].fd); | ^ qmail-send.c:1126:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1126 | log3("warning: trouble opening ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1128:22: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1128 | while (!prioq_insert(&pqchan[c],&pe)) nomem(); | ^ qmail-send.c:1056:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | void pass_dochan(c) | ^ qmail-send.c:1145:10: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1154:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1154 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1162:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1162 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1170:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1170 | strnum3[fmt_ulong(strnum3,id)] = 0; | ^ qmail-send.c:1171:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1171 | log3("end msg ",strnum3,"\n"); | ^ qmail-send.c:1175:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1175 | if (unlink(fn.s) == -1) | ^ qmail-send.c:1177:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1177 | log3("warning: unable to unlink ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1183:23: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1183 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:1184:18: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1184 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:1186:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1186 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:1192:22: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1192 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:1131:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1131 | void messdone(id) | ^ qmail-send.c:1201:15: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1201 | if (prioq_min(&pqfail,&pe)) | ^ qmail-send.c:1204:18: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1204 | prioq_delmin(&pqfail); | ^ qmail-send.c:1207:15: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1207 | if (prioq_min(&pqdone,&pe)) | ^ qmail-send.c:1210:18: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1210 | prioq_delmin(&pqdone); | ^ qmail-send.c:1238:17: warning: passing arguments to 'trigger_selprep' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1238 | trigger_selprep(nfds,rfds); | ^ qmail-send.c:1232:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | void todo_selprep(nfds,rfds,wakeup) | ^ qmail-send.c:1270:23: warning: passing arguments to 'trigger_pulled' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1270 | if (!trigger_pulled(rfds)) | ^ qmail-send.c:1277:14: warning: passing arguments to 'pausedir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1277 | pausedir("todo"); | ^ qmail-send.c:1290:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1290 | if (str_equal(d->d_name,".")) return; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-send.c:1291:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1291 | if (str_equal(d->d_name,"..")) return; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-send.c:1292:18: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1292 | len = scan_ulong(d->d_name,&id); | ^ qmail-send.c:1297:16: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1297 | fd = open_read(fn.s); | ^ qmail-send.c:1298:22: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1298 | if (fd == -1) { log3("warning: unable to open ",fn.s,"\n"); return; } | ^ qmail-send.c:1303:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1303 | { log3("warning: unable to stat ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1308:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1308 | if (unlink(fn.s) == -1) if (errno != error_noent) | ^ qmail-send.c:1309:11: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1309 | { log3("warning: unable to unlink ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1313:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1313 | if (unlink(fn.s) == -1) if (errno != error_noent) | ^ qmail-send.c:1314:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1314 | { log3("warning: unable to unlink ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1316:20: warning: passing arguments to 'open_excl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1316 | fdinfo = open_excl(fn.s); | ^ qmail-send.c:1318:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1318 | { log3("warning: unable to create ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1320:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1320 | strnum3[fmt_ulong(strnum3,id)] = 0; | ^ qmail-send.c:1321:6: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | log3("new msg ",strnum3,"\n"); | ^ qmail-send.c:1325:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1325 | substdio_fdbuf(&ss,read,fd,todobuf,sizeof(todobuf)); | ^ qmail-send.c:1326:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1326 | substdio_fdbuf(&ssinfo,write,fdinfo,todobufinfo,sizeof(todobufinfo)); | ^ qmail-send.c:1333:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1333 | if (getln(&ss,&todoline,&match,'\0') == -1) | ^ qmail-send.c:1337:10: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1337 | log3("warning: trouble reading ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1344:18: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1344 | scan_ulong(todoline.s + 1,&uid); | ^ qmail-send.c:1347:18: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1347 | scan_ulong(todoline.s + 1,&pid); | ^ qmail-send.c:1350:29: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1350 | if (substdio_putflush(&ssinfo,todoline.s,todoline.len) == -1) | ^ qmail-send.c:1353:14: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1353 | log3("warning: trouble writing to ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1355:12: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1355 | log2("info msg ",strnum3); | ^ qmail-send.c:1356:25: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1356 | strnum2[fmt_ulong(strnum2,(unsigned long) st.st_size)] = 0; | ^ qmail-send.c:1357:12: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1357 | log2(": bytes ",strnum2); | ^ qmail-send.c:1358:12: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1358 | log1(" from <"); logsafe(todoline.s + 1); | ^ qmail-send.c:1358:32: warning: passing arguments to 'logsafe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1358 | log1(" from <"); logsafe(todoline.s + 1); | ^ qmail-send.c:1359:25: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1359 | strnum2[fmt_ulong(strnum2,pid)] = 0; | ^ qmail-send.c:1360:12: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1360 | log2("> qp ",strnum2); | ^ qmail-send.c:1361:25: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1361 | strnum2[fmt_ulong(strnum2,uid)] = 0; | ^ qmail-send.c:1362:12: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1362 | log2(" uid ",strnum2); | ^ qmail-send.c:1363:12: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1363 | log1("\n"); | ^ qmail-send.c:1375:24: warning: passing arguments to 'open_excl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1375 | fdchan[c] = open_excl(fn.s); | ^ qmail-send.c:1377:17: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1377 | { log3("warning: unable to create ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1378:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1378 | substdio_fdbuf(&sschan[c] | ^ qmail-send.c:1382:25: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1382 | if (substdio_bput(&sschan[c],rwline.s,rwline.len) == -1) | ^ qmail-send.c:1385:14: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1385 | log3("warning: trouble writing to ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1390:12: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1390 | log3("warning: unknown record type in ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1394:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1394 | close(fd); fd = -1; | ^ qmail-send.c:1397:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1397 | if (substdio_flush(&ssinfo) == -1) | ^ qmail-send.c:1398:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1398 | { log3("warning: trouble writing to ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1399:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1399 | if (fsync(fdinfo) == -1) | ^ qmail-send.c:1400:9: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1400 | { log3("warning: trouble fsyncing ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1407:24: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1407 | if (substdio_flush(&sschan[c]) == -1) | ^ qmail-send.c:1408:13: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1408 | { log3("warning: trouble writing to ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1410:13: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1410 | { log3("warning: trouble fsyncing ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1415:23: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1415 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:1416:18: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1416 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:1419:8: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1419 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:1426:26: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1426 | while (!prioq_insert(&pqchan[c],&pe)) nomem(); | ^ qmail-send.c:1430:24: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1430 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:1243:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | void todo_do(rfds) | ^ qmail-send.c:1445:21: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1445 | if (control_readint(&lifetime,"control/queuelifetime") == -1) return 0; | ^ qmail-send.c:1446:21: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1446 | if (control_readint(&concurrency[0],"control/concurrencylocal") == -1) return 0; | ^ qmail-send.c:1447:21: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1447 | if (control_readint(&concurrency[1],"control/concurrencyremote") == -1) return 0; | ^ qmail-send.c:1448:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1448 | if (control_rldef(&envnoathost,"control/envnoathost",1,"envnoathost") != 1) return 0; | ^ qmail-send.c:1449:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1449 | if (control_rldef(&bouncefrom,"control/bouncefrom",0,"MAILER-DAEMON") != 1) return 0; | ^ qmail-send.c:1450:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1450 | if (control_rldef(&bouncehost,"control/bouncehost",1,"bouncehost") != 1) return 0; | ^ qmail-send.c:1451:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1451 | if (control_rldef(&doublebouncehost,"control/doublebouncehost",1,"doublebouncehost") != 1) return 0; | ^ qmail-send.c:1452:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1452 | if (control_rldef(&doublebounceto,"control/doublebounceto",0,"postmaster") != 1) return 0; | ^ qmail-send.c:1453:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1453 | if (!stralloc_cats(&doublebounceto,"@")) return 0; | ^ qmail-send.c:1454:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1454 | if (!stralloc_cat(&doublebounceto,&doublebouncehost)) return 0; | ^ qmail-send.c:1455:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1455 | if (!stralloc_0(&doublebounceto)) return 0; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:1456:22: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1456 | if (control_readfile(&locals,"control/locals",1) != 1) return 0; | ^ qmail-send.c:1457:20: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1457 | if (!constmap_init(&maplocals,locals.s,locals.len,0)) return 0; | ^ qmail-send.c:1458:25: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1458 | switch(control_readfile(&percenthack,"control/percenthack",0)) | ^ qmail-send.c:1461:30: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1461 | case 0: if (!constmap_init(&mappercenthack,"",0,0)) return 0; break; | ^ qmail-send.c:1462:30: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1462 | case 1: if (!constmap_init(&mappercenthack,percenthack.s,percenthack.len,0)) return 0; break; | ^ qmail-send.c:1464:25: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1464 | switch(control_readfile(&vdoms,"control/virtualdomains",0)) | ^ qmail-send.c:1467:30: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1467 | case 0: if (!constmap_init(&mapvdoms,"",0,1)) return 0; break; | ^ qmail-send.c:1468:30: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1468 | case 1: if (!constmap_init(&mapvdoms,vdoms.s,vdoms.len,1)) return 0; break; | ^ qmail-send.c:1479:22: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1479 | if (control_readfile(&newlocals,"control/locals",1) != 1) | ^ qmail-send.c:1480:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1480 | { log1("alert: unable to reread control/locals\n"); return; } | ^ qmail-send.c:1481:22: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1481 | r = control_readfile(&newvdoms,"control/virtualdomains",0); | ^ qmail-send.c:1483:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1483 | { log1("alert: unable to reread control/virtualdomains\n"); return; } | ^ qmail-send.c:1485:15: warning: passing arguments to 'constmap_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1485 | constmap_free(&maplocals); | ^ qmail-send.c:1486:15: warning: passing arguments to 'constmap_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1486 | constmap_free(&mapvdoms); | ^ qmail-send.c:1488:23: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1488 | while (!stralloc_copy(&locals,&newlocals)) nomem(); | ^ qmail-send.c:1489:23: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1489 | while (!constmap_init(&maplocals,locals.s,locals.len,0)) nomem(); | ^ qmail-send.c:1493:25: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1493 | while (!stralloc_copy(&vdoms,&newvdoms)) nomem(); | ^ qmail-send.c:1494:25: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1494 | while (!constmap_init(&mapvdoms,vdoms.s,vdoms.len,1)) nomem(); | ^ qmail-send.c:1497:25: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1497 | while (!constmap_init(&mapvdoms,"",0,1)) nomem(); | ^ qmail-send.c:1502:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1502 | if (chdir(auto_qmail) == -1) | ^ qmail-send.c:1504:8: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1504 | log1("alert: unable to reread controls: unable to switch to home directory\n"); | ^ qmail-send.c:1510:8: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1510 | log1("alert: unable to switch back to queue directory; HELP! sleeping...\n"); | ^ qmail-send.c:1511:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1511 | sleep(10); | ^ qmail-send.c:1525:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1525 | if (chdir(auto_qmail) == -1) | ^ qmail-send.c:1526:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1526 | { log1("alert: cannot start: unable to switch to home directory\n"); _exit(111); } | ^ qmail-send.c:1528:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1528 | { log1("alert: cannot start: unable to read controls\n"); _exit(111); } | ^ qmail-send.c:1530:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1530 | { log1("alert: cannot start: unable to switch to queue directory\n"); _exit(111); } | ^ qmail-send.c:1532:15: warning: passing arguments to 'sig_termcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1532 | sig_termcatch(sigterm); | ^ qmail-send.c:1533:16: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1533 | sig_alarmcatch(sigalrm); | ^ qmail-send.c:1534:17: warning: passing arguments to 'sig_hangupcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1534 | sig_hangupcatch(sighup); | ^ qmail-send.c:1538:17: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1538 | fd = open_write("lock/sendmutex"); | ^ qmail-send.c:1540:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1540 | { log1("alert: cannot start: unable to open mutex\n"); _exit(111); } | ^ qmail-send.c:1541:15: warning: passing arguments to 'lock_exnb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1541 | if (lock_exnb(fd) == -1) | ^ qmail-send.c:1542:9: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1542 | { log1("alert: cannot start: qmail-send is already running\n"); _exit(111); } | ^ qmail-send.c:1551:14: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1551 | r = read(chanfdin[c],&ch,1); | ^ qmail-send.c:1554:11: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1554 | { log1("alert: cannot start: hath the daemon spawn no fire?\n"); _exit(111); } | ^ qmail-send.c:1597:12: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1597 | log1("warning: trouble in select\n"); | ^ qmail-send.c:1610:6: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1610 | log1("status: exiting\n"); | ^ 364 warnings generated. ./compile qsutil.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from qsutil.c:4: ./qsutil.h:5:13: warning: incompatible redeclaration of library function 'log2' [-Wincompatible-library-redeclaration] 5 | extern void log2(); | ^ ./qsutil.h:5:13: note: 'log2' is a builtin with type 'double (double)' qsutil.c:12:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | substdio_putflush(&sserr,sa->s,sa->len); } | ^ qsutil.c:11:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | void logsa(sa) stralloc *sa; { | ^ In file included from qsutil.c:4: ./qsutil.h:7:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern void logsa(); | ^ qsutil.c:14:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | substdio_putsflush(&sserr,s1); } | ^ qsutil.c:13:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | void log1(s1) char *s1; { | ^ In file included from qsutil.c:4: ./qsutil.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void log1(); | ^ qsutil.c:16:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | substdio_putsflush(&sserr,s1); | ^ qsutil.c:17:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | substdio_putsflush(&sserr,s2); } | ^ qsutil.c:15:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | void log2(s1,s2) char *s1; char *s2; { | ^ In file included from qsutil.c:4: ./qsutil.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void log2(); | ^ qsutil.c:19:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | substdio_putsflush(&sserr,s1); | ^ qsutil.c:20:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | substdio_putsflush(&sserr,s2); | ^ qsutil.c:21:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | substdio_putsflush(&sserr,s3); } | ^ qsutil.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void log3(s1,s2,s3) char *s1; char *s2; char *s3; { | ^ In file included from qsutil.c:4: ./qsutil.h:6:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern void log3(); | ^ qsutil.c:22:61: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 22 | void nomem() { log1("alert: out of memory, sleeping...\n"); sleep(10); } | ^ qsutil.c:25:60: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } | ^ qsutil.c:24:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | void pausedir(dir) char *dir; | ^ In file included from qsutil.c:4: ./qsutil.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void pausedir(); | ^ qsutil.c:27:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | static int issafe(ch) char ch; | ^ qsutil.c:38:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | while (!stralloc_copys(&foo,s)) nomem(); | ^ qsutil.c:35:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | void logsafe(s) char *s; | ^ In file included from qsutil.c:4: ./qsutil.h:10:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern void logsafe(); | ^ 24 warnings generated. ./compile newfield.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] newfield.c:19:14: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | datetime_tai(&dt,when); | ^ newfield.c:21:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | i = fmt_str(s,"Date: "); len += i; if (s) s += i; | ^ newfield.c:22:16: warning: passing arguments to 'date822fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | i = date822fmt(s,&dt); len += i; if (s) s += i; | ^ newfield.c:12:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | static unsigned int datefmt(s,when) | ^ newfield.c:35:14: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | datetime_tai(&dt,when); | ^ newfield.c:37:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | i = fmt_str(s,"Message-ID: <"); len += i; if (s) s += i; | ^ newfield.c:38:14: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | i = fmt_uint(s,dt.year + 1900); len += i; if (s) s += i; | ^ newfield.c:39:15: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | i = fmt_uint0(s,dt.mon + 1,2); len += i; if (s) s += i; | ^ newfield.c:40:15: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | i = fmt_uint0(s,dt.mday,2); len += i; if (s) s += i; | ^ newfield.c:41:15: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | i = fmt_uint0(s,dt.hour,2); len += i; if (s) s += i; | ^ newfield.c:42:15: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | i = fmt_uint0(s,dt.min,2); len += i; if (s) s += i; | ^ newfield.c:43:15: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | i = fmt_uint0(s,dt.sec,2); len += i; if (s) s += i; | ^ newfield.c:44:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ newfield.c:45:17: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | i = fmt_uint(s,getpid()); len += i; if (s) s += i; | ^ newfield.c:45:14: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | i = fmt_uint(s,getpid()); len += i; if (s) s += i; | ^ newfield.c:46:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | i = fmt_str(s,".qmail@"); len += i; if (s) s += i; | ^ newfield.c:47:14: warning: passing arguments to 'fmt_strn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | i = fmt_strn(s,idhost,idhostlen); len += i; if (s) s += i; | ^ newfield.c:48:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | i = fmt_str(s,">\n"); len += i; if (s) s += i; | ^ newfield.c:26:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | static unsigned int msgidfmt(s,idhost,idhostlen,when) | ^ newfield.c:55:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | if (!stralloc_ready(&newfield_date,datefmt(FMT_LEN,when))) return 0; | ^ newfield.c:52:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | int newfield_datemake(when) | ^ In file included from newfield.c:5: ./newfield.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 7 | extern int newfield_datemake(); | ^ newfield.c:65:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | if (!stralloc_ready(&newfield_msgid,msgidfmt(FMT_LEN,idhost,idhostlen,when))) return 0; | ^ newfield.c:60:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | int newfield_msgidmake(idhost,idhostlen,when) | ^ In file included from newfield.c:5: ./newfield.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int newfield_msgidmake(); | ^ 25 warnings generated. ./compile prioq.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] prioq.c:5:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_readyplus(prioq,struct prioq_elt,p,len,a,i,n,x,100,prioq_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ prioq.c:5:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ prioq.c:5:62: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | GEN_ALLOC_readyplus(prioq,struct prioq_elt,p,len,a,i,n,x,100,prioq_readyplus) | ^ prioq.c:7:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | int prioq_insert(pq,pe) | ^ In file included from prioq.c:3: ./prioq.h:11:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 11 | extern int prioq_insert(); | ^ prioq.c:26:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | int prioq_min(pq,pe) | ^ In file included from prioq.c:3: ./prioq.h:12:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 12 | extern int prioq_min(); | ^ prioq.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void prioq_delmin(pq) | ^ In file included from prioq.c:3: ./prioq.h:13:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 13 | extern void prioq_delmin(); | ^ 9 warnings generated. ( ( ./compile trymkffo.c && ./load trymkffo ) >/dev/null 2>&1 && echo \#define HASMKFIFO 1 || exit 0 ) > hasmkffo.h rm -f trymkffo.o trymkffo ./compile fifo.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] fifo.c:7:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | int fifo_make(fn,mode) char *fn; int mode; { return mkfifo(fn,mode); } | ^ In file included from fifo.c:4: ./fifo.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int fifo_make(); | ^ 2 warnings generated. ( ( ./compile trynpbg1.c && ./load trynpbg1 fifo.o open.a && ./trynpbg1 ) >/dev/null 2>&1 && echo \#define HASNAMEDPIPEBUG1 1 || exit 0 ) > hasnpbg1.h rm -f trynpbg1.o trynpbg1 ./compile trigger.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] In file included from trigger.c:1: ./select.h:7:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a previous declaration [-Wdeprecated-non-prototype] 7 | extern int select(); | ^ /usr/include/sys/select.h:103:5: note: conflicting prototype is here 103 | int select(int, fd_set *, fd_set *, fd_set *, struct timeval *); | ^ trigger.c:14:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | close(fd); | ^ trigger.c:19:16: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | fd = open_read("lock/trigger"); | ^ trigger.c:25:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | void trigger_selprep(nfds,rfds) | ^ In file included from trigger.c:3: ./trigger.h:5:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern void trigger_selprep(); | ^ trigger.c:36:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | int trigger_pulled(rfds) | ^ In file included from trigger.c:3: ./trigger.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int trigger_pulled(); | ^ 7 warnings generated. ./compile readsubdir.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] readsubdir.c:7:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void readsubdir_init(rs,name,pause) | ^ In file included from readsubdir.c:1: ./readsubdir.h:15:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | extern void readsubdir_init(); | ^ readsubdir.c:30:15: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | if (str_len(rs->name) > READSUBDIR_NAMELEN) { rs->pos++; return -1; } | ^ readsubdir.c:32:18: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | len += fmt_str(namepos + len,rs->name); | ^ readsubdir.c:34:20: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | len += fmt_ulong(namepos + len,(unsigned long) rs->pos); | ^ readsubdir.c:36:51: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | while (!(rs->dir = opendir(namepos))) rs->pause(namepos); | ^ readsubdir.c:44:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | if (str_equal(d->d_name,".")) return -1; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ readsubdir.c:45:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | if (str_equal(d->d_name,"..")) return -1; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ readsubdir.c:46:18: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | len = scan_ulong(d->d_name,id); | ^ readsubdir.c:20:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | int readsubdir_next(rs,id) | ^ In file included from readsubdir.c:1: ./readsubdir.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int readsubdir_next(); | ^ 11 warnings generated. ./compile date822fmt.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] date822fmt.c:16:15: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | i = fmt_uint(s,dt->mday); len += i; if (s) s += i; | ^ date822fmt.c:17:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | i = fmt_str(s," "); len += i; if (s) s += i; | ^ date822fmt.c:18:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | i = fmt_str(s,montab[dt->mon]); len += i; if (s) s += i; | ^ date822fmt.c:19:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | i = fmt_str(s," "); len += i; if (s) s += i; | ^ date822fmt.c:20:15: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | i = fmt_uint(s,dt->year + 1900); len += i; if (s) s += i; | ^ date822fmt.c:21:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | i = fmt_str(s," "); len += i; if (s) s += i; | ^ date822fmt.c:22:16: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | i = fmt_uint0(s,dt->hour,2); len += i; if (s) s += i; | ^ date822fmt.c:23:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | i = fmt_str(s,":"); len += i; if (s) s += i; | ^ date822fmt.c:24:16: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | i = fmt_uint0(s,dt->min,2); len += i; if (s) s += i; | ^ date822fmt.c:25:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | i = fmt_str(s,":"); len += i; if (s) s += i; | ^ date822fmt.c:26:16: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | i = fmt_uint0(s,dt->sec,2); len += i; if (s) s += i; | ^ date822fmt.c:27:14: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | i = fmt_str(s," -0000\n"); len += i; if (s) s += i; | ^ date822fmt.c:9:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | unsigned int date822fmt(s,dt) | ^ In file included from date822fmt.c:3: ./date822fmt.h:4:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern unsigned int date822fmt(); | ^ 14 warnings generated. ./load qmail-send qsutil.o control.o constmap.o newfield.o prioq.o trigger.o fmtqfn.o quote.o now.o readsubdir.o qmail.o date822fmt.o datetime.a case.a ndelay.a getln.a wait.a seek.a fd.a sig.a open.a lock.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o env.a ./compile qmail-start.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-start.c:22:21: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 22 | void close23456() { close(2); close(3); close(4); close(5); close(6); } | ^ qmail-start.c:25:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | close(pi1[0]); close(pi1[1]); close(pi2[0]); close(pi2[1]); | ^ qmail-start.c:34:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | if (chdir("/") == -1) die(); | ^ qmail-start.c:35:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | umask(077); | ^ qmail-start.c:36:15: warning: passing arguments to 'prot_gid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | if (prot_gid(auto_gidq) == -1) die(); | ^ qmail-start.c:38:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | if (fd_copy(2,0) == -1) die(); | ^ qmail-start.c:39:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | if (fd_copy(3,0) == -1) die(); | ^ qmail-start.c:40:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (fd_copy(4,0) == -1) die(); | ^ qmail-start.c:41:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | if (fd_copy(5,0) == -1) die(); | ^ qmail-start.c:42:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | if (fd_copy(6,0) == -1) die(); | ^ qmail-start.c:50:9: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | if (pipe(pi0) == -1) die(); | ^ qmail-start.c:55:21: warning: passing arguments to 'prot_gid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | if (prot_gid(auto_gidn) == -1) die(); | ^ qmail-start.c:56:21: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | if (prot_uid(auto_uidl) == -1) die(); | ^ qmail-start.c:57:9: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | close(pi0[1]); | ^ qmail-start.c:58:20: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (fd_move(0,pi0[0]) == -1) die(); | ^ qmail-start.c:60:9: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | execvp(argv[1],argv + 1); | ^ qmail-start.c:63:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | close(pi0[0]); | ^ qmail-start.c:64:16: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | if (fd_move(1,pi0[1]) == -1) die(); | ^ qmail-start.c:67:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | if (pipe(pi1) == -1) die(); | ^ qmail-start.c:77:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if (fd_copy(0,pi1[0]) == -1) die(); | ^ qmail-start.c:78:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (fd_copy(1,pi2[1]) == -1) die(); | ^ qmail-start.c:81:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | execvp(*qlargs,qlargs); | ^ qmail-start.c:88:19: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (prot_uid(auto_uidr) == -1) die(); | ^ qmail-start.c:89:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | if (fd_copy(0,pi3[0]) == -1) die(); | ^ qmail-start.c:90:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | if (fd_copy(1,pi4[1]) == -1) die(); | ^ qmail-start.c:93:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | execvp(*qrargs,qrargs); | ^ qmail-start.c:100:19: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (prot_uid(auto_uidq) == -1) die(); | ^ qmail-start.c:101:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | if (fd_copy(0,pi5[0]) == -1) die(); | ^ qmail-start.c:102:18: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | if (fd_copy(1,pi6[1]) == -1) die(); | ^ qmail-start.c:105:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 105 | execvp(*qcargs,qcargs); | ^ qmail-start.c:109:15: warning: passing arguments to 'prot_uid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (prot_uid(auto_uids) == -1) die(); | ^ qmail-start.c:110:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (fd_copy(0,1) == -1) die(); | ^ qmail-start.c:111:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (fd_copy(1,pi1[1]) == -1) die(); | ^ qmail-start.c:112:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if (fd_copy(2,pi2[0]) == -1) die(); | ^ qmail-start.c:113:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (fd_copy(3,pi3[1]) == -1) die(); | ^ qmail-start.c:114:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | if (fd_copy(4,pi4[0]) == -1) die(); | ^ qmail-start.c:115:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | if (fd_copy(5,pi5[1]) == -1) die(); | ^ qmail-start.c:116:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (fd_copy(6,pi6[0]) == -1) die(); | ^ qmail-start.c:118:3: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | execvp(*qsargs,qsargs); | ^ qmail-start.c:30:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | int main(argc,argv) | ^ 40 warnings generated. ./load qmail-start prot.o fd.a auto_uids.o ./compile splogger.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] splogger.c:24:17: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | s += fmt_ulong(s,(unsigned long) tv.tv_sec); | ^ splogger.c:26:17: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | s += fmt_uint0(s,(unsigned int) tv.tv_usec,6); | ^ splogger.c:39:20: warning: passing arguments to 'str_start' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | if (str_start(buf,"warning:")) priority = LOG_WARNING; | ^ splogger.c:40:20: warning: passing arguments to 'str_start' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (str_start(buf,"alert:")) priority = LOG_ALERT; | ^ splogger.c:57:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | scan_ulong(argv[2],&facility); | ^ splogger.c:66:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (substdio_get(subfdin,&ch,1) < 1) _exit(0); | ^ splogger.c:48:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | int main(argc,argv) | ^ 7 warnings generated. ( ( ./compile trysyslog.c && ./load trysyslog -lgen ) >/dev/null 2>&1 && echo -lgen || exit 0 ) > syslog.lib rm -f trysyslog.o trysyslog ./load splogger substdio.a error.a str.a fs.a `cat syslog.lib` `cat socket.lib` ./compile qmail-queue.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-queue.c:47:14: warning: passing arguments to 'seek_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | seek_trunc(intdfd,0); | ^ qmail-queue.c:48:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | if (unlink(intdfn) == -1) return; | ^ qmail-queue.c:52:14: warning: passing arguments to 'seek_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | seek_trunc(messfd,0); | ^ qmail-queue.c:53:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | if (unlink(messfn) == -1) return; | ^ qmail-queue.c:57:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | void die(e) int e; { _exit(e); } | ^ qmail-queue.c:73:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | i = fmt_str(s,"Received: (qmail "); len += i; if (s) s += i; | ^ qmail-queue.c:74:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | i = fmt_ulong(s,mypid); len += i; if (s) s += i; | ^ qmail-queue.c:75:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | i = fmt_str(s," invoked "); len += i; if (s) s += i; | ^ qmail-queue.c:77:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | { i = fmt_str(s,"by alias"); len += i; if (s) s += i; } | ^ qmail-queue.c:79:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | { i = fmt_str(s,"from network"); len += i; if (s) s += i; } | ^ qmail-queue.c:81:16: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | { i = fmt_str(s,"for bounce"); len += i; if (s) s += i; } | ^ qmail-queue.c:84:15: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | i = fmt_str(s,"by uid "); len += i; if (s) s += i; | ^ qmail-queue.c:85:17: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | i = fmt_ulong(s,uid); len += i; if (s) s += i; | ^ qmail-queue.c:87:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | i = fmt_str(s,"); "); len += i; if (s) s += i; | ^ qmail-queue.c:88:16: warning: passing arguments to 'date822fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | i = date822fmt(s,&dt); len += i; if (s) s += i; | ^ qmail-queue.c:67:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | static unsigned int receivedfmt(s) | ^ qmail-queue.c:95:18: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | received = alloc(receivedlen + 1); | ^ qmail-queue.c:108:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | i = fmt_str(s,"pid/"); len += i; if (s) s += i; | ^ qmail-queue.c:109:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | i = fmt_ulong(s,mypid); len += i; if (s) s += i; | ^ qmail-queue.c:110:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ qmail-queue.c:111:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | i = fmt_ulong(s,starttime); len += i; if (s) s += i; | ^ qmail-queue.c:112:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | i = fmt_str(s,"."); len += i; if (s) s += i; | ^ qmail-queue.c:113:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | i = fmt_ulong(s,seq); len += i; if (s) s += i; | ^ qmail-queue.c:100:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | unsigned int pidfmt(s,seq) | ^ qmail-queue.c:125:18: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | s = alloc(fmtqfn((char *) 0,dirslash,messnum,flagsplit)); | ^ qmail-queue.c:125:11: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | s = alloc(fmtqfn((char *) 0,dirslash,messnum,flagsplit)); | ^ qmail-queue.c:127:8: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | fmtqfn(s,dirslash,messnum,flagsplit); | ^ qmail-queue.c:119:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | char *fnnum(dirslash,flagsplit) | ^ qmail-queue.c:138:15: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | pidfn = alloc(len); | ^ qmail-queue.c:145:22: warning: passing arguments to 'open_excl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | messfd = open_excl(pidfn); | ^ qmail-queue.c:161:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | if (chdir(auto_qmail) == -1) die(61); | ^ qmail-queue.c:164:10: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 164 | mypid = getpid(); | ^ qmail-queue.c:165:8: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 165 | uid = getuid(); | ^ qmail-queue.c:167:14: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | datetime_tai(&dt,starttime); | ^ qmail-queue.c:173:16: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | sig_alarmcatch(sigalrm); | ^ qmail-queue.c:174:14: warning: passing arguments to 'sig_bugcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | sig_bugcatch(sigbug); | ^ qmail-queue.c:176:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 176 | alarm(DEATH); | ^ qmail-queue.c:186:6: warning: call to undeclared function 'link'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | if (link(pidfn,messfn) == -1) die(64); | ^ qmail-queue.c:187:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | if (unlink(pidfn) == -1) die(63); | ^ qmail-queue.c:190:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | substdio_fdbuf(&ssout,write,messfd,outbuf,sizeof(outbuf)); | ^ qmail-queue.c:191:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | substdio_fdbuf(&ssin,read,0,inbuf,sizeof(inbuf)); | ^ qmail-queue.c:193:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | if (substdio_bput(&ssout,received,receivedlen) == -1) die_write(); | ^ qmail-queue.c:195:22: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | switch(substdio_copy(&ssout,&ssin)) | ^ qmail-queue.c:201:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | if (substdio_flush(&ssout) == -1) die_write(); | ^ qmail-queue.c:202:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 202 | if (fsync(messfd) == -1) die_write(); | ^ qmail-queue.c:204:20: warning: passing arguments to 'open_excl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | intdfd = open_excl(intdfn); | ^ qmail-queue.c:208:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | substdio_fdbuf(&ssout,write,intdfd,outbuf,sizeof(outbuf)); | ^ qmail-queue.c:209:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | substdio_fdbuf(&ssin,read,1,inbuf,sizeof(inbuf)); | ^ qmail-queue.c:211:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | if (substdio_bput(&ssout,"u",1) == -1) die_write(); | ^ qmail-queue.c:212:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | if (substdio_bput(&ssout,tmp,fmt_ulong(tmp,uid)) == -1) die_write(); | ^ qmail-queue.c:212:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | if (substdio_bput(&ssout,tmp,fmt_ulong(tmp,uid)) == -1) die_write(); | ^ qmail-queue.c:213:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | if (substdio_bput(&ssout,"",1) == -1) die_write(); | ^ qmail-queue.c:215:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | if (substdio_bput(&ssout,"p",1) == -1) die_write(); | ^ qmail-queue.c:216:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | if (substdio_bput(&ssout,tmp,fmt_ulong(tmp,mypid)) == -1) die_write(); | ^ qmail-queue.c:216:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | if (substdio_bput(&ssout,tmp,fmt_ulong(tmp,mypid)) == -1) die_write(); | ^ qmail-queue.c:217:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | if (substdio_bput(&ssout,"",1) == -1) die_write(); | ^ qmail-queue.c:219:18: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | if (substdio_get(&ssin,&ch,1) < 1) die_read(); | ^ qmail-queue.c:221:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | if (substdio_bput(&ssout,&ch,1) == -1) die_write(); | ^ qmail-queue.c:224:20: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | if (substdio_get(&ssin,&ch,1) < 1) die_read(); | ^ qmail-queue.c:225:20: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if (substdio_put(&ssout,&ch,1) == -1) die_write(); | ^ qmail-queue.c:230:19: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | if (substdio_bput(&ssout,QUEUE_EXTRA,QUEUE_EXTRALEN) == -1) die_write(); | ^ qmail-queue.c:234:20: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | if (substdio_get(&ssin,&ch,1) < 1) die_read(); | ^ qmail-queue.c:237:21: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | if (substdio_bput(&ssout,&ch,1) == -1) die_write(); | ^ qmail-queue.c:240:22: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | if (substdio_get(&ssin,&ch,1) < 1) die_read(); | ^ qmail-queue.c:241:23: warning: passing arguments to 'substdio_bput' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | if (substdio_bput(&ssout,&ch,1) == -1) die_write(); | ^ qmail-queue.c:247:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | if (substdio_flush(&ssout) == -1) die_write(); | ^ 66 warnings generated. ./compile triggerpull.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] triggerpull.c:9:17: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | fd = open_write("lock/trigger"); | ^ triggerpull.c:12:13: warning: passing arguments to 'ndelay_on' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | ndelay_on(fd); | ^ triggerpull.c:13:4: warning: call to undeclared function 'write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 13 | write(fd,"",1); /* if it fails, bummer */ | ^ triggerpull.c:14:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | close(fd); | ^ 4 warnings generated. ./load qmail-queue triggerpull.o fmtqfn.o now.o date822fmt.o datetime.a seek.a ndelay.a open.a sig.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o auto_uids.o ./compile qmail-inject.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-inject.c:57:27: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | { if (flagqueue) qmail_put(&qqt,s,len); else substdio_put(subfdout,s,len); } | ^ qmail-inject.c:57:58: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | { if (flagqueue) qmail_put(&qqt,s,len); else substdio_put(subfdout,s,len); } | ^ qmail-inject.c:56:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | void put(s,len) char *s; int len; | ^ qmail-inject.c:58:38: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | void puts(s) char *s; { put(s,str_len(s)); } | ^ qmail-inject.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | void puts(s) char *s; { put(s,str_len(s)); } | ^ qmail-inject.c:63:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | substdio_putsflush(subfderr,"qmail-inject: fatal: out of memory\n"); temp(); } | ^ qmail-inject.c:65:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | substdio_putsflush(subfderr,"qmail-inject: fatal: invalid header field: "); | ^ qmail-inject.c:66:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | substdio_putflush(subfderr,sa->s,sa->len); perm(); } | ^ qmail-inject.c:64:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | void die_invalid(sa) stralloc *sa; { | ^ qmail-inject.c:68:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | substdio_putsflush(subfderr,"qmail-inject: fatal: unable to run qmail-queue\n"); temp(); } | ^ qmail-inject.c:70:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | substdio_putsflush(subfderr,"qmail-inject: fatal: internal bug\n"); temp(); } | ^ qmail-inject.c:73:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | substdio_putsflush(subfderr,"qmail-inject: fatal: read error\n"); temp(); } | ^ qmail-inject.c:76:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_putsflush(subfderr,"qmail-inject: fatal: unable to parse this line:\n"); | ^ qmail-inject.c:77:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_putflush(subfderr,sa->s,sa->len); perm(); } | ^ qmail-inject.c:74:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | void doordie(sa,r) stralloc *sa; int r; { | ^ qmail-inject.c:80:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | GEN_ALLOC_readyplus(saa,stralloc,sa,len,a,i,n,x,10,saa_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ qmail-inject.c:80:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ qmail-inject.c:80:52: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | GEN_ALLOC_readyplus(saa,stralloc,sa,len,a,i,n,x,10,saa_readyplus) | ^ qmail-inject.c:95:32: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (!flagqueue) substdio_flush(subfdout); | ^ qmail-inject.c:101:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | if (!stralloc_0(&sender)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:102:14: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | qmail_from(&qqt,sender.s); | ^ qmail-inject.c:106:11: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (!stralloc_0(&reciplist.sa[i])) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:107:14: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | qmail_to(&qqt,reciplist.sa[i].s); | ^ qmail-inject.c:113:15: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (!stralloc_0(&hrrlist.sa[i])) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:114:11: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | qmail_to(&qqt,hrrlist.sa[i].s); | ^ qmail-inject.c:119:15: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | if (!stralloc_0(&hrlist.sa[i])) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:120:11: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | qmail_to(&qqt,hrlist.sa[i].s); | ^ qmail-inject.c:116:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 116 | else | ^ qmail-inject.c:123:21: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | qqx = qmail_close(&qqt); | ^ qmail-inject.c:126:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | substdio_puts(subfderr,"qmail-inject: fatal: "); | ^ qmail-inject.c:127:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | substdio_puts(subfderr,qqx + 1); | ^ qmail-inject.c:128:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | substdio_puts(subfderr,"\n"); | ^ qmail-inject.c:129:22: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | substdio_flush(subfderr); | ^ qmail-inject.c:133:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | substdio_puts(subfderr,"qmail-inject: fatal: "); | ^ qmail-inject.c:134:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | substdio_puts(subfderr,qqx + 1); | ^ qmail-inject.c:135:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | substdio_puts(subfderr,"\n"); | ^ qmail-inject.c:136:22: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | substdio_flush(subfderr); | ^ qmail-inject.c:132:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 132 | else { | ^ qmail-inject.c:149:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | if (!stralloc_copy(savedh.sa + savedh.len,h)) die_nomem(); | ^ qmail-inject.c:144:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | void savedh_append(h) | ^ qmail-inject.c:168:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | void rwroute(addr) | ^ qmail-inject.c:177:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | void rwextraat(addr) | ^ qmail-inject.c:189:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | void rwextradot(addr) | ^ qmail-inject.c:211:25: warning: passing arguments to 'token822_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | if (!token822_readyplus(addr,shift)) die_nomem(); | ^ qmail-inject.c:201:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | void rwnoat(addr) | ^ qmail-inject.c:239:25: warning: passing arguments to 'token822_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | if (!token822_readyplus(addr,shift)) die_nomem(); | ^ qmail-inject.c:219:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | void rwnodot(addr) | ^ qmail-inject.c:260:25: warning: passing arguments to 'token822_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | if (!token822_readyplus(addr,shift)) die_nomem(); | ^ qmail-inject.c:247:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | void rwplus(addr) | ^ qmail-inject.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | void rwgeneric(addr) | ^ qmail-inject.c:293:20: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | token822_reverse(addr); | ^ qmail-inject.c:294:24: warning: passing arguments to 'token822_unquote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | if (token822_unquote(&sender,addr) != 1) die_nomem(); | ^ qmail-inject.c:296:24: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | if (!stralloc_cats(&sender,"-@[]")) die_nomem(); | ^ qmail-inject.c:297:20: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | token822_reverse(addr); | ^ qmail-inject.c:288:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | int setreturn(addr) | ^ qmail-inject.c:302:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | int rwreturn(addr) | ^ qmail-inject.c:310:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | int rwsender(addr) | ^ qmail-inject.c:321:18: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | token822_reverse(addr); | ^ qmail-inject.c:324:22: warning: passing arguments to 'token822_unquote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | if (token822_unquote(&xl->sa[xl->len],addr) != 1) die_nomem(); | ^ qmail-inject.c:326:18: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | token822_reverse(addr); | ^ qmail-inject.c:317:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | void rwappend(addr,xl) | ^ qmail-inject.c:329:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 329 | int rwhrr(addr) token822_alloc *addr; | ^ qmail-inject.c:331:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | int rwhr(addr) token822_alloc *addr; | ^ qmail-inject.c:333:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | int rwtocc(addr) token822_alloc *addr; | ^ qmail-inject.c:348:23: warning: passing arguments to 'hfield_known' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 348 | htype = hfield_known(h->s,h->len); | ^ qmail-inject.c:356:22: warning: passing arguments to 'hfield_valid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | if (!hfield_valid(h->s,h->len)) | ^ qmail-inject.c:375:29: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | doordie(h,token822_parse(&hfin,h,&hfbuf)); | ^ qmail-inject.c:376:32: warning: passing arguments to 'token822_addrlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | doordie(h,token822_addrlist(&hfrewrite,&hfaddr,&hfin,rw)); | ^ qmail-inject.c:377:25: warning: passing arguments to 'token822_unparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | if (token822_unparse(h,&hfrewrite,LINELEN) != 1) | ^ qmail-inject.c:342:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | void doheaderfield(h) | ^ qmail-inject.c:388:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | void dobody(h) | ^ qmail-inject.c:400:13: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | if (!quote2(&torecip,s)) die_nomem(); | ^ qmail-inject.c:401:23: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | switch(token822_parse(&tr,&torecip,&hfbuf)) | ^ qmail-inject.c:405:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | substdio_puts(subfderr,"qmail-inject: fatal: unable to parse address: "); | ^ qmail-inject.c:406:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | substdio_puts(subfderr,s); | ^ qmail-inject.c:407:24: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | substdio_putsflush(subfderr,"\n"); | ^ qmail-inject.c:410:18: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 410 | token822_reverse(&tr); | ^ qmail-inject.c:397:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | void dorecip(s) | ^ qmail-inject.c:421:20: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | fullname = env_get("QMAILNAME"); | ^ qmail-inject.c:422:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | if (!fullname) fullname = env_get("MAILNAME"); | ^ qmail-inject.c:423:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 423 | if (!fullname) fullname = env_get("NAME"); | ^ qmail-inject.c:424:21: warning: passing arguments to 'token822_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | if (!token822_ready(&df,20)) die_nomem(); | ^ qmail-inject.c:436:31: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | df.t[df.len].slen = str_len(fullname); | ^ qmail-inject.c:443:29: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | df.t[df.len].slen = str_len(mailuser); | ^ qmail-inject.c:451:31: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | df.t[df.len].slen = str_len(mailhost); | ^ qmail-inject.c:463:31: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | df.t[df.len].slen = str_len(fullname); | ^ qmail-inject.c:466:22: warning: passing arguments to 'token822_unparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | if (token822_unparse(&defaultfrom,&df,LINELEN) != 1) die_nomem(); | ^ qmail-inject.c:467:37: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | doordie(&defaultfrom,token822_parse(&df,&defaultfrom,&hfbuf)); | ^ qmail-inject.c:468:40: warning: passing arguments to 'token822_addrlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 468 | doordie(&defaultfrom,token822_addrlist(&hfrewrite,&hfaddr,&df,rwsender)); | ^ qmail-inject.c:469:22: warning: passing arguments to 'token822_unparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 469 | if (token822_unparse(&defaultfrom,&hfrewrite,LINELEN) != 1) die_nomem(); | ^ qmail-inject.c:479:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 479 | if (!stralloc_copys(&hackedruser,mailruser)) die_nomem(); | ^ qmail-inject.c:482:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | if (!stralloc_cats(&hackedruser,"-")) die_nomem(); | ^ qmail-inject.c:483:52: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) starttime))) die_nomem(); | ^ qmail-inject.c:483:22: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) starttime))) die_nomem(); | ^ qmail-inject.c:484:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 484 | if (!stralloc_cats(&hackedruser,".")) die_nomem(); | ^ qmail-inject.c:485:76: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 485 | if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) getpid()))) die_nomem(); | ^ qmail-inject.c:485:52: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) getpid()))) die_nomem(); | ^ qmail-inject.c:485:22: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) getpid()))) die_nomem(); | ^ qmail-inject.c:488:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | if (!stralloc_cats(&hackedruser,"-")) die_nomem(); | ^ qmail-inject.c:489:21: warning: passing arguments to 'token822_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | if (!token822_ready(&drp,10)) die_nomem(); | ^ qmail-inject.c:507:33: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | drp.t[drp.len].slen = str_len(mailrhost); | ^ qmail-inject.c:510:22: warning: passing arguments to 'token822_unparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | if (token822_unparse(&defaultreturnpath,&drp,LINELEN) != 1) die_nomem(); | ^ qmail-inject.c:511:43: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | doordie(&defaultreturnpath,token822_parse(&drp,&defaultreturnpath,&hfbuf)); | ^ qmail-inject.c:513:22: warning: passing arguments to 'token822_addrlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 513 | ,token822_addrlist(&hfrewrite,&hfaddr,&drp,rwreturn)); | ^ qmail-inject.c:514:22: warning: passing arguments to 'token822_unparse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | if (token822_unparse(&defaultreturnpath,&hfrewrite,LINELEN) != 1) die_nomem(); | ^ qmail-inject.c:526:14: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 526 | x = env_get("QMAILMFTFILE"); | ^ qmail-inject.c:529:23: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 529 | r = control_readfile(&mft,x,0); | ^ qmail-inject.c:533:21: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 533 | if (!constmap_init(&mapmft,mft.s,mft.len,0)) die_nomem(); | ^ qmail-inject.c:547:17: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 547 | if (constmap(&mapmft,tocclist.sa[i].s,tocclist.sa[i].len)) | ^ qmail-inject.c:555:23: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | if (!stralloc_copy(&sa,&tocclist.sa[i])) die_nomem(); | ^ qmail-inject.c:556:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | if (!stralloc_0(&sa)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:557:16: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 557 | if (!quote2(&sa2,sa.s)) die_nomem(); | ^ qmail-inject.c:579:22: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | if (!stralloc_copy(&sa,&sender)) die_nomem(); | ^ qmail-inject.c:580:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 580 | if (!stralloc_0(&sa)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-inject.c:581:15: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | if (!quote2(&sa2,sa.s)) die_nomem(); | ^ qmail-inject.c:590:18: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | if (qmail_open(&qqt) == -1) die_qqt(); | ^ qmail-inject.c:596:28: warning: passing arguments to 'newfield_datemake' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | if (!newfield_datemake(starttime)) die_nomem(); | ^ qmail-inject.c:602:29: warning: passing arguments to 'newfield_msgidmake' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | if (!newfield_msgidmake(control_idhost.s,control_idhost.len,starttime)) die_nomem(); | ^ qmail-inject.c:619:28: warning: passing arguments to 'newfield_datemake' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 619 | if (!newfield_datemake(starttime)) die_nomem(); | ^ qmail-inject.c:624:29: warning: passing arguments to 'newfield_msgidmake' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | if (!newfield_msgidmake(control_idhost.s,control_idhost.len,starttime)) die_nomem(); | ^ qmail-inject.c:647:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 647 | if (chdir(auto_qmail) == -1) die_chdir(); | ^ qmail-inject.c:650:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 650 | if (control_rldef(&control_defaultdomain,"control/defaultdomain",1,"defaultdomain") != 1) | ^ qmail-inject.c:652:13: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | x = env_get("QMAILDEFAULTDOMAIN"); | ^ qmail-inject.c:653:28: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | if (x) if (!stralloc_copys(&control_defaultdomain,x)) die_nomem(); | ^ qmail-inject.c:654:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 654 | if (!stralloc_copys(&sa,".")) die_nomem(); | ^ qmail-inject.c:655:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 655 | if (!stralloc_cat(&sa,&control_defaultdomain)) die_nomem(); | ^ qmail-inject.c:656:28: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 656 | doordie(&sa,token822_parse(&defaultdomain,&sa,&defaultdomainbuf)); | ^ qmail-inject.c:658:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 658 | if (control_rldef(&control_defaulthost,"control/defaulthost",1,"defaulthost") != 1) | ^ qmail-inject.c:660:13: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 660 | x = env_get("QMAILDEFAULTHOST"); | ^ qmail-inject.c:661:28: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 661 | if (x) if (!stralloc_copys(&control_defaulthost,x)) die_nomem(); | ^ qmail-inject.c:662:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 662 | if (!stralloc_copys(&sa,"@")) die_nomem(); | ^ qmail-inject.c:663:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 663 | if (!stralloc_cat(&sa,&control_defaulthost)) die_nomem(); | ^ qmail-inject.c:664:28: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 664 | doordie(&sa,token822_parse(&defaulthost,&sa,&defaulthostbuf)); | ^ qmail-inject.c:666:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | if (control_rldef(&control_plusdomain,"control/plusdomain",1,"plusdomain") != 1) | ^ qmail-inject.c:668:13: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 668 | x = env_get("QMAILPLUSDOMAIN"); | ^ qmail-inject.c:669:28: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | if (x) if (!stralloc_copys(&control_plusdomain,x)) die_nomem(); | ^ qmail-inject.c:670:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 670 | if (!stralloc_copys(&sa,".")) die_nomem(); | ^ qmail-inject.c:671:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | if (!stralloc_cat(&sa,&control_plusdomain)) die_nomem(); | ^ qmail-inject.c:672:28: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 672 | doordie(&sa,token822_parse(&plusdomain,&sa,&plusdomainbuf)); | ^ qmail-inject.c:674:19: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 674 | if (control_rldef(&control_idhost,"control/idhost",1,"idhost") != 1) | ^ qmail-inject.c:676:13: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 676 | x = env_get("QMAILIDHOST"); | ^ qmail-inject.c:677:28: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 677 | if (x) if (!stralloc_copys(&control_idhost,x)) die_nomem(); | ^ qmail-inject.c:697:18: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 697 | qmopts = env_get("QMAILINJECT"); | ^ qmail-inject.c:710:20: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 710 | mailhost = env_get("QMAILHOST"); | ^ qmail-inject.c:711:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 711 | if (!mailhost) mailhost = env_get("MAILHOST"); | ^ qmail-inject.c:712:21: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 712 | mailrhost = env_get("QMAILSHOST"); | ^ qmail-inject.c:715:20: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | mailuser = env_get("QMAILUSER"); | ^ qmail-inject.c:716:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 716 | if (!mailuser) mailuser = env_get("MAILUSER"); | ^ qmail-inject.c:717:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | if (!mailuser) mailuser = env_get("USER"); | ^ qmail-inject.c:718:35: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 718 | if (!mailuser) mailuser = env_get("LOGNAME"); | ^ qmail-inject.c:721:33: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | if (quote_need(mailuser,str_len(mailuser))) mailusertokentype = TOKEN822_QUOTE; | ^ qmail-inject.c:721:16: warning: passing arguments to 'quote_need' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 721 | if (quote_need(mailuser,str_len(mailuser))) mailusertokentype = TOKEN822_QUOTE; | ^ qmail-inject.c:722:21: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 722 | mailruser = env_get("QMAILSUSER"); | ^ qmail-inject.c:737:22: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 737 | while ((opt = getopt(argc,argv,"aAhHnNf:")) != opteof) | ^ qmail-inject.c:747:19: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 747 | if (!quote2(&sender,optarg)) die_nomem(); | ^ qmail-inject.c:748:38: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 748 | doordie(&sender,token822_parse(&envs,&sender,&envsbuf)); | ^ qmail-inject.c:749:24: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 749 | token822_reverse(&envs); | ^ qmail-inject.c:751:24: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | token822_reverse(&envs); | ^ qmail-inject.c:752:28: warning: passing arguments to 'token822_unquote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 752 | if (token822_unquote(&sender,&envs) != 1) die_nomem(); | ^ qmail-inject.c:770:16: warning: passing arguments to 'headerbody' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 770 | if (headerbody(subfdin,doheaderfield,finishheader,dobody) == -1) | ^ qmail-inject.c:685:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 685 | int main(argc,argv) | ^ 161 warnings generated. ./compile headerbody.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] headerbody.c:13:11: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (getln(ss,sa,match,'\n') == -1) return -1; | ^ headerbody.c:16:22: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | if (!stralloc_append(sa,"\n")) return -1; | ^ headerbody.c:7:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | static int getsa(ss,sa,match) | ^ headerbody.c:40:28: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (flaglineok) dohf(&line); | ^ headerbody.c:49:25: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (!stralloc_cat(&line,&nextline)) return -1; | ^ headerbody.c:52:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | dohf(&line); | ^ headerbody.c:57:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | dobl(&nextline); | ^ headerbody.c:60:23: warning: passing arguments to 'stralloc_starts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | if (stralloc_starts(&nextline,"From ")) | ^ headerbody.c:62:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (!stralloc_copys(&line,"MBOX-Line: ")) return -1; | ^ headerbody.c:63:23: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (!stralloc_cat(&line,&nextline)) return -1; | ^ headerbody.c:66:22: warning: passing arguments to 'hfield_valid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (hfield_valid(nextline.s,nextline.len)) | ^ headerbody.c:68:26: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | if (!stralloc_copy(&line,&nextline)) return -1; | ^ headerbody.c:73:27: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if (!stralloc_copys(&line,"\n")) return -1; | ^ headerbody.c:74:12: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | dobl(&line); | ^ headerbody.c:75:12: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | dobl(&nextline); | ^ headerbody.c:85:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | case 1: dobl(&nextline); | ^ headerbody.c:23:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | int headerbody(ss,dohf,hdone,dobl) | ^ In file included from headerbody.c:5: ./headerbody.h:4:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern int headerbody(); | ^ 18 warnings generated. ./compile hfield.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] hfield.c:44:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 44 | for (i = 0;ch = t[i];++i) | ~~~^~~~~~ hfield.c:44:16: note: place parentheses around the assignment to silence this warning 44 | for (i = 0;ch = t[i];++i) | ^ | ( ) hfield.c:44:16: note: use '==' to turn this assignment into an equality comparison 44 | for (i = 0;ch = t[i];++i) | ^ | == hfield.c:36:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | static int hmatch(s,len,t) | ^ hfield.c:70:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 70 | for (i = 1;t = hname[i];++i) | ~~^~~~~~~~~~ hfield.c:70:15: note: place parentheses around the assignment to silence this warning 70 | for (i = 1;t = hname[i];++i) | ^ | ( ) hfield.c:70:15: note: use '==' to turn this assignment into an equality comparison 70 | for (i = 1;t = hname[i];++i) | ^ | == hfield.c:63:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | int hfield_known(s,len) | ^ In file included from hfield.c:1: ./hfield.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int hfield_known(); | ^ hfield.c:76:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | int hfield_valid(s,len) | ^ In file included from hfield.c:1: ./hfield.h:6:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 6 | extern int hfield_valid(); | ^ hfield.c:106:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | unsigned int hfield_skipname(s,len) | ^ In file included from hfield.c:1: ./hfield.h:4:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern unsigned int hfield_skipname(); | ^ 9 warnings generated. ./compile token822.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] token822.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void token822_reverse(ta) | ^ In file included from token822.c:4: ./token822.h:20:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 20 | extern void token822_reverse(); | ^ token822.c:25:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | GEN_ALLOC_ready(token822_alloc,struct token822,t,len,a,i,n,x,30,token822_ready) | ^ ./gen_allocdefs.h:11:19: note: expanded from macro 'GEN_ALLOC_ready' 11 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ token822.c:25:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:15:38: note: expanded from macro 'GEN_ALLOC_ready' 15 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ token822.c:25:65: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | GEN_ALLOC_ready(token822_alloc,struct token822,t,len,a,i,n,x,30,token822_ready) | ^ In file included from token822.c:4: ./token822.h:21:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 21 | extern int token822_ready(); | ^ token822.c:26:1: warning: passing arguments to 'alloc_re' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | GEN_ALLOC_readyplus(token822_alloc,struct token822,t,len,a,i,n,x,30,token822_readyplus) | ^ ./gen_allocdefs.h:24:19: note: expanded from macro 'GEN_ALLOC_readyplus' 24 | if (alloc_re(&x->field,i * sizeof(type),x->a * sizeof(type))) return 1; \ | ^ token822.c:26:1: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] ./gen_allocdefs.h:28:38: note: expanded from macro 'GEN_ALLOC_readyplus' 28 | return !!(x->field = (type *) alloc((x->a = n) * sizeof(type))); } | ^ token822.c:26:69: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | GEN_ALLOC_readyplus(token822_alloc,struct token822,t,len,a,i,n,x,30,token822_readyplus) | ^ In file included from token822.c:4: ./token822.h:22:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 22 | extern int token822_readyplus(); | ^ token822.c:27:85: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | GEN_ALLOC_append(token822_alloc,struct token822,t,len,a,i,n,x,30,token822_readyplus,token822_append) | ^ In file included from token822.c:4: ./token822.h:23:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 23 | extern int token822_append(); | ^ token822.c:29:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | static int needspace(t1,t2) | ^ token822.c:51:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | static int atomok(ch) | ^ token822.c:65:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | static void atomcheck(t) | ^ token822.c:127:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | if (!stralloc_ready(sa,len)) | ^ token822.c:81:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | int token822_unparse(sa,ta,linelen) | ^ In file included from token822.c:4: ./token822.h:18:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 18 | extern int token822_unparse(); | ^ token822.c:208:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | if (!stralloc_ready(sa,len)) | ^ token822.c:182:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | int token822_unquote(sa,ta) | ^ In file included from token822.c:4: ./token822.h:17:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 17 | extern int token822_unquote(); | ^ token822.c:321:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | if (!stralloc_ready(buf,numchars)) | ^ token822.c:238:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | int token822_parse(ta,sa,buf) | ^ In file included from token822.c:4: ./token822.h:15:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 15 | extern int token822_parse(); | ^ token822.c:408:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 408 | if (callback(taaddr) != 1) | ^ token822.c:401:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 401 | static int gotaddr(taout,taaddr,callback) | ^ token822.c:421:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | int token822_addrlist(taout,taaddr,ta,callback) | ^ In file included from token822.c:4: ./token822.h:16:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 16 | extern int token822_addrlist(); | ^ 28 warnings generated. ./load qmail-inject headerbody.o hfield.o newfield.o quote.o now.o control.o date822fmt.o constmap.o qmail.o case.a fd.a wait.a open.a getln.a sig.a getopt.a datetime.a token822.o env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o ./compile predate.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] predate.c:38:3: warning: call to undeclared function 'sig_pipeignore'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 38 | sig_pipeignore(); | ^ predate.c:41:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | strerr_die1x(100,"predate: usage: predate child"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ predate.c:43:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | if (pipe(pi) == -1) | ^ predate.c:44:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | strerr_die2sys(111,FATAL,"unable to create pipe: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ predate.c:48:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ predate.c:50:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | close(pi[1]); | ^ predate.c:51:18: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | if (fd_move(0,pi[0]) == -1) | ^ predate.c:52:2: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | strerr_die2sys(111,FATAL,"unable to set up fds: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ predate.c:53:7: warning: call to undeclared function 'sig_pipedefault'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | sig_pipedefault(); | ^ predate.c:54:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | execvp(argv[1],argv + 1); | ^ predate.c:55:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | strerr_die4sys(111,FATAL,"unable to run ",argv[1],": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ predate.c:57:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | close(pi[0]); | ^ predate.c:58:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | substdio_fdbuf(&ss,write,pi[1],outbuf,sizeof(outbuf)); | ^ predate.c:69:23: warning: passing arguments to 'datetime_untai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | utc = datetime_untai(&dt); /* utc == now, if gmtime ignores leap seconds */ | ^ predate.c:78:25: warning: passing arguments to 'datetime_untai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | local = datetime_untai(&dt); | ^ predate.c:80:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | substdio_puts(&ss,"Date: "); | ^ predate.c:81:32: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | substdio_put(&ss,num,fmt_uint(num,dt.mday)); | ^ predate.c:81:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | substdio_put(&ss,num,fmt_uint(num,dt.mday)); | ^ predate.c:82:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | substdio_puts(&ss," "); | ^ predate.c:83:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | substdio_puts(&ss,montab[dt.mon]); | ^ predate.c:84:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | substdio_puts(&ss," "); | ^ predate.c:85:32: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | substdio_put(&ss,num,fmt_uint(num,dt.year + 1900)); | ^ predate.c:85:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | substdio_put(&ss,num,fmt_uint(num,dt.year + 1900)); | ^ predate.c:86:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | substdio_puts(&ss," "); | ^ predate.c:87:33: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | substdio_put(&ss,num,fmt_uint0(num,dt.hour,2)); | ^ predate.c:87:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | substdio_put(&ss,num,fmt_uint0(num,dt.hour,2)); | ^ predate.c:88:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | substdio_puts(&ss,":"); | ^ predate.c:89:33: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | substdio_put(&ss,num,fmt_uint0(num,dt.min,2)); | ^ predate.c:89:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | substdio_put(&ss,num,fmt_uint0(num,dt.min,2)); | ^ predate.c:90:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | substdio_puts(&ss,":"); | ^ predate.c:91:33: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | substdio_put(&ss,num,fmt_uint0(num,dt.sec,2)); | ^ predate.c:91:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | substdio_put(&ss,num,fmt_uint0(num,dt.sec,2)); | ^ predate.c:95:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | substdio_puts(&ss," -"); | ^ predate.c:96:35: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | substdio_put(&ss,num,fmt_uint0(num,minutes / 60,2)); | ^ predate.c:96:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | substdio_put(&ss,num,fmt_uint0(num,minutes / 60,2)); | ^ predate.c:97:35: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | substdio_put(&ss,num,fmt_uint0(num,minutes % 60,2)); | ^ predate.c:97:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | substdio_put(&ss,num,fmt_uint0(num,minutes % 60,2)); | ^ predate.c:101:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | substdio_puts(&ss," +"); | ^ predate.c:102:35: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | substdio_put(&ss,num,fmt_uint0(num,minutes / 60,2)); | ^ predate.c:102:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | substdio_put(&ss,num,fmt_uint0(num,minutes / 60,2)); | ^ predate.c:103:35: warning: passing arguments to 'fmt_uint0' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | substdio_put(&ss,num,fmt_uint0(num,minutes % 60,2)); | ^ predate.c:103:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | substdio_put(&ss,num,fmt_uint0(num,minutes % 60,2)); | ^ predate.c:106:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | substdio_puts(&ss,"\n"); | ^ predate.c:107:16: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | substdio_copy(&ss,subfdin); | ^ predate.c:108:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | substdio_flush(&ss); | ^ predate.c:111:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (wait_pid(&wstat,pid) == -1) | ^ predate.c:112:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | strerr_die2sys(111,FATAL,"wait failed: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ predate.c:114:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | strerr_die2x(111,FATAL,"child crashed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ predate.c:23:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | int main(argc,argv) | ^ 49 warnings generated. ./load predate datetime.a strerr.a sig.a fd.a wait.a substdio.a error.a str.a fs.a cat warn-auto.sh datemail.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > datemail chmod 755 datemail cat warn-auto.sh mailsubj.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > mailsubj chmod 755 mailsubj cat warn-auto.sh qmail-upq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qmail-upq chmod 755 qmail-upq ./compile qmail-showctl.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-showctl.c:34:17: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | substdio_put(subfdout,&ch,1); | ^ qmail-showctl.c:25:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | void safeput(buf,len) | ^ qmail-showctl.c:47:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:48:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | substdio_puts(subfdout,fn); | ^ qmail-showctl.c:49:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | substdio_puts(subfdout,": "); | ^ qmail-showctl.c:50:25: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | switch(control_readint(&i,fn)) { | ^ qmail-showctl.c:52:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | substdio_puts(subfdout,"(Default.) "); | ^ qmail-showctl.c:53:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | substdio_puts(subfdout,pre); | ^ qmail-showctl.c:54:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | substdio_puts(subfdout,def); | ^ qmail-showctl.c:55:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | substdio_puts(subfdout,post); | ^ qmail-showctl.c:56:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:60:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | substdio_puts(subfdout,pre); | ^ qmail-showctl.c:61:41: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | substdio_put(subfdout,num,fmt_uint(num,i)); | ^ qmail-showctl.c:61:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | substdio_put(subfdout,num,fmt_uint(num,i)); | ^ qmail-showctl.c:62:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | substdio_puts(subfdout,post); | ^ qmail-showctl.c:63:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:66:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | substdio_puts(subfdout,"Oops! Trouble reading this file.\n"); | ^ qmail-showctl.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | void do_int(fn,def,pre,post) | ^ qmail-showctl.c:77:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:78:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_puts(subfdout,fn); | ^ qmail-showctl.c:79:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | substdio_puts(subfdout,": "); | ^ qmail-showctl.c:80:26: warning: passing arguments to 'control_readline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | switch(control_readline(&line,fn)) { | ^ qmail-showctl.c:82:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | substdio_puts(subfdout,"(Default.) "); | ^ qmail-showctl.c:83:26: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (!stralloc_copys(&line,def)) { | ^ qmail-showctl.c:84:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | substdio_puts(subfdout,"Oops! Out of memory.\n"); | ^ qmail-showctl.c:88:20: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (!stralloc_copy(&line,&me)) { | ^ qmail-showctl.c:89:17: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | substdio_puts(subfdout,"Oops! Out of memory.\n"); | ^ qmail-showctl.c:93:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | substdio_puts(subfdout,pre); | ^ qmail-showctl.c:95:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:98:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | substdio_puts(subfdout,"Oops! Trouble reading this file.\n"); | ^ qmail-showctl.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | void do_str(fn,flagme,def,pre) | ^ qmail-showctl.c:112:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:113:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | substdio_puts(subfdout,fn); | ^ qmail-showctl.c:114:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | substdio_puts(subfdout,": "); | ^ qmail-showctl.c:115:26: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | switch(control_readfile(&line,fn)) { | ^ qmail-showctl.c:117:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | substdio_puts(subfdout,"(Default.) "); | ^ qmail-showctl.c:118:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | substdio_puts(subfdout,def); | ^ qmail-showctl.c:119:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:122:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:126:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | substdio_puts(subfdout,pre); | ^ qmail-showctl.c:128:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | substdio_puts(subfdout,post); | ^ qmail-showctl.c:129:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:134:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | substdio_puts(subfdout,"Oops! Trouble reading this file.\n"); | ^ qmail-showctl.c:103:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | int do_lst(fn,def,pre,post) | ^ qmail-showctl.c:146:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | substdio_puts(subfdout,"qmail home directory: "); | ^ qmail-showctl.c:147:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | substdio_puts(subfdout,auto_qmail); | ^ qmail-showctl.c:148:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:150:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | substdio_puts(subfdout,"user-ext delimiter: "); | ^ qmail-showctl.c:151:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | substdio_puts(subfdout,auto_break); | ^ qmail-showctl.c:152:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:154:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | substdio_puts(subfdout,"paternalism (in decimal): "); | ^ qmail-showctl.c:155:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_patrn)); | ^ qmail-showctl.c:155:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_patrn)); | ^ qmail-showctl.c:156:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:158:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | substdio_puts(subfdout,"silent concurrency limit: "); | ^ qmail-showctl.c:159:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_spawn)); | ^ qmail-showctl.c:159:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_spawn)); | ^ qmail-showctl.c:160:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:162:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | substdio_puts(subfdout,"subdirectory split: "); | ^ qmail-showctl.c:163:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_split)); | ^ qmail-showctl.c:163:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_split)); | ^ qmail-showctl.c:164:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:166:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | substdio_puts(subfdout,"user ids: "); | ^ qmail-showctl.c:167:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uida)); | ^ qmail-showctl.c:167:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uida)); | ^ qmail-showctl.c:168:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:169:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidd)); | ^ qmail-showctl.c:169:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidd)); | ^ qmail-showctl.c:170:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:171:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidl)); | ^ qmail-showctl.c:171:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidl)); | ^ qmail-showctl.c:172:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:173:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uido)); | ^ qmail-showctl.c:173:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uido)); | ^ qmail-showctl.c:174:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 174 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:175:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidp)); | ^ qmail-showctl.c:175:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidp)); | ^ qmail-showctl.c:176:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:177:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidq)); | ^ qmail-showctl.c:177:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidq)); | ^ qmail-showctl.c:178:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:179:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidr)); | ^ qmail-showctl.c:179:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uidr)); | ^ qmail-showctl.c:180:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:181:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uids)); | ^ qmail-showctl.c:181:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_uids)); | ^ qmail-showctl.c:182:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:184:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | substdio_puts(subfdout,"group ids: "); | ^ qmail-showctl.c:185:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_gidn)); | ^ qmail-showctl.c:185:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_gidn)); | ^ qmail-showctl.c:186:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | substdio_puts(subfdout,", "); | ^ qmail-showctl.c:187:38: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_gidq)); | ^ qmail-showctl.c:187:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | substdio_put(subfdout,num,fmt_ulong(num,(unsigned long) auto_gidq)); | ^ qmail-showctl.c:188:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:190:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 190 | if (chdir(auto_qmail) == -1) { | ^ qmail-showctl.c:191:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | substdio_puts(subfdout,"Oops! Unable to chdir to "); | ^ qmail-showctl.c:192:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | substdio_puts(subfdout,auto_qmail); | ^ qmail-showctl.c:193:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | substdio_puts(subfdout,".\n"); | ^ qmail-showctl.c:194:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | substdio_flush(subfdout); | ^ qmail-showctl.c:198:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | substdio_puts(subfdout,"Oops! Unable to chdir to control.\n"); | ^ qmail-showctl.c:199:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | substdio_flush(subfdout); | ^ qmail-showctl.c:205:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | substdio_puts(subfdout,"Oops! Unable to open current directory.\n"); | ^ qmail-showctl.c:206:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | substdio_flush(subfdout); | ^ qmail-showctl.c:210:26: warning: passing arguments to 'control_readline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | meok = control_readline(&me,"me"); | ^ qmail-showctl.c:212:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | substdio_puts(subfdout,"Oops! Trouble reading control/me."); | ^ qmail-showctl.c:213:19: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | substdio_flush(subfdout); | ^ qmail-showctl.c:243:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | substdio_puts(subfdout,"\nmorercpthosts.cdb: "); | ^ qmail-showctl.c:246:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | substdio_puts(subfdout,"(Default.) No effect.\n"); | ^ qmail-showctl.c:248:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | substdio_puts(subfdout,"Oops! morercpthosts.cdb exists but morercpthosts doesn't.\n"); | ^ qmail-showctl.c:251:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | substdio_puts(subfdout,"Oops! morercpthosts exists but morercpthosts.cdb doesn't.\n"); | ^ qmail-showctl.c:254:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | substdio_puts(subfdout,"Oops! morercpthosts.cdb is older than morercpthosts.\n"); | ^ qmail-showctl.c:256:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | substdio_puts(subfdout,"Modified recently enough; hopefully up to date.\n"); | ^ qmail-showctl.c:265:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 265 | while (d = readdir(dir)) { | ~~^~~~~~~~~~~~~~ qmail-showctl.c:265:12: note: place parentheses around the assignment to silence this warning 265 | while (d = readdir(dir)) { | ^ | ( ) qmail-showctl.c:265:12: note: use '==' to turn this assignment into an equality comparison 265 | while (d = readdir(dir)) { | ^ | == qmail-showctl.c:266:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | if (str_equal(d->d_name,".")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:267:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | if (str_equal(d->d_name,"..")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:268:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | if (str_equal(d->d_name,"bouncefrom")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:269:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | if (str_equal(d->d_name,"bouncehost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:270:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | if (str_equal(d->d_name,"badmailfrom")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:271:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | if (str_equal(d->d_name,"bouncefrom")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:272:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | if (str_equal(d->d_name,"bouncehost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:273:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | if (str_equal(d->d_name,"concurrencylocal")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:274:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 274 | if (str_equal(d->d_name,"concurrencyremote")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:275:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | if (str_equal(d->d_name,"databytes")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:276:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 276 | if (str_equal(d->d_name,"defaultdomain")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:277:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 277 | if (str_equal(d->d_name,"defaulthost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:278:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | if (str_equal(d->d_name,"doublebouncehost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:279:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | if (str_equal(d->d_name,"doublebounceto")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:280:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 280 | if (str_equal(d->d_name,"envnoathost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:281:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 281 | if (str_equal(d->d_name,"helohost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:282:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | if (str_equal(d->d_name,"idhost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:283:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | if (str_equal(d->d_name,"localiphost")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:284:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | if (str_equal(d->d_name,"locals")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:285:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | if (str_equal(d->d_name,"me")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:286:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | if (str_equal(d->d_name,"morercpthosts")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:287:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 287 | if (str_equal(d->d_name,"morercpthosts.cdb")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:288:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | if (str_equal(d->d_name,"percenthack")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:289:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | if (str_equal(d->d_name,"plusdomain")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:290:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | if (str_equal(d->d_name,"qmqpservers")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:291:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | if (str_equal(d->d_name,"queuelifetime")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:292:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 292 | if (str_equal(d->d_name,"rcpthosts")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:293:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | if (str_equal(d->d_name,"smtpgreeting")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:294:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | if (str_equal(d->d_name,"smtproutes")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:295:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | if (str_equal(d->d_name,"timeoutconnect")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:296:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | if (str_equal(d->d_name,"timeoutremote")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:297:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | if (str_equal(d->d_name,"timeoutsmtpd")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:298:9: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | if (str_equal(d->d_name,"virtualdomains")) continue; | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-showctl.c:299:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | substdio_puts(subfdout,"\n"); | ^ qmail-showctl.c:300:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | substdio_puts(subfdout,d->d_name); | ^ qmail-showctl.c:301:18: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | substdio_puts(subfdout,": I have no idea what this file does.\n"); | ^ qmail-showctl.c:304:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | substdio_flush(subfdout); | ^ 150 warnings generated. ./load qmail-showctl auto_uids.o control.o open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_break.o auto_patrn.o auto_spawn.o auto_split.o ./compile qmail-newu.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-newu.c:17:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to chdir\n"); | ^ qmail-newu.c:22:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | substdio_putsflush(subfderr,"qmail-newu: fatal: out of memory\n"); | ^ qmail-newu.c:27:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to open users/assign\n"); | ^ qmail-newu.c:32:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to read users/assign\n"); | ^ qmail-newu.c:37:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | substdio_putsflush(subfderr,"qmail-newu: fatal: bad format in users/assign\n"); | ^ qmail-newu.c:42:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to open users/cdb.tmp\n"); | ^ qmail-newu.c:47:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to write users/cdb.tmp\n"); | ^ qmail-newu.c:52:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | substdio_putsflush(subfderr,"qmail-newu: fatal: unable to move users/cdb.tmp to users/cdb\n"); | ^ qmail-newu.c:76:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 76 | umask(033); | ^ qmail-newu.c:77:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 77 | if (chdir(auto_qmail) == -1) die_chdir(); | ^ qmail-newu.c:79:17: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | fd = open_read("users/assign"); | ^ qmail-newu.c:82:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | substdio_fdbuf(&ssin,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-newu.c:84:22: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | fdtemp = open_trunc("users/cdb.tmp"); | ^ qmail-newu.c:87:7: warning: call to undeclared function 'cdbmss_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | if (cdbmss_start(&cdbmss,fdtemp) == -1) die_writet(); | ^ qmail-newu.c:89:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | if (!stralloc_copys(&wildchars,"")) die_nomem(); | ^ qmail-newu.c:92:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | if (getln(&ssin,&line,&match,'\n') != 0) die_reada(); | ^ qmail-newu.c:96:9: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 96 | if (byte_chr(line.s,line.len,'\0') < line.len) die_format(); | ^ qmail-newu.c:100:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (!stralloc_copys(&key,"!")) die_nomem(); | ^ qmail-newu.c:102:25: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | if (!stralloc_catb(&key,line.s + 1,i - 1)) die_nomem(); | ^ qmail-newu.c:103:18: warning: passing arguments to 'case_lowerb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | case_lowerb(key.s,key.len); | ^ qmail-newu.c:106:24: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (!stralloc_append(&wildchars,line.s + i - 1)) die_nomem(); | ^ qmail-newu.c:109:25: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (!stralloc_catb(&key,line.s + 1,i - 1)) die_nomem(); | ^ qmail-newu.c:110:12: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (!stralloc_0(&key)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-newu.c:111:18: warning: passing arguments to 'case_lowerb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | case_lowerb(key.s,key.len); | ^ qmail-newu.c:114:24: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | if (!stralloc_copyb(&data,line.s + i + 1,line.len - i - 1)) die_nomem(); | ^ qmail-newu.c:126:9: warning: call to undeclared function 'cdbmss_add'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 126 | if (cdbmss_add(&cdbmss,key.s,key.len,data.s,data.len) == -1) die_writet(); | ^ qmail-newu.c:129:7: warning: call to undeclared function 'cdbmss_add'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | if (cdbmss_add(&cdbmss,"",0,wildchars.s,wildchars.len) == -1) die_writet(); | ^ qmail-newu.c:131:7: warning: call to undeclared function 'cdbmss_finish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | if (cdbmss_finish(&cdbmss) == -1) die_writet(); | ^ qmail-newu.c:132:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | if (fsync(fdtemp) == -1) die_writet(); | ^ qmail-newu.c:133:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | if (close(fdtemp) == -1) die_writet(); /* NFS stupidity */ | ^ qmail-newu.c:134:7: warning: call to undeclared function 'rename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 134 | if (rename("users/cdb.tmp","users/cdb") == -1) die_rename(); | ^ 31 warnings generated. ./compile cdbmss.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdbmss.c:10:15: warning: passing arguments to 'cdbmake_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | cdbmake_init(&c->cdbm); | ^ cdbmss.c:13:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | substdio_fdbuf(&c->ss,write,fd,c->ssbuf,sizeof(c->ssbuf)); | ^ cdbmss.c:14:18: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | return seek_set(fd,(seek_pos) c->pos); | ^ cdbmss.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int cdbmss_start(c,fd) | ^ cdbmss.c:27:15: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | cdbmake_pack(c->packbuf,(uint32) keylen); | ^ cdbmss.c:28:15: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | cdbmake_pack(c->packbuf + 4,(uint32) datalen); | ^ cdbmss.c:29:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | if (substdio_put(&c->ss,c->packbuf,8) == -1) return -1; | ^ cdbmss.c:30:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | if (substdio_put(&c->ss,key,keylen) == -1) return -1; | ^ cdbmss.c:31:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | if (substdio_put(&c->ss,data,datalen) == -1) return -1; | ^ cdbmss.c:35:24: warning: passing arguments to 'cdbmake_hashadd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | h = cdbmake_hashadd(h,(unsigned int) key[i]); | ^ cdbmss.c:37:19: warning: passing arguments to 'cdbmake_add' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | if (!cdbmake_add(&c->cdbm,h,c->pos,alloc)) return -1; | ^ cdbmss.c:17:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | int cdbmss_add(c,key,keylen,data,datalen) | ^ cdbmss.c:50:21: warning: passing arguments to 'cdbmake_split' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | if (!cdbmake_split(&c->cdbm,alloc)) return -1; | ^ cdbmss.c:53:24: warning: passing arguments to 'cdbmake_throw' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | len = cdbmake_throw(&c->cdbm,c->pos,i); | ^ cdbmss.c:55:19: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | cdbmake_pack(c->packbuf,c->cdbm.hash[u].h); | ^ cdbmss.c:56:19: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | cdbmake_pack(c->packbuf + 4,c->cdbm.hash[u].p); | ^ cdbmss.c:57:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if (substdio_put(&c->ss,c->packbuf,8) == -1) return -1; | ^ cdbmss.c:62:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (substdio_flush(&c->ss) == -1) return -1; | ^ cdbmss.c:63:7: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (seek_begin(c->fd) == -1) return -1; | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ cdbmss.c:64:27: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | return substdio_putflush(&c->ss,c->cdbm.final,sizeof(c->cdbm.final)); | ^ cdbmss.c:43:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | int cdbmss_finish(c) | ^ 21 warnings generated. ./compile cdbmake_pack.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdbmake_pack.c:3:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | void cdbmake_pack(buf,num) | ^ In file included from cdbmake_pack.c:1: ./cdbmake.h:26:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 26 | extern void cdbmake_pack(); | ^ 2 warnings generated. ./compile cdbmake_hash.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdbmake_hash.c:3:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 3 | uint32 cdbmake_hashadd(h,c) | ^ In file included from cdbmake_hash.c:1: ./cdbmake.h:28:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 28 | extern uint32 cdbmake_hashadd(); | ^ 2 warnings generated. ./compile cdbmake_add.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] cdbmake_add.c:5:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 5 | void cdbmake_init(cdbm) | ^ In file included from cdbmake_add.c:2: ./cdbmake.h:30:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | extern void cdbmake_init(); | ^ cdbmake_add.c:24:43: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | head = (struct cdbmake_hplist *) alloc(sizeof(struct cdbmake_hplist)); | ^ cdbmake_add.c:14:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | int cdbmake_add(cdbm,h,p,alloc) | ^ In file included from cdbmake_add.c:2: ./cdbmake.h:31:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | extern int cdbmake_add(); | ^ cdbmake_add.c:67:44: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | cdbm->split = (struct cdbmake_hp *) alloc(memsize * sizeof(struct cdbmake_hp)); | ^ cdbmake_add.c:37:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | int cdbmake_split(cdbm,alloc) | ^ In file included from cdbmake_add.c:2: ./cdbmake.h:32:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 32 | extern int cdbmake_split(); | ^ cdbmake_add.c:101:15: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | cdbmake_pack(cdbm->final + 8 * b,pos); | ^ cdbmake_add.c:102:15: warning: passing arguments to 'cdbmake_pack' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | cdbmake_pack(cdbm->final + 8 * b + 4,len); | ^ cdbmake_add.c:87:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | uint32 cdbmake_throw(cdbm,pos,b) | ^ In file included from cdbmake_add.c:2: ./cdbmake.h:33:15: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 33 | extern uint32 cdbmake_throw(); | ^ 12 warnings generated. ./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o cdbmake_add.o ./load qmail-newu cdbmss.o getln.a open.a seek.a cdbmake.a case.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile qmail-pw2u.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-pw2u.c:22:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | substdio_putsflush(subfderr,"qmail-pw2u: fatal: unable to chdir\n"); | ^ qmail-pw2u.c:23:3: warning: call to undeclared library function '_exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | _exit(111); | ^ qmail-pw2u.c:23:3: note: include the header or explicitly provide a declaration for '_exit' qmail-pw2u.c:27:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | substdio_putsflush(subfderr,"qmail-pw2u: fatal: out of memory\n"); | ^ qmail-pw2u.c:32:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | substdio_putsflush(subfderr,"qmail-pw2u: fatal: unable to read input\n"); | ^ qmail-pw2u.c:37:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | substdio_putsflush(subfderr,"qmail-pw2u: fatal: unable to write output\n"); | ^ qmail-pw2u.c:42:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | substdio_putsflush(subfderr,"qmail-pw2u: fatal: unable to read controls\n"); | ^ qmail-pw2u.c:47:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_puts(subfderr,"qmail-pw2u: fatal: unable to find "); | ^ qmail-pw2u.c:48:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | substdio_puts(subfderr,auto_usera); | ^ qmail-pw2u.c:49:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | substdio_puts(subfderr," user\n"); | ^ qmail-pw2u.c:50:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | substdio_flush(subfderr); | ^ qmail-pw2u.c:55:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | substdio_puts(subfderr,"qmail-pw2u: fatal: unable to stat "); | ^ qmail-pw2u.c:56:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | substdio_puts(subfderr,fn); | ^ qmail-pw2u.c:57:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | substdio_puts(subfderr,"\n"); | ^ qmail-pw2u.c:58:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | substdio_flush(subfderr); | ^ qmail-pw2u.c:53:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | void die_home(fn) char *fn; | ^ qmail-pw2u.c:63:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | substdio_puts(subfderr,"qmail-pw2u: fatal: unable to find "); | ^ qmail-pw2u.c:64:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | substdio_put(subfderr,s,len); | ^ qmail-pw2u.c:65:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | substdio_puts(subfderr," user for subuser\n"); | ^ qmail-pw2u.c:66:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | substdio_flush(subfderr); | ^ qmail-pw2u.c:61:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | void die_user(s,len) char *s; unsigned int len; | ^ qmail-pw2u.c:101:7: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | if (byte_chr(line.s,line.len,'\0') < line.len) return; | ^ qmail-pw2u.c:104:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | if (!stralloc_copyb(&user,x,i)) die_nomem(); | ^ qmail-pw2u.c:105:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | if (!stralloc_0(&user)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pw2u.c:108:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if (!stralloc_copyb(&uidstr,x,i)) die_nomem(); | ^ qmail-pw2u.c:109:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (!stralloc_0(&uidstr)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pw2u.c:110:13: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | scan_ulong(uidstr.s,&uid); | ^ qmail-pw2u.c:112:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if (!stralloc_copyb(&gidstr,x,i)) die_nomem(); | ^ qmail-pw2u.c:113:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (!stralloc_0(&gidstr)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pw2u.c:116:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (!stralloc_copyb(&home,x,i)) die_nomem(); | ^ qmail-pw2u.c:117:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (!stralloc_0(&home)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pw2u.c:125:18: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | if (!constmap(&mapincl,user.s,user.len - 1)) | ^ qmail-pw2u.c:128:17: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | if (constmap(&mapexcl,user.s,user.len - 1)) | ^ qmail-pw2u.c:139:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | if (!stralloc_copys(&uugh,":")) die_nomem(); | ^ qmail-pw2u.c:140:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | if (!stralloc_cats(&uugh,user.s)) die_nomem(); | ^ qmail-pw2u.c:141:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | if (!stralloc_cats(&uugh,":")) die_nomem(); | ^ qmail-pw2u.c:142:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | if (!stralloc_cats(&uugh,uidstr.s)) die_nomem(); | ^ qmail-pw2u.c:143:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | if (!stralloc_cats(&uugh,":")) die_nomem(); | ^ qmail-pw2u.c:144:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | if (!stralloc_cats(&uugh,gidstr.s)) die_nomem(); | ^ qmail-pw2u.c:145:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (!stralloc_cats(&uugh,":")) die_nomem(); | ^ qmail-pw2u.c:146:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | if (!stralloc_cats(&uugh,home.s)) die_nomem(); | ^ qmail-pw2u.c:147:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | if (!stralloc_cats(&uugh,":")) die_nomem(); | ^ qmail-pw2u.c:150:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | if (!stralloc_cats(&allusers,user.s)) die_nomem(); | ^ qmail-pw2u.c:151:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | if (!stralloc_cats(&allusers,":")) die_nomem(); | ^ qmail-pw2u.c:152:21: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | if (!stralloc_catb(&allusers,uugh.s,uugh.len)) die_nomem(); | ^ qmail-pw2u.c:153:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | if (!stralloc_0(&allusers)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pw2u.c:155:7: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | if (str_equal(user.s,auto_usera)) { | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qmail-pw2u.c:156:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | if (substdio_puts(subfdout,"+") == -1) die_write(); | ^ qmail-pw2u.c:157:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | if (substdio_put(subfdout,uugh.s,uugh.len) == -1) die_write(); | ^ qmail-pw2u.c:158:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | if (substdio_puts(subfdout,dashcolon) == -1) die_write(); | ^ qmail-pw2u.c:159:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | if (substdio_puts(subfdout,":\n") == -1) die_write(); | ^ qmail-pw2u.c:165:25: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | mailnames = constmap(&mapmana,user.s,user.len - 1); | ^ qmail-pw2u.c:173:16: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | i = str_chr(mailnames,':'); | ^ qmail-pw2u.c:175:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | if (substdio_puts(subfdout,"=") == -1) die_write(); | ^ qmail-pw2u.c:176:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | if (substdio_put(subfdout,mailnames,i) == -1) die_write(); | ^ qmail-pw2u.c:177:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 177 | if (substdio_put(subfdout,uugh.s,uugh.len) == -1) die_write(); | ^ qmail-pw2u.c:178:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | if (substdio_puts(subfdout,"::\n") == -1) die_write(); | ^ qmail-pw2u.c:181:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | if (substdio_puts(subfdout,"+") == -1) die_write(); | ^ qmail-pw2u.c:182:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | if (substdio_put(subfdout,mailnames,i) == -1) die_write(); | ^ qmail-pw2u.c:183:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | if (substdio_put(subfdout,auto_break,1) == -1) die_write(); | ^ qmail-pw2u.c:184:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | if (substdio_put(subfdout,uugh.s,uugh.len) == -1) die_write(); | ^ qmail-pw2u.c:185:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | if (substdio_puts(subfdout,dashcolon) == -1) die_write(); | ^ qmail-pw2u.c:186:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 186 | if (substdio_puts(subfdout,":\n") == -1) die_write(); | ^ qmail-pw2u.c:202:36: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 202 | x = line.s; xlen = line.len; i = byte_chr(x,xlen,':'); if (i == xlen) return; | ^ qmail-pw2u.c:203:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | if (!stralloc_copyb(&sub,x,i)) die_nomem(); | ^ qmail-pw2u.c:205:18: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | uugh = constmap(&mapuser,x,i); | ^ qmail-pw2u.c:209:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | if (substdio_puts(subfdout,"=") == -1) die_write(); | ^ qmail-pw2u.c:210:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | if (substdio_put(subfdout,sub.s,sub.len) == -1) die_write(); | ^ qmail-pw2u.c:211:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | if (substdio_puts(subfdout,uugh) == -1) die_write(); | ^ qmail-pw2u.c:212:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | if (substdio_puts(subfdout,dashcolon) == -1) die_write(); | ^ qmail-pw2u.c:213:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | if (substdio_put(subfdout,x,i) == -1) die_write(); | ^ qmail-pw2u.c:214:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | if (substdio_puts(subfdout,":\n") == -1) die_write(); | ^ qmail-pw2u.c:217:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | if (substdio_puts(subfdout,"+") == -1) die_write(); | ^ qmail-pw2u.c:218:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | if (substdio_put(subfdout,sub.s,sub.len) == -1) die_write(); | ^ qmail-pw2u.c:219:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | if (substdio_put(subfdout,auto_break,1) == -1) die_write(); | ^ qmail-pw2u.c:220:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | if (substdio_puts(subfdout,uugh) == -1) die_write(); | ^ qmail-pw2u.c:221:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | if (substdio_puts(subfdout,dashcolon) == -1) die_write(); | ^ qmail-pw2u.c:222:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | if (substdio_put(subfdout,x,i) == -1) die_write(); | ^ qmail-pw2u.c:223:22: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | if (substdio_puts(subfdout,"-:\n") == -1) die_write(); | ^ qmail-pw2u.c:238:23: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | while ((opt = getopt(argc,argv,"/ohHuUc:C")) != opteof) | ^ qmail-pw2u.c:253:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 253 | if (chdir(auto_qmail) == -1) die_chdir(); | ^ qmail-pw2u.c:257:28: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | okincl = control_readfile(&incl,"users/include",0); | ^ qmail-pw2u.c:259:33: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | if (okincl) if (!constmap_init(&mapincl,incl.s,incl.len,0)) die_nomem(); | ^ qmail-pw2u.c:261:28: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | okexcl = control_readfile(&excl,"users/exclude",0); | ^ qmail-pw2u.c:263:33: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | if (okexcl) if (!constmap_init(&mapexcl,excl.s,excl.len,0)) die_nomem(); | ^ qmail-pw2u.c:265:28: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | okmana = control_readfile(&mana,"users/mailnames",0); | ^ qmail-pw2u.c:267:33: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | if (okmana) if (!constmap_init(&mapmana,mana.s,mana.len,1)) die_nomem(); | ^ qmail-pw2u.c:269:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | if (!stralloc_copys(&allusers,"")) die_nomem(); | ^ qmail-pw2u.c:272:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | if (getln(subfdin,&line,&match,'\n') == -1) die_read(); | ^ qmail-pw2u.c:278:17: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | fd = open_read("users/subusers"); | ^ qmail-pw2u.c:283:19: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | substdio_fdbuf(&ss,read,fd,ssbuf,sizeof(ssbuf)); | ^ qmail-pw2u.c:285:23: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | if (!constmap_init(&mapuser,allusers.s,allusers.len,1)) die_nomem(); | ^ qmail-pw2u.c:288:16: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 288 | if (getln(&ss,&line,&match,'\n') == -1) die_read(); | ^ qmail-pw2u.c:293:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 293 | close(fd); | ^ qmail-pw2u.c:296:17: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | fd = open_read("users/append"); | ^ qmail-pw2u.c:301:19: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | substdio_fdbuf(&ss,read,fd,ssbuf,sizeof(ssbuf)); | ^ qmail-pw2u.c:303:16: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | if (getln(&ss,&line,&match,'\n') == -1) die_read(); | ^ qmail-pw2u.c:304:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | if (substdio_put(subfdout,line.s,line.len) == -1) die_write(); | ^ qmail-pw2u.c:309:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | if (substdio_puts(subfdout,".\n") == -1) die_write(); | ^ qmail-pw2u.c:310:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 310 | if (substdio_flush(subfdout) == -1) die_write(); | ^ qmail-pw2u.c:231:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | int main(argc,argv) | ^ 100 warnings generated. ./load qmail-pw2u constmap.o control.o open.a getln.a case.a getopt.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_usera.o auto_break.o auto_qmail.o ./compile qmail-qread.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-qread.c:21:36: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | void die(n) int n; { substdio_flush(subfdout); _exit(n); } | ^ qmail-qread.c:21:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | void die(n) int n; { substdio_flush(subfdout); _exit(n); } | ^ qmail-qread.c:26:15: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | x = error_str(errno); | ^ qmail-qread.c:27:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | substdio_puts(subfdout,s1); | ^ qmail-qread.c:28:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | substdio_puts(subfdout,s2); | ^ qmail-qread.c:29:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | substdio_puts(subfdout,": "); | ^ qmail-qread.c:30:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_puts(subfdout,x); | ^ qmail-qread.c:31:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | substdio_puts(subfdout,"\n"); | ^ qmail-qread.c:23:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | void warn(s1,s2) char *s1; char *s2; | ^ qmail-qread.c:34:33: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | void die_nomem() { substdio_puts(subfdout,"fatal: out of memory\n"); die(111); } | ^ qmail-qread.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void die_opendir(fn) char *fn; { warn("fatal: unable to opendir ",fn); die(111); } | ^ qmail-qread.c:41:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | foo[fmt_ulong(foo,id)] = 0; | ^ qmail-qread.c:38:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | void err(id) unsigned long id; | ^ qmail-qread.c:67:14: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | datetime_tai(&dt,qtime); | ^ qmail-qread.c:68:16: warning: passing arguments to 'date822fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | i = date822fmt(s,&dt) - 7/*XXX*/; len += i; if (s) s += i; | ^ qmail-qread.c:69:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | i = fmt_str(s," GMT #"); len += i; if (s) s += i; | ^ qmail-qread.c:70:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | i = fmt_ulong(s,id); len += i; if (s) s += i; | ^ qmail-qread.c:71:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | i = fmt_str(s," "); len += i; if (s) s += i; | ^ qmail-qread.c:72:15: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | i = fmt_ulong(s,size); len += i; if (s) s += i; | ^ qmail-qread.c:73:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | i = fmt_str(s," <"); len += i; if (s) s += i; | ^ qmail-qread.c:74:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | i = fmt_str(s,sender.s + 1); len += i; if (s) s += i; | ^ qmail-qread.c:75:13: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | i = fmt_str(s,"> "); len += i; if (s) s += i; | ^ qmail-qread.c:78:15: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | i = fmt_str(s," bouncing"); len += i; if (s) s += i; | ^ qmail-qread.c:59:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | unsigned int fmtstats(s) | ^ qmail-qread.c:90:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | substdio_put(subfdout,((*s >= 32) && (*s <= 126)) ? s : "_",1); | ^ qmail-qread.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | void out(s,n) char *s; unsigned int n; | ^ qmail-qread.c:95:38: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | void outs(s) char *s; { out(s,str_len(s)); } | ^ qmail-qread.c:95:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | void outs(s) char *s; { out(s,str_len(s)); } | ^ qmail-qread.c:96:39: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | void outok(s) char *s; { substdio_puts(subfdout,s); } | ^ qmail-qread.c:96:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | void outok(s) char *s; { substdio_puts(subfdout,s); } | ^ qmail-qread.c:100:21: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (!stralloc_ready(&stats,fmtstats(FMT_LEN))) die_nomem(); | ^ qmail-qread.c:117:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | if (chdir(auto_qmail) == -1) die_chdir(); | ^ qmail-qread.c:119:17: warning: passing arguments to 'readsubdir_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | readsubdir_init(&rs,"info",die_opendir); | ^ qmail-qread.c:121:28: warning: passing arguments to 'readsubdir_next' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | while (x = readsubdir_next(&rs,&id)) | ^ qmail-qread.c:121:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 121 | while (x = readsubdir_next(&rs,&id)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-qread.c:121:11: note: place parentheses around the assignment to silence this warning 121 | while (x = readsubdir_next(&rs,&id)) | ^ | ( ) qmail-qread.c:121:11: note: use '==' to turn this assignment into an equality comparison 121 | while (x = readsubdir_next(&rs,&id)) | ^ | == qmail-qread.c:124:12: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | fmtqfn(fnmess,"mess/",id,1); | ^ qmail-qread.c:125:12: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | fmtqfn(fninfo,"info/",id,1); | ^ qmail-qread.c:126:12: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | fmtqfn(fnlocal,"local/",id,1); | ^ qmail-qread.c:127:12: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | fmtqfn(fnremote,"remote/",id,1); | ^ qmail-qread.c:128:12: warning: passing arguments to 'fmtqfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | fmtqfn(fnbounce,"bounce/",id,0); | ^ qmail-qread.c:134:20: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | fd = open_read(fninfo); | ^ qmail-qread.c:136:20: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | substdio_fdbuf(&ss,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-qread.c:137:15: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | if (getln(&ss,&sender,&match,0) == -1) die_nomem(); | ^ qmail-qread.c:138:33: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 138 | if (fstat(fd,&st) == -1) { close(fd); err(id); continue; } | ^ qmail-qread.c:139:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 139 | close(fd); | ^ qmail-qread.c:146:22: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | fd = open_read(channel ? fnremote : fnlocal); | ^ qmail-qread.c:156:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | if (getln(&ss,&line,&match,0) == -1) die_nomem(); | ^ 47 warnings generated. ./load qmail-qread fmtqfn.o readsubdir.o date822fmt.o datetime.a open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o auto_split.o cat warn-auto.sh qmail-qstat.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qmail-qstat chmod 755 qmail-qstat ./compile qmail-tcpto.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-tcpto.c:14:36: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void die(n) int n; { substdio_flush(subfdout); _exit(n); } | ^ qmail-tcpto.c:14:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | void die(n) int n; { substdio_flush(subfdout); _exit(n); } | ^ qmail-tcpto.c:19:15: warning: passing arguments to 'error_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | x = error_str(errno); | ^ qmail-tcpto.c:20:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | substdio_puts(subfdout,s); | ^ qmail-tcpto.c:21:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | substdio_puts(subfdout,": "); | ^ qmail-tcpto.c:22:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | substdio_puts(subfdout,x); | ^ qmail-tcpto.c:23:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | substdio_puts(subfdout,"\n"); | ^ qmail-tcpto.c:16:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | void warn(s) char *s; | ^ qmail-tcpto.c:46:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | if (chdir(auto_qmail) == -1) die_chdir(); | ^ qmail-tcpto.c:49:11: warning: call to undeclared function 'open_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | fdlock = open_write("tcpto"); | ^ qmail-tcpto.c:51:7: warning: call to undeclared function 'open_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | fd = open_read("tcpto"); | ^ qmail-tcpto.c:53:13: warning: passing arguments to 'lock_ex' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | if (lock_ex(fdlock) == -1) die_lock(); | ^ qmail-tcpto.c:54:6: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | r = read(fd,tcpto_buf,sizeof(tcpto_buf)); | ^ qmail-tcpto.c:55:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | close(fd); | ^ qmail-tcpto.c:68:6: warning: call to undeclared function 'byte_copy'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | byte_copy(&ip,4,record); | ^ qmail-tcpto.c:74:38: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | substdio_put(subfdout,tmp,ip_fmt(tmp,&ip)); | ^ qmail-tcpto.c:74:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | substdio_put(subfdout,tmp,ip_fmt(tmp,&ip)); | ^ qmail-tcpto.c:75:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | substdio_puts(subfdout," timed out "); | ^ qmail-tcpto.c:76:41: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_put(subfdout,tmp,fmt_ulong(tmp,(unsigned long) (start - when))); | ^ qmail-tcpto.c:76:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_put(subfdout,tmp,fmt_ulong(tmp,(unsigned long) (start - when))); | ^ qmail-tcpto.c:77:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_puts(subfdout," seconds ago; # recent timeouts: "); | ^ qmail-tcpto.c:78:41: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_put(subfdout,tmp,fmt_ulong(tmp,(unsigned long) (unsigned char) record[4])); | ^ qmail-tcpto.c:78:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | substdio_put(subfdout,tmp,fmt_ulong(tmp,(unsigned long) (unsigned char) record[4])); | ^ qmail-tcpto.c:79:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | substdio_puts(subfdout,"\n"); | ^ 24 warnings generated. ./load qmail-tcpto ip.o now.o open.a lock.a substdio.a error.a str.a fs.a auto_qmail.o ./compile qmail-tcpok.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-tcpok.c:19:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 19 | if (chdir(auto_qmail) == -1) | ^ qmail-tcpok.c:20:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | strerr_die4sys(111,FATAL,"unable to chdir to ",auto_qmail,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-tcpok.c:22:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | strerr_die4sys(111,FATAL,"unable to chdir to ",auto_qmail,"/queue/lock: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-tcpok.c:24:18: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | fd = open_write("tcpto"); | ^ qmail-tcpok.c:26:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | strerr_die4sys(111,FATAL,"unable to write ",auto_qmail,"/queue/lock/tcpto: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-tcpok.c:27:14: warning: passing arguments to 'lock_ex' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (lock_ex(fd) == -1) | ^ qmail-tcpok.c:28:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | strerr_die4sys(111,FATAL,"unable to lock ",auto_qmail,"/queue/lock/tcpto: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-tcpok.c:30:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_fdbuf(&ss,write,fd,buf,sizeof buf); | ^ qmail-tcpok.c:31:46: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | for (i = 0;i < sizeof buf;++i) substdio_put(&ss,"",1); | ^ qmail-tcpok.c:32:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | if (substdio_flush(&ss) == -1) | ^ qmail-tcpok.c:33:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | strerr_die4sys(111,FATAL,"unable to clear ",auto_qmail,"/queue/lock/tcpto: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ 11 warnings generated. ./load qmail-tcpok open.a lock.a strerr.a substdio.a error.a str.a auto_qmail.o ./compile qmail-pop3d.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-pop3d.c:25:18: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | r = timeoutread(1200,fd,buf,len); | ^ qmail-pop3d.c:22:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-pop3d.c:33:19: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | r = timeoutwrite(1200,fd,buf,len); | ^ qmail-pop3d.c:30:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-pop3d.c:46:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | substdio_put(&ssout,buf,len); | ^ qmail-pop3d.c:44:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | void put(buf,len) char *buf; int len; | ^ qmail-pop3d.c:50:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | substdio_puts(&ssout,s); | ^ qmail-pop3d.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | void puts(s) char *s; | ^ qmail-pop3d.c:54:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | substdio_flush(&ssout); | ^ qmail-pop3d.c:56:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | void err(s) char *s; | ^ qmail-pop3d.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | void err_unimpl(arg) char *arg; { err("unimplemented"); } | ^ qmail-pop3d.c:76:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | void okay(arg) char *arg; { puts("+OK \r\n"); flush(); } | ^ qmail-pop3d.c:81:17: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | put(fn,str_chr(fn,':')); | ^ qmail-pop3d.c:78:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | void printfn(fn) char *fn; | ^ qmail-pop3d.c:95:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (getln(ssfrom,&line,&match,'\n') != 0) die(); | ^ qmail-pop3d.c:87:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | void blast(ssfrom,limit) | ^ qmail-pop3d.c:130:16: warning: passing arguments to 'maildir_clean' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | maildir_clean(&line); | ^ qmail-pop3d.c:131:19: warning: passing arguments to 'maildir_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | if (maildir_scan(&pq,&filenames,1,1) == -1) die_scan(); | ^ qmail-pop3d.c:134:31: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | m = (struct message *) alloc(numm * sizeof(struct message)); | ^ qmail-pop3d.c:138:19: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | if (!prioq_min(&pq,&pe)) { numm = i; break; } | ^ qmail-pop3d.c:139:17: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | prioq_delmin(&pq); | ^ qmail-pop3d.c:157:22: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | put(strnum,fmt_uint(strnum,numm)); | ^ qmail-pop3d.c:159:23: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | put(strnum,fmt_ulong(strnum,total)); | ^ qmail-pop3d.c:149:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | void pop3_stat(arg) char *arg; | ^ qmail-pop3d.c:164:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | void pop3_rset(arg) char *arg; | ^ qmail-pop3d.c:175:22: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | put(strnum,fmt_uint(strnum,last)); | ^ qmail-pop3d.c:172:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | void pop3_last(arg) char *arg; | ^ qmail-pop3d.c:185:11: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 185 | if (unlink(m[i].fn) == -1) err_nounlink(); | ^ qmail-pop3d.c:188:20: warning: passing arguments to 'str_start' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | if (str_start(m[i].fn,"new/")) { | ^ qmail-pop3d.c:189:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | if (!stralloc_copys(&line,"cur/")) die_nomem(); | ^ qmail-pop3d.c:190:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | if (!stralloc_cats(&line,m[i].fn + 4)) die_nomem(); | ^ qmail-pop3d.c:191:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 191 | if (!stralloc_cats(&line,":2,")) die_nomem(); | ^ qmail-pop3d.c:192:7: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | if (!stralloc_0(&line)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-pop3d.c:193:2: warning: call to undeclared function 'rename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 193 | rename(m[i].fn,line.s); /* if it fails, bummer */ | ^ qmail-pop3d.c:180:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | void pop3_quit(arg) char *arg; | ^ qmail-pop3d.c:202:18: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | if (!scan_ulong(arg,&u)) { err_syntax(); return -1; } | ^ qmail-pop3d.c:199:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 199 | int msgno(arg) char *arg; | ^ qmail-pop3d.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | void pop3_dele(arg) char *arg; | ^ qmail-pop3d.c:224:22: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | put(strnum,fmt_uint(strnum,i + 1)); | ^ qmail-pop3d.c:227:28: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | else put(strnum,fmt_ulong(strnum,m[i].size)); | ^ qmail-pop3d.c:220:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | void list(i,flaguidl) | ^ qmail-pop3d.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | void dolisting(arg,flaguidl) char *arg; int flaguidl; | ^ qmail-pop3d.c:250:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | void pop3_uidl(arg) char *arg; { dolisting(arg,1); } | ^ qmail-pop3d.c:251:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 251 | void pop3_list(arg) char *arg; { dolisting(arg,0); } | ^ qmail-pop3d.c:264:20: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | arg += scan_ulong(arg,&limit); | ^ qmail-pop3d.c:266:17: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | if (scan_ulong(arg,&limit)) ++limit; else limit = 0; | ^ qmail-pop3d.c:268:17: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | fd = open_read(m[i].fn); | ^ qmail-pop3d.c:271:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | substdio_fdbuf(&ssmsg,read,fd,ssmsgbuf,sizeof(ssmsgbuf)); | ^ qmail-pop3d.c:273:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 273 | close(fd); | ^ qmail-pop3d.c:255:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | void pop3_top(arg) char *arg; | ^ qmail-pop3d.c:294:17: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | sig_alarmcatch(die); | ^ qmail-pop3d.c:298:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 298 | if (chdir(argv[1]) == -1) die_nomaildir(); | ^ qmail-pop3d.c:303:11: warning: passing arguments to 'commands' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | commands(&ssin,pop3commands); | ^ qmail-pop3d.c:290:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | int main(argc,argv) | ^ 54 warnings generated. ./compile commands.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] commands.c:17:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | if (!stralloc_copys(&cmd,"")) return -1; | ^ commands.c:20:30: warning: passing arguments to 'stralloc_readyplus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | if (!stralloc_readyplus(&cmd,1)) return -1; | ^ commands.c:21:23: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | i = substdio_get(ss,cmd.s + cmd.len,1); | ^ commands.c:31:16: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | i = str_chr(cmd.s,' '); | ^ commands.c:36:35: warning: passing arguments to 'case_diffs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | for (i = 0;c[i].text;++i) if (case_equals(c[i].text,cmd.s)) break; | ^ ./case.h:11:38: note: expanded from macro 'case_equals' 11 | #define case_equals(s,t) (!case_diffs((s),(t))) | ^ commands.c:37:13: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | c[i].fun(arg); | ^ commands.c:9:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | int commands(ss,c) | ^ In file included from commands.c:1: ./commands.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int commands(); | ^ 8 warnings generated. ./compile maildir.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] maildir.c:18:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | maildir = env_get("MAILDIR"); | ^ maildir.c:21:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 21 | if (chdir(maildir) == -1) | ^ maildir.c:39:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 39 | while (d = readdir(dir)) | ~~^~~~~~~~~~~~~~ maildir.c:39:11: note: place parentheses around the assignment to silence this warning 39 | while (d = readdir(dir)) | ^ | ( ) maildir.c:39:11: note: use '==' to turn this assignment into an equality comparison 39 | while (d = readdir(dir)) | ^ | == maildir.c:42:23: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | if (!stralloc_copys(tmpname,"tmp/")) break; | ^ maildir.c:43:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | if (!stralloc_cats(tmpname,d->d_name)) break; | ^ maildir.c:44:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | if (!stralloc_0(tmpname)) break; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ maildir.c:47:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | unlink(tmpname->s); | ^ maildir.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void maildir_clean(tmpname) | ^ In file included from maildir.c:10: ./maildir.h:9:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 9 | extern void maildir_clean(); | ^ maildir.c:68:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 68 | while (d = readdir(dir)) | ~~^~~~~~~~~~~~~~ maildir.c:68:11: note: place parentheses around the assignment to silence this warning 68 | while (d = readdir(dir)) | ^ | ( ) maildir.c:68:11: note: use '==' to turn this assignment into an equality comparison 68 | while (d = readdir(dir)) | ^ | == maildir.c:72:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | if (!stralloc_cats(filenames,subdir)) break; | ^ maildir.c:73:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if (!stralloc_cats(filenames,"/")) break; | ^ maildir.c:74:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | if (!stralloc_cats(filenames,d->d_name)) break; | ^ maildir.c:75:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | if (!stralloc_0(filenames)) break; | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ maildir.c:81:25: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | if (!prioq_insert(pq,&pe)) break; | ^ maildir.c:52:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | static int append(pq,filenames,subdir,time) | ^ maildir.c:100:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (!stralloc_copys(filenames,"")) return 0; | ^ maildir.c:101:18: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | while (prioq_min(pq,&pe)) prioq_delmin(pq); | ^ maildir.c:101:40: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | while (prioq_min(pq,&pe)) prioq_delmin(pq); | ^ maildir.c:90:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | int maildir_scan(pq,filenames,flagnew,flagcur) | ^ In file included from maildir.c:10: ./maildir.h:10:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 10 | extern int maildir_scan(); | ^ 21 warnings generated. ./load qmail-pop3d commands.o case.a timeoutread.o timeoutwrite.o maildir.o prioq.o now.o env.a strerr.a sig.a open.a getln.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qmail-popup.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-popup.c:22:18: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | r = timeoutread(1200,fd,buf,len); | ^ qmail-popup.c:19:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-popup.c:30:19: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | r = timeoutwrite(1200,fd,buf,len); | ^ qmail-popup.c:27:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-popup.c:43:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | substdio_puts(&ssout,s); | ^ qmail-popup.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | void puts(s) char *s; | ^ qmail-popup.c:47:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | substdio_flush(&ssout); | ^ qmail-popup.c:49:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | void err(s) char *s; | ^ qmail-popup.c:67:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | void err_authoriz(arg) char *arg; { err("authorization first"); } | ^ qmail-popup.c:69:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | void okay(arg) char *arg; { puts("+OK \r\n"); flush(); } | ^ qmail-popup.c:70:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | void pop3_quit(arg) char *arg; { okay(0); die(); } | ^ qmail-popup.c:91:14: warning: passing arguments to 'fd_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | if (fd_copy(2,1) == -1) die_pipe(); | ^ qmail-popup.c:92:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | close(3); | ^ qmail-popup.c:93:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (pipe(pi) == -1) die_pipe(); | ^ qmail-popup.c:95:18: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | switch(child = fork()) { | ^ qmail-popup.c:101:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 101 | execvp(*childargs,childargs); | ^ qmail-popup.c:105:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | substdio_fdbuf(&ssup,write,pi[1],upbuf,sizeof upbuf); | ^ qmail-popup.c:106:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (substdio_put(&ssup,user,userlen) == -1) die_write(); | ^ qmail-popup.c:107:38: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | if (substdio_put(&ssup,pass,str_len(pass) + 1) == -1) die_write(); | ^ qmail-popup.c:107:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | if (substdio_put(&ssup,pass,str_len(pass) + 1) == -1) die_write(); | ^ qmail-popup.c:108:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if (substdio_puts(&ssup,"<") == -1) die_write(); | ^ qmail-popup.c:109:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (substdio_puts(&ssup,unique) == -1) die_write(); | ^ qmail-popup.c:110:20: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (substdio_puts(&ssup,hostname) == -1) die_write(); | ^ qmail-popup.c:111:19: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (substdio_put(&ssup,">",2) == -1) die_write(); | ^ qmail-popup.c:112:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if (substdio_flush(&ssup) == -1) die_write(); | ^ qmail-popup.c:114:25: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | byte_zero(pass,str_len(pass)); | ^ qmail-popup.c:114:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | byte_zero(pass,str_len(pass)); | ^ qmail-popup.c:115:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | byte_zero(upbuf,sizeof upbuf); | ^ qmail-popup.c:116:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (wait_pid(&wstat,child) == -1) die(); | ^ qmail-popup.c:82:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | void doanddie(user,userlen,pass) | ^ qmail-popup.c:125:19: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 125 | s += fmt_uint(s,getpid()); | ^ qmail-popup.c:125:16: warning: passing arguments to 'fmt_uint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | s += fmt_uint(s,getpid()); | ^ qmail-popup.c:127:17: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | s += fmt_ulong(s,(unsigned long) now()); | ^ qmail-popup.c:141:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | if (!stralloc_copys(&username,arg)) die_nomem(); | ^ qmail-popup.c:142:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | if (!stralloc_0(&username)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-popup.c:136:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | void pop3_user(arg) char *arg; | ^ qmail-popup.c:144:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | void pop3_pass(arg) char *arg; | ^ qmail-popup.c:153:24: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | space = arg + str_chr(arg,' '); | ^ qmail-popup.c:150:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | void pop3_apop(arg) char *arg; | ^ qmail-popup.c:172:17: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | sig_alarmcatch(die); | ^ qmail-popup.c:181:11: warning: passing arguments to 'commands' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | commands(&ssin,pop3commands); | ^ qmail-popup.c:168:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | int main(argc,argv) | ^ 42 warnings generated. ./load qmail-popup commands.o timeoutread.o timeoutwrite.o now.o case.a fd.a sig.a wait.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qmail-qmqpc.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-qmqpc.c:40:18: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | r = timeoutread(60,qmqpfd,buf,len); | ^ qmail-qmqpc.c:37:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmqpc.c:47:19: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | r = timeoutwrite(60,qmqpfd,buf,len); | ^ qmail-qmqpc.c:44:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmqpc.c:69:17: warning: passing arguments to 'slurpclose' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if (slurpclose(0,&message,1024) == -1) die_read(); | ^ qmail-qmqpc.c:71:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | strnum[fmt_ulong(strnum,(unsigned long) message.len)] = 0; | ^ qmail-qmqpc.c:72:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | if (!stralloc_copys(&beforemessage,strnum)) nomem(); | ^ qmail-qmqpc.c:73:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if (!stralloc_cats(&beforemessage,":")) nomem(); | ^ qmail-qmqpc.c:74:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | if (!stralloc_copys(&aftermessage,",")) nomem(); | ^ qmail-qmqpc.c:76:12: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (getln(&envelope,&line,&match,'\0') == -1) die_read(); | ^ qmail-qmqpc.c:81:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | strnum[fmt_ulong(strnum,(unsigned long) line.len - 2)] = 0; | ^ qmail-qmqpc.c:82:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (!stralloc_cats(&aftermessage,strnum)) nomem(); | ^ qmail-qmqpc.c:83:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (!stralloc_cats(&aftermessage,":")) nomem(); | ^ qmail-qmqpc.c:84:21: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | if (!stralloc_catb(&aftermessage,line.s + 1,line.len - 2)) nomem(); | ^ qmail-qmqpc.c:85:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | if (!stralloc_cats(&aftermessage,",")) nomem(); | ^ qmail-qmqpc.c:88:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (getln(&envelope,&line,&match,'\0') == -1) die_read(); | ^ qmail-qmqpc.c:93:21: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | strnum[fmt_ulong(strnum,(unsigned long) line.len - 2)] = 0; | ^ qmail-qmqpc.c:94:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | if (!stralloc_cats(&aftermessage,strnum)) nomem(); | ^ qmail-qmqpc.c:95:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (!stralloc_cats(&aftermessage,":")) nomem(); | ^ qmail-qmqpc.c:96:23: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | if (!stralloc_catb(&aftermessage,line.s + 1,line.len - 2)) nomem(); | ^ qmail-qmqpc.c:97:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | if (!stralloc_cats(&aftermessage,",")) nomem(); | ^ qmail-qmqpc.c:107:15: warning: passing arguments to 'ip_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | if (!ip_scan(server,&ip)) return; | ^ qmail-qmqpc.c:112:18: warning: passing arguments to 'timeoutconn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if (timeoutconn(qmqpfd,&ip,PORT_QMQP,10) != 0) { | ^ qmail-qmqpc.c:115:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 115 | close(qmqpfd); | ^ qmail-qmqpc.c:119:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | strnum[fmt_ulong(strnum,(unsigned long) (beforemessage.len + message.len + aftermessage.len))] = 0; | ^ qmail-qmqpc.c:120:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | substdio_puts(&to,strnum); | ^ qmail-qmqpc.c:121:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | substdio_puts(&to,":"); | ^ qmail-qmqpc.c:122:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | substdio_put(&to,beforemessage.s,beforemessage.len); | ^ qmail-qmqpc.c:123:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | substdio_put(&to,message.s,message.len); | ^ qmail-qmqpc.c:124:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | substdio_put(&to,aftermessage.s,aftermessage.len); | ^ qmail-qmqpc.c:125:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | substdio_puts(&to,","); | ^ qmail-qmqpc.c:126:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | substdio_flush(&to); | ^ qmail-qmqpc.c:129:17: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | substdio_get(&from,&ch,1); | ^ qmail-qmqpc.c:101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | void doit(server) | ^ qmail-qmqpc.c:138:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 138 | main() | ^ | int qmail-qmqpc.c:145:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 145 | if (chdir(auto_qmail) == -1) die_home(); | ^ qmail-qmqpc.c:147:23: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | if (control_readfile(&servers,"control/qmqpservers",0) != 1) die_control(); | ^ 37 warnings generated. ./load qmail-qmqpc slurpclose.o timeoutread.o timeoutwrite.o timeoutconn.o ip.o control.o auto_qmail.o sig.a ndelay.a open.a getln.a substdio.a stralloc.a alloc.a error.a str.a fs.a `cat socket.lib` ./compile qmail-qmqpd.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-qmqpd.c:17:12: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | r = write(fd,buf,len); | ^ qmail-qmqpd.c:14:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmqpd.c:24:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | r = read(fd,buf,len); | ^ qmail-qmqpd.c:21:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmqpd.c:40:15: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | substdio_get(&ssin,ch,1); | ^ qmail-qmqpd.c:36:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | void getbyte(ch) | ^ qmail-qmqpd.c:72:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | remotehost = env_get("TCPREMOTEHOST"); | ^ qmail-qmqpd.c:74:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | remoteinfo = env_get("TCPREMOTEINFO"); | ^ qmail-qmqpd.c:75:21: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | remoteip = env_get("TCPREMOTEIP"); | ^ qmail-qmqpd.c:77:18: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | local = env_get("TCPLOCALHOST"); | ^ qmail-qmqpd.c:78:30: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (!local) local = env_get("TCPLOCALIP"); | ^ qmail-qmqpd.c:81:11: warning: passing arguments to 'received' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | received(&qq,"QMQP",local,remoteip,remotehost,remoteinfo,(char *) 0); | ^ qmail-qmqpd.c:103:10: warning: call to undeclared function 'byte_chr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 103 | return byte_chr(buf,len,'\0') == len; | ^ qmail-qmqpd.c:108:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 108 | main() | ^ | int qmail-qmqpd.c:116:17: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | sig_alarmcatch(resources); | ^ qmail-qmqpd.c:117:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | alarm(3600); | ^ qmail-qmqpd.c:123:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | if (chdir(auto_qmail) == -1) resources(); | ^ qmail-qmqpd.c:124:17: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (qmail_open(&qq) == -1) resources(); | ^ qmail-qmqpd.c:125:16: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | qp = qmail_qp(&qq); | ^ qmail-qmqpd.c:131:14: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | qmail_put(&qq,&ch,1); | ^ qmail-qmqpd.c:136:15: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | qmail_from(&qq,buf); | ^ qmail-qmqpd.c:138:15: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | qmail_from(&qq,""); | ^ qmail-qmqpd.c:139:15: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | qmail_fail(&qq); | ^ qmail-qmqpd.c:145:15: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | qmail_to(&qq,buf); | ^ qmail-qmqpd.c:147:17: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | qmail_fail(&qq); | ^ qmail-qmqpd.c:154:23: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | result = qmail_close(&qq); | ^ qmail-qmqpd.c:157:18: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | len = fmt_str(buf,"Kok "); | ^ qmail-qmqpd.c:158:21: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | len += fmt_ulong(buf + len,(unsigned long) now()); | ^ qmail-qmqpd.c:159:19: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | len += fmt_str(buf + len," qp "); | ^ qmail-qmqpd.c:160:21: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | len += fmt_ulong(buf + len,qp); | ^ qmail-qmqpd.c:168:63: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 168 | substdio_put(&ssout,strnum,fmt_ulong(strnum,(unsigned long) str_len(result))); | ^ qmail-qmqpd.c:168:39: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | substdio_put(&ssout,strnum,fmt_ulong(strnum,(unsigned long) str_len(result))); | ^ qmail-qmqpd.c:168:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | substdio_put(&ssout,strnum,fmt_ulong(strnum,(unsigned long) str_len(result))); | ^ qmail-qmqpd.c:169:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 169 | substdio_puts(&ssout,":"); | ^ qmail-qmqpd.c:170:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | substdio_puts(&ssout,result); | ^ qmail-qmqpd.c:171:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | substdio_puts(&ssout,","); | ^ qmail-qmqpd.c:172:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | substdio_flush(&ssout); | ^ 37 warnings generated. ./compile received.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] received.c:8:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 8 | static int issafe(ch) char ch; | ^ received.c:29:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 29 | while (ch = *s++) { | ~~~^~~~~~ received.c:29:13: note: place parentheses around the assignment to silence this warning 29 | while (ch = *s++) { | ^ | ( ) received.c:29:13: note: use '==' to turn this assignment into an equality comparison 29 | while (ch = *s++) { | ^ | == received.c:31:14: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | qmail_put(qqt,&ch,1); | ^ received.c:24:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | void safeput(qqt,s) | ^ received.c:51:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | qmail_puts(qqt,"Received: from "); | ^ received.c:54:15: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | qmail_puts(qqt," (HELO "); | ^ received.c:56:15: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | qmail_puts(qqt,")"); | ^ received.c:58:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | qmail_puts(qqt," ("); | ^ received.c:61:15: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | qmail_puts(qqt,"@"); | ^ received.c:64:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | qmail_puts(qqt,")\n by "); | ^ received.c:66:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | qmail_puts(qqt," with "); | ^ received.c:67:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | qmail_puts(qqt,protocol); | ^ received.c:68:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | qmail_puts(qqt,"; "); | ^ received.c:69:15: warning: passing arguments to 'datetime_tai' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | datetime_tai(&dt,now()); | ^ received.c:70:31: warning: passing arguments to 'date822fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | qmail_put(qqt,buf,date822fmt(buf,&dt)); | ^ received.c:70:12: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | qmail_put(qqt,buf,date822fmt(buf,&dt)); | ^ received.c:40:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | void received(qqt,protocol,local,remoteip,remotehost,remoteinfo,helo) | ^ In file included from received.c:6: ./received.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void received(); | ^ 18 warnings generated. ./load qmail-qmqpd received.o now.o date822fmt.o qmail.o auto_qmail.o env.a substdio.a sig.a error.a wait.a fd.a str.a datetime.a fs.a ./compile qmail-qmtpd.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-qmtpd.c:15:19: warning: call to undeclared library function '_exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 15 | void badproto() { _exit(100); } | ^ qmail-qmtpd.c:15:19: note: include the header or explicitly provide a declaration for '_exit' qmail-qmtpd.c:21:12: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | r = write(fd,buf,len); | ^ qmail-qmtpd.c:18:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmtpd.c:32:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | substdio_flush(&ssout); | ^ qmail-qmtpd.c:33:11: warning: passing arguments to 'read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | r = read(fd,buf,len); | ^ qmail-qmtpd.c:29:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-qmtpd.c:46:17: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:56:15: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:77:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 77 | main() | ^ | int qmail-qmtpd.c:92:17: warning: passing arguments to 'sig_alarmcatch' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | sig_alarmcatch(resources); | ^ qmail-qmtpd.c:93:3: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | alarm(3600); | ^ qmail-qmtpd.c:95:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | if (chdir(auto_qmail) == -1) resources(); | ^ qmail-qmtpd.c:99:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | relayclient = env_get("RELAYCLIENT"); | ^ qmail-qmtpd.c:100:41: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | relayclientlen = relayclient ? str_len(relayclient) : 0; | ^ qmail-qmtpd.c:102:22: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | if (control_readint(&databytes,"control/databytes") == -1) resources(); | ^ qmail-qmtpd.c:103:14: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | x = env_get("DATABYTES"); | ^ qmail-qmtpd.c:104:12: warning: call to undeclared function 'scan_ulong'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 104 | if (x) { scan_ulong(x,&u); databytes = u; } | ^ qmail-qmtpd.c:107:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | remotehost = env_get("TCPREMOTEHOST"); | ^ qmail-qmtpd.c:109:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | remoteinfo = env_get("TCPREMOTEINFO"); | ^ qmail-qmtpd.c:110:21: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | remoteip = env_get("TCPREMOTEIP"); | ^ qmail-qmtpd.c:112:18: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | local = env_get("TCPLOCALHOST"); | ^ qmail-qmtpd.c:113:30: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (!local) local = env_get("TCPLOCALIP"); | ^ qmail-qmtpd.c:117:24: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (!stralloc_copys(&failure,"")) resources(); | ^ qmail-qmtpd.c:124:19: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | if (qmail_open(&qq) == -1) resources(); | ^ qmail-qmtpd.c:125:18: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | qp = qmail_qp(&qq); | ^ qmail-qmtpd.c:127:17: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:133:13: warning: passing arguments to 'received' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | received(&qq,"QMTP",local,remoteip,remotehost,remoteinfo,(char *) 0); | ^ qmail-qmtpd.c:139:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:142:23: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:145:66: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (bytestooverflow) if (!--bytestooverflow) qmail_fail(&qq); | ^ qmail-qmtpd.c:146:20: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | qmail_put(&qq,"\015",1); | ^ qmail-qmtpd.c:148:64: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | if (bytestooverflow) if (!--bytestooverflow) qmail_fail(&qq); | ^ qmail-qmtpd.c:149:18: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | qmail_put(&qq,&ch,1); | ^ qmail-qmtpd.c:155:21: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | qmail_fail(&qq); | ^ qmail-qmtpd.c:158:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:160:18: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | qmail_put(&qq,&ch,1); | ^ qmail-qmtpd.c:171:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:175:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | substdio_get(&ssin,buf + i,1); | ^ qmail-qmtpd.c:183:15: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | qmail_from(&qq,buf); | ^ qmail-qmtpd.c:184:34: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | if (!flagsenderok) qmail_fail(&qq); | ^ qmail-qmtpd.c:188:27: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | if (!stralloc_append(&failure,"")) resources(); | ^ qmail-qmtpd.c:193:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:203:23: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | substdio_get(&ssin,&ch,1); | ^ qmail-qmtpd.c:207:23: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 207 | substdio_get(&ssin,buf + i,1); | ^ qmail-qmtpd.c:213:19: warning: passing arguments to 'str_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | str_copy(buf + len,relayclient); | ^ qmail-qmtpd.c:215:27: warning: passing arguments to 'rcpthosts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | switch(rcpthosts(buf,len)) { | ^ qmail-qmtpd.c:221:19: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | qmail_to(&qq,buf); | ^ qmail-qmtpd.c:230:32: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 230 | if (!flagbother) qmail_fail(&qq); | ^ qmail-qmtpd.c:231:25: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | result = qmail_close(&qq); | ^ qmail-qmtpd.c:236:20: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | len = str_len(result); | ^ qmail-qmtpd.c:240:21: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | len += fmt_str(buf2 + len,"Kok "); | ^ qmail-qmtpd.c:241:23: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | len += fmt_ulong(buf2 + len,(unsigned long) now()); | ^ qmail-qmtpd.c:242:21: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | len += fmt_str(buf2 + len," qp "); | ^ qmail-qmtpd.c:243:23: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 243 | len += fmt_ulong(buf2 + len,qp); | ^ qmail-qmtpd.c:248:20: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 248 | len = fmt_ulong(buf,len); | ^ qmail-qmtpd.c:250:19: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | len += fmt_str(buf + len,result); | ^ qmail-qmtpd.c:256:23: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | substdio_put(&ssout,buf,len); | ^ qmail-qmtpd.c:259:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | substdio_puts(&ssout,"66:Dsorry, that domain isn't in my list of allowed rcpthosts (#5.7.1),"); | ^ qmail-qmtpd.c:262:24: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | substdio_puts(&ssout,"46:Dsorry, I can't handle that recipient (#5.1.3),"); | ^ 59 warnings generated. ./compile rcpthosts.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] rcpthosts.c:17:28: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | flagrh = control_readfile(&rh,"control/rcpthosts",0); | ^ rcpthosts.c:19:21: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | if (!constmap_init(&maprh,rh.s,rh.len,0)) return flagrh = -1; | ^ rcpthosts.c:20:20: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | fdmrh = open_read("control/morercpthosts.cdb"); | ^ rcpthosts.c:35:16: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | j = byte_rchr(buf,len,'@'); | ^ rcpthosts.c:40:22: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (!stralloc_copyb(&host,buf,len)) return -1; | ^ rcpthosts.c:42:3: warning: call to undeclared function 'case_lowerb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | case_lowerb(buf,len); | ^ rcpthosts.c:46:19: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if (constmap(&maprh,buf + j,len - j)) return 1; | ^ rcpthosts.c:54:14: warning: passing arguments to 'cdb_seek' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | r = cdb_seek(fdmrh,buf + j,len - j,&dlen); | ^ rcpthosts.c:27:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | int rcpthosts(buf,len) | ^ In file included from rcpthosts.c:8: ./rcpthosts.h:5:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 5 | extern int rcpthosts(); | ^ 10 warnings generated. ./load qmail-qmtpd rcpthosts.o control.o constmap.o received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a open.a getln.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o ./compile qmail-smtpd.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-smtpd.c:52:19: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | r = timeoutwrite(timeout,fd,buf,len); | ^ qmail-smtpd.c:44:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-smtpd.c:60:30: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | void flush() { substdio_flush(&ssout); } | ^ qmail-smtpd.c:61:37: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | void out(s) char *s; { substdio_puts(&ssout,s); } | ^ qmail-smtpd.c:61:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | void out(s) char *s; { substdio_puts(&ssout,s); } | ^ qmail-smtpd.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | void err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); } | ^ qmail-smtpd.c:85:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | void err_noop(arg) char *arg; { out("250 ok\r\n"); } | ^ qmail-smtpd.c:86:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | void err_vrfy(arg) char *arg; { out("252 send some mail, i'll try my best\r\n"); } | ^ qmail-smtpd.c:94:16: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | substdio_puts(&ssout,code); | ^ qmail-smtpd.c:95:15: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | substdio_put(&ssout,greeting.s,greeting.len); | ^ qmail-smtpd.c:92:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | void smtp_greet(code) char *code; | ^ qmail-smtpd.c:97:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | void smtp_help(arg) char *arg; | ^ qmail-smtpd.c:101:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | void smtp_quit(arg) char *arg; | ^ qmail-smtpd.c:116:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (!stralloc_copys(&helohost,arg)) die_nomem(); | ^ qmail-smtpd.c:117:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (!stralloc_0(&helohost)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:118:24: warning: passing arguments to 'case_diffs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | fakehelo = case_diffs(remotehost,helohost.s) ? helohost.s : 0; | ^ qmail-smtpd.c:115:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | void dohelo(arg) char *arg; { | ^ qmail-smtpd.c:133:20: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | if (control_rldef(&greeting,"control/smtpgreeting",1,(char *) 0) != 1) | ^ qmail-smtpd.c:135:28: warning: passing arguments to 'control_rldef' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | liphostok = control_rldef(&liphost,"control/localiphost",1,(char *) 0); | ^ qmail-smtpd.c:137:22: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | if (control_readint(&timeout,"control/timeoutsmtpd") == -1) die_control(); | ^ qmail-smtpd.c:142:27: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | bmfok = control_readfile(&bmf,"control/badmailfrom",0); | ^ qmail-smtpd.c:145:23: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (!constmap_init(&mapbmf,bmf.s,bmf.len,0)) die_nomem(); | ^ qmail-smtpd.c:147:22: warning: passing arguments to 'control_readint' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | if (control_readint(&databytes,"control/databytes") == -1) die_control(); | ^ qmail-smtpd.c:148:14: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | x = env_get("DATABYTES"); | ^ qmail-smtpd.c:149:22: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | if (x) { scan_ulong(x,&u); databytes = u; } | ^ qmail-smtpd.c:152:21: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | remoteip = env_get("TCPREMOTEIP"); | ^ qmail-smtpd.c:154:18: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | local = env_get("TCPLOCALHOST"); | ^ qmail-smtpd.c:155:30: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | if (!local) local = env_get("TCPLOCALIP"); | ^ qmail-smtpd.c:157:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | remotehost = env_get("TCPREMOTEHOST"); | ^ qmail-smtpd.c:159:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | remoteinfo = env_get("TCPREMOTEINFO"); | ^ qmail-smtpd.c:160:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | relayclient = env_get("RELAYCLIENT"); | ^ qmail-smtpd.c:163:14: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | if (env_get("SMTPS")) { smtps = 1; tls_init(); } | ^ qmail-smtpd.c:183:14: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 183 | i = str_chr(arg,'<'); | ^ qmail-smtpd.c:188:19: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | arg += str_chr(arg,':'); | ^ qmail-smtpd.c:196:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | if (!stralloc_copys(&addr,"")) die_nomem(); | ^ qmail-smtpd.c:199:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 199 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ~~~^~~~~~~~ qmail-smtpd.c:199:17: note: place parentheses around the assignment to silence this warning 199 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ^ | ( ) qmail-smtpd.c:199:17: note: use '==' to turn this assignment into an equality comparison 199 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ^ | == qmail-smtpd.c:201:27: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | if (!stralloc_append(&addr,&ch)) die_nomem(); | ^ qmail-smtpd.c:209:38: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | default: if (!stralloc_append(&addr,&ch)) die_nomem(); | ^ qmail-smtpd.c:214:23: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | if (!stralloc_append(&addr,"")) die_nomem(); | ^ qmail-smtpd.c:217:18: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | i = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-smtpd.c:220:43: warning: passing arguments to 'ip_scanbracket' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | if (!addr.s[i + 1 + ip_scanbracket(addr.s + i + 1,&ip)]) | ^ qmail-smtpd.c:221:22: warning: passing arguments to 'ipme_is' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | if (ipme_is(&ip)) { | ^ qmail-smtpd.c:223:30: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | if (!stralloc_cat(&addr,&liphost)) die_nomem(); | ^ qmail-smtpd.c:224:18: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | if (!stralloc_0(&addr)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:172:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | int addrparse(arg) | ^ qmail-smtpd.c:236:15: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | if (constmap(&mapbmf,addr.s,addr.len - 1)) return 1; | ^ qmail-smtpd.c:237:16: warning: passing arguments to 'byte_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | j = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-smtpd.c:239:17: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 239 | if (constmap(&mapbmf,addr.s + j,addr.len - j - 1)) return 1; | ^ qmail-smtpd.c:246:31: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | r = rcpthosts(addr.s,str_len(addr.s)); | ^ qmail-smtpd.c:246:16: warning: passing arguments to 'rcpthosts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | r = rcpthosts(addr.s,str_len(addr.s)); | ^ qmail-smtpd.c:260:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | void smtp_helo(arg) char *arg; | ^ qmail-smtpd.c:266:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | void smtp_ehlo(arg) char *arg; | ^ qmail-smtpd.c:279:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | void smtp_rset(arg) char *arg; | ^ qmail-smtpd.c:289:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 289 | if (!stralloc_copys(&rcptto,"")) die_nomem(); | ^ qmail-smtpd.c:290:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | if (!stralloc_copys(&mailfrom,addr.s)) die_nomem(); | ^ qmail-smtpd.c:291:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | if (!stralloc_0(&mailfrom)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:284:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 284 | void smtp_mail(arg) char *arg; | ^ qmail-smtpd.c:300:23: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | if (!stralloc_cats(&addr,relayclient)) die_nomem(); | ^ qmail-smtpd.c:301:10: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 301 | if (!stralloc_0(&addr)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:305:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | if (!stralloc_cats(&rcptto,"T")) die_nomem(); | ^ qmail-smtpd.c:306:21: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | if (!stralloc_cats(&rcptto,addr.s)) die_nomem(); | ^ qmail-smtpd.c:307:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | if (!stralloc_0(&rcptto)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:294:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | void smtp_rcpt(arg) char *arg; { | ^ qmail-smtpd.c:321:18: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | r = timeoutread(timeout,fd,buf,len); | ^ qmail-smtpd.c:312:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-smtpd.c:341:17: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | qmail_fail(&qqt); | ^ qmail-smtpd.c:342:12: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | qmail_put(&qqt,ch,1); | ^ qmail-smtpd.c:336:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 336 | void put(ch) | ^ qmail-smtpd.c:361:17: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | substdio_get(&ssin,&ch,1); | ^ qmail-smtpd.c:345:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | void blast(hops) | ^ qmail-smtpd.c:412:23: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | accept_buf[fmt_ulong(accept_buf,(unsigned long) when)] = 0; | ^ qmail-smtpd.c:415:23: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | accept_buf[fmt_ulong(accept_buf,qp)] = 0; | ^ qmail-smtpd.c:407:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 407 | void acceptmessage(qp) unsigned long qp; | ^ qmail-smtpd.c:429:17: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 429 | if (qmail_open(&qqt) == -1) { err_qqt(); return; } | ^ qmail-smtpd.c:430:16: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | qp = qmail_qp(&qqt); | ^ qmail-smtpd.c:433:11: warning: passing arguments to 'received' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 433 | received(&qqt,protocol,local,remoteip,remotehost,remoteinfo,fakehelo); | ^ qmail-smtpd.c:436:23: warning: passing arguments to 'qmail_fail' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | if (hops) qmail_fail(&qqt); | ^ qmail-smtpd.c:437:13: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | qmail_from(&qqt,mailfrom.s); | ^ qmail-smtpd.c:438:12: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | qmail_put(&qqt,rcptto.s,rcptto.len); | ^ qmail-smtpd.c:440:20: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | qqx = qmail_close(&qqt); | ^ qmail-smtpd.c:420:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | void smtp_data(arg) char *arg; { | ^ qmail-smtpd.c:456:23: warning: too few arguments in call to 'err_unimpl' 456 | if (ssl) err_unimpl(); | ~~~~~~~~~~ ^ qmail-smtpd.c:516:40: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 516 | if (ssl_verify_err) { out(": "); out(ssl_verify_err); } | ^~~~~~~~~~~~~~ qmail-smtpd.c:520:24: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 520 | out("454 TLS "); out(s1); | ^~ qmail-smtpd.c:521:28: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 521 | if (s2) { out(": "); out(s2); } | ^~ qmail-smtpd.c:540:27: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 540 | switch (control_readfile(&clients, "control/tlsclients", 0)) | ^ qmail-smtpd.c:543:22: warning: passing arguments to 'constmap_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | if (constmap_init(&mapclients, clients.s, clients.len, 0)) { | ^ qmail-smtpd.c:554:20: warning: passing arguments to 'constmap_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 554 | constmap_free(&mapclients); | ^ qmail-smtpd.c:556:21: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | case 0: alloc_free(clients.s); return 0; | ^ qmail-smtpd.c:580:47: warning: assigning to 'char *' from 'unsigned char *const' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 580 | if (s) { email.len = s->length; email.s = s->data; } | ^ ~~~~~~~ qmail-smtpd.c:585:23: warning: passing arguments to 'constmap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 585 | else if (!constmap(&mapclients, email.s, email.len)) | ^ qmail-smtpd.c:590:25: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | if (!stralloc_cats(&proto, "\n (cert ") /* continuation line */ | ^ qmail-smtpd.c:591:26: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 591 | || !stralloc_catb(&proto, email.s, email.len) | ^ qmail-smtpd.c:592:26: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 592 | || !stralloc_cats(&proto, ")") | ^ qmail-smtpd.c:593:13: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | || !stralloc_0(&proto)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:597:19: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 597 | if (!env_put("RELAYCLIENT=")) die_nomem(); | ^ qmail-smtpd.c:602:16: warning: passing arguments to 'constmap_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | constmap_free(&mapclients); alloc_free(clients.s); | ^ qmail-smtpd.c:602:41: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | constmap_free(&mapclients); alloc_free(clients.s); | ^ qmail-smtpd.c:669:20: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 669 | ciphers = env_get("TLSCIPHERS"); | ^ qmail-smtpd.c:671:25: warning: passing arguments to 'control_readfile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | if (control_readfile(&saciphers, "control/tlsserverciphers", 0) == -1) | ^ qmail-smtpd.c:682:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | alloc_free(saciphers.s); | ^ qmail-smtpd.c:699:22: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 699 | if (!stralloc_copys(&proto, "ESMTPS (") | ^ qmail-smtpd.c:700:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | || !stralloc_cats(&proto, SSL_get_cipher(ssl)) | ^ qmail-smtpd.c:701:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 701 | || !stralloc_cats(&proto, " encrypted)")) die_nomem(); | ^ qmail-smtpd.c:702:8: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 702 | if (!stralloc_0(&proto)) die_nomem(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:734:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 734 | if (chdir(auto_qmail) == -1) die_control(); | ^ qmail-smtpd.c:739:15: warning: passing arguments to 'commands' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 739 | if (commands(&ssin,&smtpcommands) == 0) die_read(); | ^ 107 warnings generated. ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o tls.o ssl_timeoutio.o ndelay.a -L/usr/lib -lssl -lcrypto received.o date822fmt.o now.o qmail.o cdb.a fd.a wait.a datetime.a getln.a open.a sig.a case.a env.a stralloc.a alloc.a substdio.a error.a str.a fs.a auto_qmail.o `cat socket.lib` ./compile sendmail.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] sendmail.c:12:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | substdio_putsflush(subfderr,"sendmail: fatal: out of memory\n"); | ^ sendmail.c:18:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | substdio_putsflush(subfderr,"sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]\n"); | ^ sendmail.c:25:15: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | if (!env_get("PROTO")) { | ^ sendmail.c:26:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | if (!env_put("RELAYCLIENT=")) nomem(); | ^ sendmail.c:27:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (!env_put("DATABYTES=0")) nomem(); | ^ sendmail.c:28:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | if (!env_put("PROTO=TCP")) nomem(); | ^ sendmail.c:29:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | if (!env_put("TCPLOCALIP=127.0.0.1")) nomem(); | ^ sendmail.c:30:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | if (!env_put("TCPLOCALHOST=localhost")) nomem(); | ^ sendmail.c:31:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | if (!env_put("TCPREMOTEIP=127.0.0.1")) nomem(); | ^ sendmail.c:32:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | if (!env_put("TCPREMOTEHOST=localhost")) nomem(); | ^ sendmail.c:33:17: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | if (!env_put("TCPREMOTEINFO=sendmail-bs")) nomem(); | ^ sendmail.c:35:3: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | execv(*smtpdarg,smtpdarg); | ^ sendmail.c:36:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | substdio_putsflush(subfderr,"sendmail: fatal: unable to run qmail-smtpd\n"); | ^ sendmail.c:43:3: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | execv(*qreadarg,qreadarg); | ^ sendmail.c:44:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | substdio_putsflush(subfderr,"sendmail: fatal: unable to run qmail-qread\n"); | ^ sendmail.c:56:12: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | env_unset("QMAILNAME"); | ^ sendmail.c:57:12: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | env_unset("MAILNAME"); | ^ sendmail.c:58:12: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | env_unset("NAME"); | ^ sendmail.c:59:12: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | env_unset("QMAILHOST"); | ^ sendmail.c:60:12: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | env_unset("MAILHOST"); | ^ sendmail.c:62:14: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | n = str_len(s); | ^ sendmail.c:63:15: warning: passing arguments to 'str_rchr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | a = str_rchr(s, '@'); | ^ sendmail.c:66:13: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | env_put2("QMAILUSER", s); | ^ sendmail.c:69:11: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | env_put2("QMAILHOST", s + a + 1); | ^ sendmail.c:71:21: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | x = (char *) alloc((a + 1) * sizeof(char)); | ^ sendmail.c:76:11: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | env_put2("QMAILUSER", x); | ^ sendmail.c:77:13: warning: passing arguments to 'alloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | alloc_free(x); | ^ sendmail.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | void do_sender(s) | ^ sendmail.c:92:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | if (chdir(auto_qmail) == -1) { | ^ sendmail.c:93:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | substdio_putsflush(subfderr,"sendmail: fatal: unable to switch to qmail home directory\n"); | ^ sendmail.c:99:23: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | while ((opt = getopt(argc,argv,"vimte:f:p:o:B:F:EJxb:")) != opteof) | ^ sendmail.c:104:30: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | case 'F': if (!env_put2("MAILNAME",optarg)) nomem(); break; | ^ sendmail.c:136:7: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | if (str_equal(optprogname,"mailq")) | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ sendmail.c:139:7: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | if (str_equal(optprogname,"newaliases")) { | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ sendmail.c:140:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | substdio_putsflush(subfderr,"sendmail: fatal: please use fastforward/newaliases instead\n"); | ^ sendmail.c:144:27: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | qiargv = (char **) alloc((argc + 10) * sizeof(char *)); | ^ sendmail.c:159:3: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 159 | execv(*qiargv,qiargv); | ^ sendmail.c:160:21: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | substdio_putsflush(subfderr,"sendmail: fatal: unable to run qmail-inject\n"); | ^ sendmail.c:83:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | int main(argc,argv) | ^ 39 warnings generated. ./load sendmail env.a getopt.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile tcp-env.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] tcp-env.c:47:21: warning: passing arguments to 'subgetopt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | while ((opt = sgopt(argc,argv,"rRt:")) != sgoptdone) | ^ tcp-env.c:52:26: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | case 't': scan_ulong(sgoptarg,&timeout); break; | ^ tcp-env.c:61:17: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | proto = env_get("PROTO"); | ^ tcp-env.c:62:24: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (!proto || str_diff(proto,"TCP")) | ^ tcp-env.c:64:16: warning: passing arguments to 'env_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | if (!env_put("PROTO=TCP")) die(); | ^ tcp-env.c:67:51: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 67 | if (getsockname(0,(struct sockaddr *) &salocal,&dummy) == -1) die(); | ^~~~~~ /usr/include/sys/socket.h:690:74: note: passing argument to parameter here 690 | int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ tcp-env.c:70:18: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | temp[fmt_ulong(temp,localport)] = 0; | ^ tcp-env.c:71:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (!env_put2("TCPLOCALPORT",temp)) die(); | ^ tcp-env.c:73:13: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | byte_copy(&iplocal,4,&salocal.sin_addr); | ^ tcp-env.c:74:15: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | temp[ip_fmt(temp,&iplocal)] = 0; | ^ tcp-env.c:75:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | if (!env_put2("TCPLOCALIP",temp)) die(); | ^ tcp-env.c:77:18: warning: passing arguments to 'dns_ptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | switch(dns_ptr(&localname,&iplocal)) | ^ tcp-env.c:81:27: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | if (!stralloc_copys(&localname,"softdnserror")) die(); | ^ tcp-env.c:83:13: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (!stralloc_0(&localname)) die(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ tcp-env.c:84:19: warning: passing arguments to 'case_lowers' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | case_lowers(localname.s); | ^ tcp-env.c:85:21: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | if (!env_put2("TCPLOCALHOST",localname.s)) die(); | ^ tcp-env.c:88:22: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (!env_unset("TCPLOCALHOST")) die(); | ^ tcp-env.c:92:52: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] 92 | if (getpeername(0,(struct sockaddr *) &saremote,&dummy) == -1) die(); | ^~~~~~ /usr/include/sys/socket.h:689:74: note: passing argument to parameter here 689 | int getpeername(int, struct sockaddr * __restrict, socklen_t * __restrict); | ^ tcp-env.c:95:18: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | temp[fmt_ulong(temp,remoteport)] = 0; | ^ tcp-env.c:96:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | if (!env_put2("TCPREMOTEPORT",temp)) die(); | ^ tcp-env.c:98:13: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | byte_copy(&ipremote,4,&saremote.sin_addr); | ^ tcp-env.c:99:15: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | temp[ip_fmt(temp,&ipremote)] = 0; | ^ tcp-env.c:100:17: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (!env_put2("TCPREMOTEIP",temp)) die(); | ^ tcp-env.c:102:18: warning: passing arguments to 'dns_ptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | switch(dns_ptr(&remotename,&ipremote)) | ^ tcp-env.c:106:27: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | if (!stralloc_copys(&remotename,"softdnserror")) die(); | ^ tcp-env.c:108:13: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | if (!stralloc_0(&remotename)) die(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ tcp-env.c:109:19: warning: passing arguments to 'case_lowers' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | case_lowers(remotename.s); | ^ tcp-env.c:110:21: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (!env_put2("TCPREMOTEHOST",remotename.s)) die(); | ^ tcp-env.c:113:22: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | if (!env_unset("TCPREMOTEHOST")) die(); | ^ tcp-env.c:116:18: warning: passing arguments to 'env_unset' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (!env_unset("TCPREMOTEINFO")) die(); | ^ tcp-env.c:120:28: warning: passing arguments to 'remoteinfo_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | rinfo = remoteinfo_get(&ipremote,remoteport,&iplocal,localport,(int) timeout); | ^ tcp-env.c:122:21: warning: passing arguments to 'env_put2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | if (!env_put2("TCPREMOTEINFO",rinfo)) die(); | ^ tcp-env.c:127:2: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | execvp(*argv,argv); | ^ tcp-env.c:33:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 33 | int main(argc,argv) | ^ 34 warnings generated. ./compile remoteinfo.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] remoteinfo.c:19:22: warning: passing arguments to 'timeoutwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | return timeoutwrite(t,fd,buf,len); | ^ remoteinfo.c:17:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | static int mywrite(fd,buf,len) int fd; char *buf; int len; | ^ remoteinfo.c:23:21: warning: passing arguments to 'timeoutread' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | return timeoutread(t,fd,buf,len); | ^ remoteinfo.c:21:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | static int myread(fd,buf,len) int fd; char *buf; int len; | ^ remoteinfo.c:47:12: warning: passing arguments to 'byte_zero' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | byte_zero(&sin,sizeof(sin)); | ^ remoteinfo.c:49:12: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | byte_copy(&sin.sin_addr,4,ipl); | ^ remoteinfo.c:51:61: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | if (bind(s,(struct sockaddr *) &sin,sizeof(sin)) == -1) { close(s); return 0; } | ^ remoteinfo.c:52:18: warning: passing arguments to 'timeoutconn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (timeoutconn(s,ipr,113,timeout) == -1) { close(s); return 0; } | ^ remoteinfo.c:52:47: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 52 | if (timeoutconn(s,ipr,113,timeout) == -1) { close(s); return 0; } | ^ remoteinfo.c:56:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | len += fmt_ulong(line + len,rp); | ^ remoteinfo.c:57:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | len += fmt_str(line + len," , "); | ^ remoteinfo.c:58:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | len += fmt_ulong(line + len,lp); | ^ remoteinfo.c:59:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | len += fmt_str(line + len,"\r\n"); | ^ remoteinfo.c:61:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | substdio_fdbuf(&ss,mywrite,s,buf,sizeof buf); | ^ remoteinfo.c:62:24: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (substdio_putflush(&ss,line,len) == -1) { close(s); return 0; } | ^ remoteinfo.c:62:48: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | if (substdio_putflush(&ss,line,len) == -1) { close(s); return 0; } | ^ remoteinfo.c:64:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | substdio_fdbuf(&ss,myread,s,buf,sizeof buf); | ^ remoteinfo.c:68:21: warning: passing arguments to 'substdio_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | if (substdio_get(&ss,&ch,1) != 1) { close(s); return 0; } | ^ remoteinfo.c:68:41: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | if (substdio_get(&ss,&ch,1) != 1) { close(s); return 0; } | ^ remoteinfo.c:75:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | close(s); | ^ remoteinfo.c:26:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | char *remoteinfo_get(ipr,rp,ipl,lp,timeout) | ^ In file included from remoteinfo.c:12: ./remoteinfo.h:4:14: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern char *remoteinfo_get(); | ^ 22 warnings generated. ./load tcp-env dns.o remoteinfo.o timeoutread.o timeoutwrite.o timeoutconn.o ip.o ipalloc.o case.a ndelay.a sig.a env.a getopt.a stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile qmail-newmrh.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qmail-newmrh.c:15:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | strerr_die2sys(111,FATAL,"unable to read control/morercpthosts: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-newmrh.c:19:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | strerr_die2sys(111,FATAL,"unable to write to control/morercpthosts.tmp: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-newmrh.c:34:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | umask(033); | ^ qmail-newmrh.c:35:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 35 | if (chdir(auto_qmail) == -1) | ^ qmail-newmrh.c:36:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | strerr_die4sys(111,FATAL,"unable to chdir to ",auto_qmail,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ qmail-newmrh.c:38:17: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | fd = open_read("control/morercpthosts"); | ^ qmail-newmrh.c:41:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | substdio_fdbuf(&ssin,read,fd,inbuf,sizeof inbuf); | ^ qmail-newmrh.c:43:22: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | fdtemp = open_trunc("control/morercpthosts.tmp"); | ^ qmail-newmrh.c:46:7: warning: call to undeclared function 'cdbmss_start'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 46 | if (cdbmss_start(&cdbmss,fdtemp) == -1) die_write(); | ^ qmail-newmrh.c:49:14: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (getln(&ssin,&line,&match,'\n') != 0) die_read(); | ^ qmail-newmrh.c:50:5: warning: call to undeclared function 'case_lowerb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 50 | case_lowerb(line.s,line.len); | ^ qmail-newmrh.c:56:6: warning: call to undeclared function 'cdbmss_add'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | if (cdbmss_add(&cdbmss,line.s,line.len,"",0) == -1) | ^ qmail-newmrh.c:63:7: warning: call to undeclared function 'cdbmss_finish'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | if (cdbmss_finish(&cdbmss) == -1) die_write(); | ^ qmail-newmrh.c:64:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | if (fsync(fdtemp) == -1) die_write(); | ^ qmail-newmrh.c:65:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | if (close(fdtemp) == -1) die_write(); /* NFS stupidity */ | ^ qmail-newmrh.c:66:7: warning: call to undeclared function 'rename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 66 | if (rename("control/morercpthosts.tmp","control/morercpthosts.cdb") == -1) | ^ qmail-newmrh.c:67:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | strerr_die2sys(111,FATAL,"unable to move control/morercpthosts.tmp to control/morercpthosts.cdb"); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ 17 warnings generated. ./load qmail-newmrh cdbmss.o getln.a open.a cdbmake.a seek.a case.a stralloc.a alloc.a strerr.a substdio.a error.a str.a auto_qmail.o cat warn-auto.sh config.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > config chmod 755 config cat warn-auto.sh config-fast.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > config-fast chmod 755 config-fast ./compile dnscname.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnscname.c:17:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | if (!stralloc_copys(&sa,argv[1])) | ^ dnscname.c:18:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } | ^ dnscname.c:20:10: warning: passing arguments to 'dns_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | dns_init(0); | ^ dnscname.c:21:18: warning: passing arguments to 'dns_cname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | dnsdoe(dns_cname(&sa)); | ^ dnscname.c:21:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | dnsdoe(dns_cname(&sa)); | ^ dnscname.c:22:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | substdio_putflush(subfdout,sa.s,sa.len); | ^ dnscname.c:23:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | substdio_putsflush(subfdout,"\n"); | ^ dnscname.c:11:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 11 | int main(argc,argv) | ^ 8 warnings generated. ./compile dnsdoe.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnsdoe.c:12:37: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | case DNS_HARD: substdio_putsflush(subfderr,"hard error\n"); _exit(100); | ^ dnsdoe.c:13:37: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | case DNS_SOFT: substdio_putsflush(subfderr,"soft error\n"); _exit(111); | ^ dnsdoe.c:14:36: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | case DNS_MEM: substdio_putsflush(subfderr,"out of memory\n"); _exit(111); | ^ dnsdoe.c:7:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 7 | void dnsdoe(r) | ^ In file included from dnsdoe.c:5: ./dnsdoe.h:4:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 4 | extern void dnsdoe(); | ^ 5 warnings generated. ./load dnscname dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsptr.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnsptr.c:20:9: warning: passing arguments to 'ip_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | ip_scan(argv[1],&ip); | ^ dnsptr.c:22:10: warning: passing arguments to 'dns_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | dns_init(0); | ^ dnsptr.c:23:16: warning: passing arguments to 'dns_ptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | dnsdoe(dns_ptr(&sa,&ip)); | ^ dnsptr.c:23:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | dnsdoe(dns_ptr(&sa,&ip)); | ^ dnsptr.c:24:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | substdio_putflush(subfdout,sa.s,sa.len); | ^ dnsptr.c:25:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | substdio_putsflush(subfdout,"\n"); | ^ dnsptr.c:14:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | int main(argc,argv) | ^ 7 warnings generated. ./load dnsptr dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsip.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnsip.c:23:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | if (!stralloc_copys(&sa,argv[1])) | ^ dnsip.c:24:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } | ^ dnsip.c:26:10: warning: passing arguments to 'dns_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | dns_init(0); | ^ dnsip.c:27:15: warning: passing arguments to 'dns_ip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | dnsdoe(dns_ip(&ia,&sa)); | ^ dnsip.c:27:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | dnsdoe(dns_ip(&ia,&sa)); | ^ dnsip.c:30:37: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); | ^ dnsip.c:30:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); | ^ dnsip.c:31:22: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | substdio_putsflush(subfdout,"\n"); | ^ dnsip.c:15:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | int main(argc,argv) | ^ 9 warnings generated. ./load dnsip dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsmxip.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnsmxip.c:26:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | if (!stralloc_copys(&sa,argv[1])) | ^ dnsmxip.c:27:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } | ^ dnsmxip.c:29:14: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | r = now() + getpid(); | ^ dnsmxip.c:30:10: warning: passing arguments to 'dns_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | dns_init(0); | ^ dnsmxip.c:31:17: warning: passing arguments to 'dns_mxip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | dnsdoe(dns_mxip(&ia,&sa,r)); | ^ dnsmxip.c:31:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | dnsdoe(dns_mxip(&ia,&sa,r)); | ^ dnsmxip.c:34:37: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); | ^ dnsmxip.c:34:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | substdio_put(subfdout,temp,ip_fmt(temp,&ia.ix[j].ip)); | ^ dnsmxip.c:35:17: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | substdio_puts(subfdout," "); | ^ dnsmxip.c:36:40: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref)); | ^ dnsmxip.c:36:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | substdio_put(subfdout,temp,fmt_ulong(temp,(unsigned long) ia.ix[j].pref)); | ^ dnsmxip.c:37:22: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | substdio_putsflush(subfdout,"\n"); | ^ dnsmxip.c:17:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | int main(argc,argv) | ^ 13 warnings generated. ./load dnsmxip dns.o dnsdoe.o ip.o ipalloc.o now.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile dnsfq.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] dnsfq.c:19:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | if (!stralloc_copys(&sa,argv[1])) | ^ dnsfq.c:20:23: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | { substdio_putsflush(subfderr,"out of memory\n"); _exit(111); } | ^ dnsfq.c:22:10: warning: passing arguments to 'dns_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | dns_init(1); | ^ dnsfq.c:23:15: warning: passing arguments to 'dns_ip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | dnsdoe(dns_ip(&ia,&sa)); | ^ dnsfq.c:23:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | dnsdoe(dns_ip(&ia,&sa)); | ^ dnsfq.c:26:22: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | substdio_putsflush(subfderr,"no IP addresses\n"); _exit(100); | ^ dnsfq.c:28:16: warning: passing arguments to 'dns_ptr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | dnsdoe(dns_ptr(&sa,&ia.ix[0].ip)); | ^ dnsfq.c:28:8: warning: passing arguments to 'dnsdoe' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | dnsdoe(dns_ptr(&sa,&ia.ix[0].ip)); | ^ dnsfq.c:29:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | substdio_putflush(subfdout,sa.s,sa.len); | ^ dnsfq.c:30:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_putsflush(subfdout,"\n"); | ^ dnsfq.c:13:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | int main(argc,argv) | ^ 11 warnings generated. ./load dnsfq dns.o dnsdoe.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat dns.lib` `cat socket.lib` ./compile hostname.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] hostname.c:11:2: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 11 | gethostname(host,sizeof(host)); | ^ hostname.c:13:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | substdio_puts(subfdoutsmall,host); | ^ hostname.c:14:15: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | substdio_puts(subfdoutsmall,"\n"); | ^ hostname.c:15:16: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | substdio_flush(subfdoutsmall); | ^ 4 warnings generated. ./load hostname substdio.a error.a str.a `cat dns.lib` `cat socket.lib` ./compile ipmeprint.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ipmeprint.c:14:30: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | case 0: substdio_putsflush(subfderr,"out of memory\n"); _exit(111); | ^ ipmeprint.c:15:31: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | case -1: substdio_putsflush(subfderr,"hard error\n"); _exit(100); | ^ ipmeprint.c:19:37: warning: passing arguments to 'ip_fmt' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | substdio_put(subfdout,temp,ip_fmt(temp,&ipme.ix[j].ip)); | ^ ipmeprint.c:19:16: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | substdio_put(subfdout,temp,ip_fmt(temp,&ipme.ix[j].ip)); | ^ ipmeprint.c:20:17: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | substdio_puts(subfdout,"\n"); | ^ ipmeprint.c:22:16: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | substdio_flush(subfdout); | ^ 6 warnings generated. ./load ipmeprint ipme.o ip.o ipalloc.o stralloc.a alloc.a substdio.a error.a str.a fs.a `cat socket.lib` ./compile qreceipt.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qreceipt.c:24:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | substdio_putsflush(subfderr,"qreceipt: fatal: out of memory\n"); die_temp(); } | ^ qreceipt.c:26:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | substdio_putsflush(subfderr,"qreceipt: fatal: unable to fork\n"); die_temp(); } | ^ qreceipt.c:28:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | substdio_putsflush(subfderr,"qreceipt: fatal: permanent qmail-queue error\n"); die(); } | ^ qreceipt.c:30:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | substdio_putsflush(subfderr,"qreceipt: fatal: temporary qmail-queue error\n"); die_temp(); } | ^ qreceipt.c:32:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | substdio_putsflush(subfderr, | ^ qreceipt.c:36:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | substdio_putsflush(subfderr,"qreceipt: fatal: read error\n"); die_temp(); } | ^ qreceipt.c:39:20: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | substdio_putsflush(subfderr,"qreceipt: fatal: unable to parse this: "); | ^ qreceipt.c:40:19: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | substdio_putflush(subfderr,sa->s,sa->len); die(); } | ^ qreceipt.c:37:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | void doordie(sa,r) stralloc *sa; int r; { | ^ qreceipt.c:50:60: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | int rwnotice(addr) token822_alloc *addr; { token822_reverse(addr); | ^ qreceipt.c:51:22: warning: passing arguments to 'token822_unquote' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | if (token822_unquote(&sanotice,addr) != 1) die_nomem(); | ^ qreceipt.c:52:29: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (sanotice.len == str_len(target)) | ^ qreceipt.c:53:18: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | if (!str_diffn(sanotice.s,target,sanotice.len)) | ^ qreceipt.c:55:18: warning: passing arguments to 'token822_reverse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | token822_reverse(addr); return 1; } | ^ qreceipt.c:50:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | int rwnotice(addr) token822_alloc *addr; { token822_reverse(addr); | ^ qreceipt.c:66:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (str_equal(returnpath,"")) die_noreceipt(); | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qreceipt.c:67:6: warning: passing arguments to 'str_diff' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if (str_equal(returnpath,"#@[]")) die_noreceipt(); | ^ ./str.h:12:34: note: expanded from macro 'str_equal' 12 | #define str_equal(s,t) (!str_diff((s),(t))) | ^ qreceipt.c:69:13: warning: passing arguments to 'quote2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if (!quote2("ed,returnpath)) die_nomem(); | ^ qreceipt.c:71:16: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (qmail_open(&qqt) == -1) die_fork(); | ^ qreceipt.c:73:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | qmail_puts(&qqt,"From: DELIVERY NOTICE SYSTEM <"); | ^ qreceipt.c:74:11: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qreceipt.c:75:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | qmail_puts(&qqt,">\n"); | ^ qreceipt.c:76:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | qmail_puts(&qqt,"To: <"); | ^ qreceipt.c:77:11: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qreceipt.c:78:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | qmail_puts(&qqt,">\n"); | ^ qreceipt.c:79:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | qmail_puts(&qqt,"Subject: success notice\n\ | ^ qreceipt.c:83:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | qmail_puts(&qqt,target); | ^ qreceipt.c:84:12: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | qmail_puts(&qqt,". Thanks for asking.\n"); | ^ qreceipt.c:87:14: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | qmail_puts(&qqt,"Your "); | ^ qreceipt.c:88:13: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | qmail_put(&qqt,messageid.s,messageid.len); | ^ qreceipt.c:91:12: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | qmail_from(&qqt,""); | ^ qreceipt.c:92:10: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | qmail_to(&qqt,returnpath); | ^ qreceipt.c:93:19: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | qqx = qmail_close(&qqt); | ^ qreceipt.c:97:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 97 | else die_qqtemp(); | ^ qreceipt.c:108:21: warning: passing arguments to 'hfield_known' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | switch(hfield_known(h->s,h->len)) | ^ qreceipt.c:111:24: warning: passing arguments to 'stralloc_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (!stralloc_copy(&messageid,h)) die_nomem(); | ^ qreceipt.c:114:30: warning: passing arguments to 'token822_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | doordie(h,token822_parse(&hfin,h,&hfbuf)); | ^ qreceipt.c:115:33: warning: passing arguments to 'token822_addrlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | doordie(h,token822_addrlist(&hfrewrite,&hfaddr,&hfin,rwnotice)); | ^ qreceipt.c:105:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | void doheaderfield(h) | ^ qreceipt.c:120:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | void dobody(h) stralloc *h; { ; } | ^ qreceipt.c:128:28: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | if (!(returnpath = env_get("SENDER"))) die_usage(); | ^ qreceipt.c:129:16: warning: passing arguments to 'headerbody' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | if (headerbody(subfdin,doheaderfield,finishheader,dobody) == -1) die_read(); | ^ qreceipt.c:122:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | int main(argc,argv) | ^ 43 warnings generated. ./load qreceipt headerbody.o hfield.o quote.o token822.o qmail.o getln.a fd.a wait.a sig.a env.a stralloc.a alloc.a substdio.a error.a str.a auto_qmail.o ./compile qsmhook.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qsmhook.c:18:51: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void die(e,s) int e; char *s; { substdio_putsflush(subfderr,s); _exit(e); } | ^ qsmhook.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void die(e,s) int e; char *s; { substdio_putsflush(subfderr,s); _exit(e); } | ^ qsmhook.c:53:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | if (!(dtline = env_get("DTLINE"))) die_usage(); | ^ qsmhook.c:54:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | if (!(rpline = env_get("RPLINE"))) die_usage(); | ^ qsmhook.c:55:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | if (!(ufline = env_get("UFLINE"))) die_usage(); | ^ qsmhook.c:56:23: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | if (!(recip = env_get("LOCAL"))) die_usage(); | ^ qsmhook.c:57:22: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if (!(host = env_get("HOST"))) die_usage(); | ^ qsmhook.c:58:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (!(sender = env_get("SENDER"))) die_usage(); | ^ qsmhook.c:60:22: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | while ((opt = getopt(argc,argv,"DFlMmnPsx:")) != opteof) | ^ qsmhook.c:70:23: warning: passing arguments to 'case_starts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | if (case_starts(recip,optarg)) | ^ qsmhook.c:71:19: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | recip += str_len(optarg); | ^ qsmhook.c:81:20: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 81 | for (arg = argv;x = *arg;++arg) | ~~^~~~~~ qsmhook.c:81:20: note: place parentheses around the assignment to silence this warning 81 | for (arg = argv;x = *arg;++arg) | ^ | ( ) qsmhook.c:81:20: note: use '==' to turn this assignment into an equality comparison 81 | for (arg = argv;x = *arg;++arg) | ^ | == qsmhook.c:83:23: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (!stralloc_copys(&newarg,"")) die_temp(); | ^ qsmhook.c:90:31: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | case '%': if (!stralloc_cats(&newarg,"%")) die_temp(); break; | ^ qsmhook.c:91:31: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | case 'g': if (!stralloc_cats(&newarg,sender)) die_temp(); break; | ^ qsmhook.c:92:31: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | case 'h': if (!stralloc_cats(&newarg,host)) die_temp(); break; | ^ qsmhook.c:93:31: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | case 'u': if (!stralloc_cats(&newarg,recip)) die_temp(); break; | ^ qsmhook.c:101:23: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | if (!stralloc_append(&newarg,&x[i])) die_temp(); | ^ qsmhook.c:102:9: warning: passing arguments to 'stralloc_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | if (!stralloc_0(&newarg)) die_temp(); | ^ ./stralloc.h:19:39: note: expanded from macro 'stralloc_0' 19 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qsmhook.c:103:15: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | i = str_len(newarg.s) + 1; | ^ qsmhook.c:104:19: warning: passing arguments to 'alloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | if (!(x = alloc(i))) die_temp(); | ^ qsmhook.c:105:13: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | byte_copy(x,i,newarg.s); | ^ qsmhook.c:109:6: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | if (pipe(pi) == -1) die_temp(); | ^ qsmhook.c:116:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | close(pi[1]); | ^ qsmhook.c:117:17: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | if (fd_move(0,pi[0]) == -1) die_temp(); | ^ qsmhook.c:119:6: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | execvp(*argv,argv); | ^ qsmhook.c:120:20: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | if (error_temp(errno)) die_temp(); | ^ qsmhook.c:123:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | close(pi[0]); | ^ qsmhook.c:125:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | substdio_fdbuf(&ssout,write,pi[1],outbuf,sizeof(outbuf)); | ^ qsmhook.c:126:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | substdio_fdbuf(&ssin,read,0,inbuf,sizeof(inbuf)); | ^ qsmhook.c:127:32: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | if (flagufline) substdio_bputs(&ssout,ufline); | ^ qsmhook.c:128:32: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | if (flagrpline) substdio_bputs(&ssout,rpline); | ^ qsmhook.c:129:32: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | if (flagdtline) substdio_bputs(&ssout,dtline); | ^ qsmhook.c:130:19: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (substdio_copy(&ssout,&ssin) == -2) die_read(); | ^ qsmhook.c:131:16: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | substdio_flush(&ssout); | ^ qsmhook.c:134:14: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | if (wait_pid(&wstat,pid) == -1) die_temp(); | ^ qsmhook.c:38:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | int main(argc,argv) | ^ 37 warnings generated. ./load qsmhook sig.a case.a fd.a wait.a getopt.a env.a stralloc.a alloc.a substdio.a error.a str.a ./compile qbiff.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] qbiff.c:28:20: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | if (!stralloc_catb(&text,s,n)) _exit(0); | ^ qbiff.c:26:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | void doit(s,n) char *s; int n; | ^ qbiff.c:31:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | void dobody(h) stralloc *h; { doit(h->s,h->len); } | ^ qbiff.c:35:18: warning: passing arguments to 'hfield_known' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | if (hfield_known(h->s,h->len) == H_SUBJECT) | ^ qbiff.c:37:23: warning: passing arguments to 'hfield_skipname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | i = hfield_skipname(h->s,h->len); | ^ qbiff.c:32:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | void doheader(h) stralloc *h; | ^ qbiff.c:51:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | if (chdir("/dev") == -1) _exit(0); | ^ qbiff.c:53:22: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | if (!(user = env_get("USER"))) _exit(0); | ^ qbiff.c:54:24: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | if (!(sender = env_get("SENDER"))) _exit(0); | ^ qbiff.c:55:25: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | if (!(userext = env_get("LOCAL"))) _exit(0); | ^ qbiff.c:56:13: warning: passing arguments to 'str_len' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | if (str_len(user) > sizeof(ut->ut_user)) _exit(0); | ^ qbiff.c:58:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (!stralloc_copys(&tofrom,"*** TO <")) _exit(0); | ^ qbiff.c:59:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | if (!stralloc_cats(&tofrom,userext)) _exit(0); | ^ qbiff.c:60:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | if (!stralloc_cats(&tofrom,"> FROM <")) _exit(0); | ^ qbiff.c:61:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | if (!stralloc_cats(&tofrom,sender)) _exit(0); | ^ qbiff.c:62:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (!stralloc_cats(&tofrom,">")) _exit(0); | ^ qbiff.c:68:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | if (!stralloc_copys(&text," ")) _exit(0); | ^ qbiff.c:69:16: warning: passing arguments to 'headerbody' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if (headerbody(subfdin,doheader,finishheader,dobody) == -1) _exit(0); | ^ qbiff.c:75:21: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | if (!stralloc_copys(&woof,"\015\n\007")) _exit(0); | ^ qbiff.c:76:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (!stralloc_cat(&woof,&tofrom)) _exit(0); | ^ qbiff.c:77:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if (!stralloc_cats(&woof,"\015\n")) _exit(0); | ^ qbiff.c:78:19: warning: passing arguments to 'stralloc_cat' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (!stralloc_cat(&woof,&text)) _exit(0); | ^ qbiff.c:79:20: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | if (!stralloc_cats(&woof,"\015\n")) _exit(0); | ^ qbiff.c:82:49: warning: passing arguments to 'str_diffn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (ut->ut_type == USER_PROCESS && !str_diffn(ut->ut_user,user,sizeof(ut->ut_user))) | ^ qbiff.c:84:15: warning: passing arguments to 'byte_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | byte_copy(line,sizeof(ut->ut_line),ut->ut_line); | ^ qbiff.c:88:22: warning: passing arguments to 'str_chr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (line[str_chr(line,'.')]) continue; | ^ qbiff.c:89:25: warning: passing arguments to 'open_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | fdtty = open_append(line); | ^ qbiff.c:91:36: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | if (fstat(fdtty,&st) == -1) { close(fdtty); continue; } | ^ qbiff.c:92:34: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | if (!(st.st_mode & 0100)) { close(fdtty); continue; } | ^ qbiff.c:93:23: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (st.st_uid != getuid()) { close(fdtty); continue; } | ^ qbiff.c:93:35: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | if (st.st_uid != getuid()) { close(fdtty); continue; } | ^ qbiff.c:94:20: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | substdio_fdbuf(&sstty,write,fdtty,buftty,sizeof(buftty)); | ^ qbiff.c:95:23: warning: passing arguments to 'substdio_putflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | substdio_putflush(&sstty,woof.s,woof.len); | ^ qbiff.c:96:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 96 | close(fdtty); | ^ 34 warnings generated. ./load qbiff headerbody.o hfield.o getln.a env.a open.a stralloc.a alloc.a substdio.a error.a str.a ./compile forward.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] forward.c:12:20: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | void die_nomem() { strerr_die2x(111,FATAL,"out of memory"); } | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ forward.c:18:12: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | qmail_put(&qqt,buf,len); | ^ forward.c:16:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | int mywrite(fd,buf,len) int fd; char *buf; int len; | ^ forward.c:39:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | sender = env_get("NEWSENDER"); | ^ forward.c:41:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | strerr_die2x(100,FATAL,"NEWSENDER not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ forward.c:42:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | dtline = env_get("DTLINE"); | ^ forward.c:44:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | strerr_die2x(100,FATAL,"DTLINE not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ forward.c:46:17: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if (qmail_open(&qqt) == -1) | ^ forward.c:47:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ forward.c:48:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | qmail_puts(&qqt,dtline); | ^ forward.c:49:20: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (substdio_copy(&ssout,&ssin) != 0) | ^ forward.c:50:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | strerr_die2sys(111,FATAL,"unable to read message: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ forward.c:51:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | substdio_flush(&ssout); | ^ forward.c:53:29: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | num[fmt_ulong(num,qmail_qp(&qqt))] = 0; | ^ forward.c:53:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | num[fmt_ulong(num,qmail_qp(&qqt))] = 0; | ^ forward.c:55:13: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | qmail_from(&qqt,sender); | ^ forward.c:56:27: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | while (*++argv) qmail_to(&qqt,*argv); | ^ forward.c:57:20: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | qqx = qmail_close(&qqt); | ^ forward.c:58:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | if (*qqx) strerr_die2x(*qqx == 'D' ? 100 : 111,FATAL,qqx + 1); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ forward.c:59:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | strerr_die2x(0,"forward: qp ",num); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ forward.c:29:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | int main(argc,argv) | ^ 21 warnings generated. ./load forward qmail.o strerr.a alloc.a fd.a wait.a sig.a env.a substdio.a error.a str.a fs.a auto_qmail.o ./compile preline.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] preline.c:17:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | strerr_die1x(100,"preline: usage: preline cmd [ arg ... ]"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ preline.c:40:25: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | if (!(ufline = env_get("UFLINE"))) die_usage(); | ^ preline.c:41:25: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | if (!(rpline = env_get("RPLINE"))) die_usage(); | ^ preline.c:42:25: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | if (!(dtline = env_get("DTLINE"))) die_usage(); | ^ preline.c:44:23: warning: passing arguments to 'sgetoptmine' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | while ((opt = getopt(argc,argv,"frdFRD")) != opteof) | ^ preline.c:58:7: warning: call to undeclared function 'pipe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 58 | if (pipe(pi) == -1) | ^ preline.c:59:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | strerr_die2sys(111,FATAL,"unable to create pipe: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:63:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:66:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 66 | close(pi[1]); | ^ preline.c:67:16: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if (fd_move(0,pi[0]) == -1) | ^ preline.c:68:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | strerr_die2sys(111,FATAL,"unable to set up fds: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:70:5: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 70 | execvp(*argv,argv); | ^ preline.c:71:30: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | strerr_die4sys(error_temp(errno) ? 111 : 100,FATAL,"unable to run ",*argv,": "); | ^ preline.c:71:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | strerr_die4sys(error_temp(errno) ? 111 : 100,FATAL,"unable to run ",*argv,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:73:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | close(pi[0]); | ^ preline.c:74:14: warning: passing arguments to 'fd_move' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | if (fd_move(1,pi[1]) == -1) | ^ preline.c:75:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | strerr_die2sys(111,FATAL,"unable to set up fds: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:77:33: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if (flagufline) substdio_bputs(&ssout,ufline); | ^ preline.c:78:33: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (flagrpline) substdio_bputs(&ssout,rpline); | ^ preline.c:79:33: warning: passing arguments to 'substdio_bputs' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | if (flagdtline) substdio_bputs(&ssout,dtline); | ^ preline.c:80:20: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | if (substdio_copy(&ssout,&ssin) != 0) | ^ preline.c:81:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | strerr_die2sys(111,FATAL,"unable to copy input: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:82:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | substdio_flush(&ssout); | ^ preline.c:85:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | if (wait_pid(&wstat,pid) == -1) | ^ preline.c:86:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | strerr_die2sys(111,FATAL,"wait failed: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ preline.c:88:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | strerr_die2x(111,FATAL,"child crashed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ preline.c:29:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | int main(argc,argv) | ^ 27 warnings generated. ./load preline strerr.a fd.a wait.a sig.a env.a getopt.a substdio.a error.a str.a ./compile condredirect.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] condredirect.c:20:12: warning: passing arguments to 'qmail_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | qmail_put(&qqt,buf,len); | ^ condredirect.c:18:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | int mywrite(fd,buf,len) int fd; char *buf; int len; | ^ condredirect.c:42:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | strerr_die1x(100,"condredirect: usage: condredirect newaddress program [ arg ... ]"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:46:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ condredirect.c:48:5: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | execvp(argv[2],argv + 2); | ^ condredirect.c:49:19: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (error_temp(errno)) _exit(111); | ^ condredirect.c:52:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (wait_pid(&wstat,pid) == -1) | ^ condredirect.c:53:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | strerr_die2x(111,FATAL,"wait failed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:55:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | strerr_die2x(111,FATAL,"child crashed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:58:15: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | case 111: strerr_die2x(111,FATAL,"temporary child error"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:62:7: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (seek_begin(0) == -1) | ^ ./seek.h:13:33: note: expanded from macro 'seek_begin' 13 | #define seek_begin(fd) (seek_set((fd),(seek_pos) 0)) | ^ condredirect.c:63:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | strerr_die2sys(111,FATAL,"unable to rewind: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ condredirect.c:66:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | sender = env_get("SENDER"); | ^ condredirect.c:67:16: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if (!sender) strerr_die2x(100,FATAL,"SENDER not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:68:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | dtline = env_get("DTLINE"); | ^ condredirect.c:69:16: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | if (!dtline) strerr_die2x(100,FATAL,"DTLINE not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:71:17: warning: passing arguments to 'qmail_open' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | if (qmail_open(&qqt) == -1) | ^ condredirect.c:72:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ condredirect.c:73:13: warning: passing arguments to 'qmail_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | qmail_puts(&qqt,dtline); | ^ condredirect.c:74:20: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | if (substdio_copy(&ssout,&ssin) != 0) | ^ condredirect.c:75:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | strerr_die2sys(111,FATAL,"unable to read message: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ condredirect.c:76:17: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_flush(&ssout); | ^ condredirect.c:78:29: warning: passing arguments to 'qmail_qp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | num[fmt_ulong(num,qmail_qp(&qqt))] = 0; | ^ condredirect.c:78:16: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | num[fmt_ulong(num,qmail_qp(&qqt))] = 0; | ^ condredirect.c:80:13: warning: passing arguments to 'qmail_from' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | qmail_from(&qqt,sender); | ^ condredirect.c:81:11: warning: passing arguments to 'qmail_to' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | qmail_to(&qqt,argv[1]); | ^ condredirect.c:82:20: warning: passing arguments to 'qmail_close' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | qqx = qmail_close(&qqt); | ^ condredirect.c:83:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | if (*qqx) strerr_die2x(*qqx == 'D' ? 100 : 111,FATAL,qqx + 1); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:84:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | strerr_die2x(99,"condredirect: qp ",num); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ condredirect.c:31:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | int main(argc,argv) | ^ 30 warnings generated. ./load condredirect qmail.o strerr.a fd.a sig.a wait.a seek.a env.a substdio.a error.a str.a fs.a auto_qmail.o ./compile bouncesaying.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] bouncesaying.c:18:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | strerr_die1x(100,"bouncesaying: usage: bouncesaying error [ program [ arg ... ] ]"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ bouncesaying.c:23:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ bouncesaying.c:25:7: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 25 | execvp(argv[2],argv + 2); | ^ bouncesaying.c:26:21: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 26 | if (error_temp(errno)) _exit(111); | ^ bouncesaying.c:29:17: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | if (wait_pid(&wstat,pid) == -1) | ^ bouncesaying.c:30:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | strerr_die2x(111,FATAL,"wait failed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ bouncesaying.c:32:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | strerr_die2x(111,FATAL,"child crashed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ bouncesaying.c:35:17: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | case 111: strerr_die2x(111,FATAL,"temporary child error"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ bouncesaying.c:40:3: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | strerr_die1x(100,argv[1]); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ bouncesaying.c:10:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 10 | int main(argc,argv) | ^ 10 warnings generated. ./load bouncesaying strerr.a error.a substdio.a str.a wait.a ./compile except.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] except.c:17:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 17 | strerr_die1x(100,"except: usage: except program [ arg ... ]"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ except.c:21:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ except.c:23:5: warning: call to undeclared function 'execvp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | execvp(argv[1],argv + 1); | ^ except.c:24:19: warning: passing arguments to 'error_temp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 24 | if (error_temp(errno)) _exit(111); | ^ except.c:28:15: warning: passing arguments to 'wait_pid' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | if (wait_pid(&wstat,pid) == -1) | ^ except.c:29:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | strerr_die2x(111,FATAL,"wait failed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ except.c:31:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | strerr_die2x(111,FATAL,"child crashed"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ except.c:34:15: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | case 111: strerr_die2x(111,FATAL,"temporary child error"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ except.c:9:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | int main(argc,argv) | ^ 9 warnings generated. ./load except strerr.a error.a substdio.a str.a wait.a ./compile maildirmake.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] maildirmake.c:10:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 10 | umask(077); | ^ maildirmake.c:12:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | strerr_die1x(100,"maildirmake: usage: maildirmake name"); | ^ ./strerr.h:78:11: note: expanded from macro 'strerr_die1x' 78 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildirmake.c:13:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 13 | if (mkdir(argv[1],0700) == -1) | ^ maildirmake.c:14:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | strerr_die4sys(111,FATAL,"unable to mkdir ",argv[1],": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildirmake.c:15:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 15 | if (chdir(argv[1]) == -1) | ^ maildirmake.c:16:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | strerr_die4sys(111,FATAL,"unable to chdir to ",argv[1],": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildirmake.c:18:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | strerr_die4sys(111,FATAL,"unable to mkdir ",argv[1],"/tmp: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildirmake.c:20:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 20 | strerr_die4sys(111,FATAL,"unable to mkdir ",argv[1],"/new: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildirmake.c:22:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | strerr_die4sys(111,FATAL,"unable to mkdir ",argv[1],"/cur: "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildirmake.c:6:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 6 | int main(argc,argv) | ^ 10 warnings generated. ./load maildirmake strerr.a substdio.a error.a str.a ./compile maildir2mbox.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] maildir2mbox.c:34:20: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | void die_nomem() { strerr_die2x(111,FATAL,"out of memory"); } | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildir2mbox.c:47:2: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | umask(077); | ^ maildir2mbox.c:49:16: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | mbox = env_get("MAIL"); | ^ maildir2mbox.c:50:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | if (!mbox) strerr_die2x(111,FATAL,"MAIL not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildir2mbox.c:51:19: warning: passing arguments to 'env_get' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | mboxtmp = env_get("MAILTMP"); | ^ maildir2mbox.c:52:16: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | if (!mboxtmp) strerr_die2x(111,FATAL,"MAILTMP not set"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildir2mbox.c:55:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | strerr_die1(111,FATAL,&maildir_chdir_err); | ^ ./strerr.h:52:11: note: expanded from macro 'strerr_die1' 52 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ maildir2mbox.c:56:15: warning: passing arguments to 'maildir_clean' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | maildir_clean(&filenames); | ^ maildir2mbox.c:57:18: warning: passing arguments to 'maildir_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if (maildir_scan(&pq,&filenames,1,1) == -1) | ^ maildir2mbox.c:58:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | strerr_die1(111,FATAL,&maildir_scan_err); | ^ ./strerr.h:52:11: note: expanded from macro 'strerr_die1' 52 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ maildir2mbox.c:60:16: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | if (!prioq_min(&pq,&pe)) _exit(0); /* nothing new */ | ^ maildir2mbox.c:62:22: warning: passing arguments to 'open_append' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | fdlock = open_append(mbox); | ^ maildir2mbox.c:64:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | strerr_die4sys(111,FATAL,"unable to lock ",mbox,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:65:13: warning: passing arguments to 'lock_ex' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | if (lock_ex(fdlock) == -1) | ^ maildir2mbox.c:66:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | strerr_die4sys(111,FATAL,"unable to lock ",mbox,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:68:23: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | fdoldmbox = open_read(mbox); | ^ maildir2mbox.c:70:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | strerr_die4sys(111,FATAL,"unable to read ",mbox,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:72:24: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | fdnewmbox = open_trunc(mboxtmp); | ^ maildir2mbox.c:74:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | strerr_die4sys(111,FATAL,"unable to create ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:76:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_fdbuf(&ssin,read,fdoldmbox,inbuf,sizeof(inbuf)); | ^ maildir2mbox.c:77:16: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | substdio_fdbuf(&ssout,write,fdnewmbox,outbuf,sizeof(outbuf)); | ^ maildir2mbox.c:79:22: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | switch(substdio_copy(&ssout,&ssin)) | ^ maildir2mbox.c:81:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | case -2: strerr_die4sys(111,FATAL,"unable to read ",mbox,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:82:13: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | case -3: strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:85:18: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | while (prioq_min(&pq,&pe)) | ^ maildir2mbox.c:87:16: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | prioq_delmin(&pq); | ^ maildir2mbox.c:88:21: warning: passing arguments to 'prioq_insert' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (!prioq_insert(&pq2,&pe)) die_nomem(); | ^ maildir2mbox.c:90:18: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | fd = open_read(filenames.s + pe.id); | ^ maildir2mbox.c:92:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | strerr_die4sys(111,FATAL,"unable to read $MAILDIR/",filenames.s + pe.id,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:93:18: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 93 | substdio_fdbuf(&ssin,read,fd,inbuf,sizeof(inbuf)); | ^ maildir2mbox.c:95:13: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | if (getln(&ssin,&line,&match,'\n') != 0) | ^ maildir2mbox.c:96:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | strerr_die4sys(111,FATAL,"unable to read $MAILDIR/",filenames.s + pe.id,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:98:23: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | if (!stralloc_copys(&ufline,"From XXX ")) die_nomem(); | ^ maildir2mbox.c:100:25: warning: passing arguments to 'stralloc_starts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (stralloc_starts(&line,"Return-Path: <")) | ^ maildir2mbox.c:104:29: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | if (!stralloc_copys(&ufline,"From MAILER-DAEMON ")) die_nomem(); | ^ maildir2mbox.c:109:29: warning: passing arguments to 'stralloc_ready' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (!stralloc_ready(&ufline,line.len)) die_nomem(); | ^ maildir2mbox.c:110:29: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | if (!stralloc_copys(&ufline,"From ")) die_nomem(); | ^ maildir2mbox.c:116:28: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if (!stralloc_cats(&ufline," ")) die_nomem(); | ^ maildir2mbox.c:119:38: warning: passing arguments to 'myctime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | if (!stralloc_cats(&ufline,myctime(pe.dt))) die_nomem(); | ^ maildir2mbox.c:119:22: warning: passing arguments to 'stralloc_cats' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | if (!stralloc_cats(&ufline,myctime(pe.dt))) die_nomem(); | ^ maildir2mbox.c:120:20: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | if (substdio_put(&ssout,ufline.s,ufline.len) == -1) | ^ maildir2mbox.c:121:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:125:15: warning: passing arguments to 'gfrom' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | if (gfrom(line.s,line.len)) | ^ maildir2mbox.c:126:25: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | if (substdio_puts(&ssout,">") == -1) | ^ maildir2mbox.c:127:10: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:128:22: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | if (substdio_put(&ssout,line.s,line.len) == -1) | ^ maildir2mbox.c:129:8: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:132:25: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | if (substdio_puts(&ssout,"\n") == -1) | ^ maildir2mbox.c:133:10: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 133 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:136:15: warning: passing arguments to 'getln' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | if (getln(&ssin,&line,&match,'\n') != 0) | ^ maildir2mbox.c:137:8: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 137 | strerr_die4sys(111,FATAL,"unable to read $MAILDIR/",filenames.s + pe.id,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:139:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | if (substdio_puts(&ssout,"\n")) | ^ maildir2mbox.c:140:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:142:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 142 | close(fd); | ^ maildir2mbox.c:145:20: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (substdio_flush(&ssout) == -1) | ^ maildir2mbox.c:146:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:147:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | if (fsync(fdnewmbox) == -1) | ^ maildir2mbox.c:148:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:149:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | if (close(fdnewmbox) == -1) /* NFS dorks */ | ^ maildir2mbox.c:150:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | strerr_die4sys(111,FATAL,"unable to write to ",mboxtmp,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ maildir2mbox.c:151:6: warning: call to undeclared function 'rename'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 151 | if (rename(mboxtmp,mbox) == -1) | ^ maildir2mbox.c:152:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | strerr_die6(111,FATAL,"unable to move ",mboxtmp," to ",mbox,": ",&strerr_sys); | ^ ./strerr.h:42:11: note: expanded from macro 'strerr_die6' 42 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ maildir2mbox.c:154:18: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | while (prioq_min(&pq2,&pe)) | ^ maildir2mbox.c:156:16: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | prioq_delmin(&pq2); | ^ maildir2mbox.c:157:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 157 | if (unlink(filenames.s + pe.id) == -1) | ^ maildir2mbox.c:158:6: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | strerr_warn4(WARNING,"$MAILDIR/",filenames.s + pe.id," will be delivered twice; unable to unlink: ",&strerr_sys); | ^ ./strerr.h:33:12: note: expanded from macro 'strerr_warn4' 33 | strerr_warn((x1),(x2),(x3),(x4),(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ 66 warnings generated. ./load maildir2mbox maildir.o prioq.o now.o myctime.o gfrom.o lock.a getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a str.a fs.a datetime.a ./compile maildirwatch.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] maildirwatch.c:16:20: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | void die_nomem() { strerr_die2x(111,FATAL,"out of memory"); } | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildirwatch.c:25:20: warning: passing arguments to 'stralloc_catb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | if (!stralloc_catb(&text,s,n)) die_nomem(); | ^ maildirwatch.c:23:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | void addtext(s,n) char *s; int n; | ^ maildirwatch.c:28:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | void dobody(h) stralloc *h; { addtext(h->s,h->len); } | ^ maildirwatch.c:32:21: warning: passing arguments to 'hfield_known' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | switch(hfield_known(h->s,h->len)) | ^ maildirwatch.c:35:25: warning: passing arguments to 'hfield_skipname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 35 | i = hfield_skipname(h->s,h->len); | ^ maildirwatch.c:39:25: warning: passing arguments to 'hfield_skipname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 39 | i = hfield_skipname(h->s,h->len); | ^ maildirwatch.c:41:27: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | if (!stralloc_copyb(&recipient,h->s + i,h->len - i - 1)) die_nomem(); | ^ maildirwatch.c:44:25: warning: passing arguments to 'hfield_skipname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | i = hfield_skipname(h->s,h->len); | ^ maildirwatch.c:46:27: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | if (!stralloc_copyb(&sender,h->s + i,h->len - i - 1)) die_nomem(); | ^ maildirwatch.c:49:25: warning: passing arguments to 'stralloc_copyb' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 49 | if (!stralloc_copyb(&fromline,h->s,h->len - 1)) die_nomem(); | ^ maildirwatch.c:29:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | void doheader(h) stralloc *h; | ^ maildirwatch.c:68:4: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | strerr_die1(111,FATAL,&maildir_chdir_err); | ^ ./strerr.h:52:11: note: expanded from macro 'strerr_die1' 52 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ maildirwatch.c:72:17: warning: passing arguments to 'maildir_clean' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | maildir_clean(&filenames); | ^ maildirwatch.c:73:20: warning: passing arguments to 'maildir_scan' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | if (maildir_scan(&pq,&filenames,1,0) == -1) | ^ maildirwatch.c:74:6: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | strerr_die1(111,FATAL,&maildir_scan_err); | ^ ./strerr.h:52:11: note: expanded from macro 'strerr_die1' 52 | strerr_die((e),(x1),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ maildirwatch.c:76:22: warning: passing arguments to 'substdio_putsflush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | substdio_putsflush(subfdout,"\033[;H\033[;J"); | ^ maildirwatch.c:78:20: warning: passing arguments to 'prioq_min' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | while (prioq_min(&pq,&pe)) | ^ maildirwatch.c:80:18: warning: passing arguments to 'prioq_delmin' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | prioq_delmin(&pq); | ^ maildirwatch.c:82:20: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | fd = open_read(filenames.s + pe.id); | ^ maildirwatch.c:84:20: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | substdio_fdbuf(&ssin,read,fd,inbuf,sizeof(inbuf)); | ^ maildirwatch.c:86:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | if (!stralloc_copys(&sender,"?")) die_nomem(); | ^ maildirwatch.c:87:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | if (!stralloc_copys(&recipient,"?")) die_nomem(); | ^ maildirwatch.c:88:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | if (!stralloc_copys(&fromline,"")) die_nomem(); | ^ maildirwatch.c:89:25: warning: passing arguments to 'stralloc_copys' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | if (!stralloc_copys(&text,"")) die_nomem(); | ^ maildirwatch.c:90:20: warning: passing arguments to 'headerbody' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | if (headerbody(&ssin,doheader,finishheader,dobody) == -1) | ^ maildirwatch.c:91:8: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | strerr_die2x(111,FATAL,"trouble reading new message"); | ^ ./strerr.h:76:11: note: expanded from macro 'strerr_die2x' 76 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ maildirwatch.c:105:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | substdio_puts(subfdout,"FROM "); | ^ maildirwatch.c:106:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | substdio_put(subfdout,sender.s,sender.len); | ^ maildirwatch.c:107:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | substdio_puts(subfdout," TO <"); | ^ maildirwatch.c:108:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | substdio_put(subfdout,recipient.s,recipient.len); | ^ maildirwatch.c:109:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | substdio_puts(subfdout,">\n"); | ^ maildirwatch.c:112:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | substdio_puts(subfdout,"\033[1m"); | ^ maildirwatch.c:113:20: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | substdio_put(subfdout,fromline.s,fromline.len); | ^ maildirwatch.c:114:21: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | substdio_puts(subfdout,"\033[0m\n"); | ^ maildirwatch.c:116:18: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | substdio_put(subfdout,text.s,text.len); | ^ maildirwatch.c:117:19: warning: passing arguments to 'substdio_puts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | substdio_puts(subfdout,"\n\n"); | ^ maildirwatch.c:119:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 119 | close(fd); | ^ maildirwatch.c:122:18: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | substdio_flush(subfdout); | ^ maildirwatch.c:123:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | sleep(30); | ^ 40 warnings generated. ./load maildirwatch hfield.o headerbody.o maildir.o prioq.o now.o getln.a env.a open.a strerr.a stralloc.a alloc.a substdio.a error.a str.a cat warn-auto.sh qail.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > qail chmod 755 qail cat warn-auto.sh elq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > elq chmod 755 elq cat warn-auto.sh pinq.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPLIT}"`head -1 conf-split`"}g > pinq chmod 755 pinq ./compile idedit.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] idedit.c:25:21: warning: passing arguments to 'scan_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | if (pos[scan_ulong(pos,&u)]) return; | ^ idedit.c:27:15: warning: passing arguments to 'seek_set' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | if (seek_set(fd,(seek_pos) u) == -1) | ^ idedit.c:28:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 28 | strerr_die2sys(111,FATAL,"unable to seek: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:31:12: warning: passing arguments to 'write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | if (write(fd,&ch,1) != 1) | ^ idedit.c:32:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | strerr_die2sys(111,FATAL,"unable to write: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:18:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 18 | void byte(pos,value) | ^ idedit.c:44:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 44 | strerr_die2sys(111,FATAL,"unable to fork: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:47:5: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | execv(*args,args); | ^ idedit.c:48:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | strerr_die4sys(111,WARNING,"unable to run ",*args,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:51:7: warning: call to undeclared function 'wait_pid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | if (wait_pid(&wstat,pid) != pid) | ^ idedit.c:52:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | strerr_die2sys(111,FATAL,"waitpid surprise"); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:80:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | strerr_die3x(111,FATAL,"unable to find uid for ",account); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ idedit.c:88:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | strerr_die3x(111,FATAL,"excessively large uid for ",account); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ idedit.c:55:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | void u(account,group,home,pos0,pos1,pos2,pos3) | ^ idedit.c:112:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | strerr_die3x(111,FATAL,"unable to find gid for ",group); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ idedit.c:120:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | strerr_die3x(111,FATAL,"excessively large gid for ",group); | ^ ./strerr.h:74:11: note: expanded from macro 'strerr_die3x' 74 | strerr_die((e),(x1),(x2),(x3),(char *) 0,(char *) 0,(char *) 0,(struct strerr *) 0) | ^ idedit.c:91:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | void g(group,pos0,pos1,pos2,pos3) | ^ idedit.c:129:18: warning: passing arguments to 'open_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | fd = open_write(argv[1]); | ^ idedit.c:130:17: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | if (fd == -1) strerr_die4sys(111,FATAL,"unable to open ",argv[1],": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ idedit.c:123:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | int main(argc,argv) | ^ 20 warnings generated. ./load idedit strerr.a substdio.a error.a str.a fs.a wait.a open.a seek.a ./compile install-big.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] install-big.c:17:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | d(auto_qmail,base,uid,auto_gidq,mode); | ^ install-big.c:21:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | x += fmt_str(x,base); | ^ install-big.c:22:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | x += fmt_str(x,"/"); | ^ install-big.c:23:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | x += fmt_ulong(x,i); | ^ install-big.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void dsplit(base,uid,mode) | ^ install-big.c:32:3: warning: call to undeclared function 'h'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | h(auto_qmail,auto_uido,auto_gidq,0755); | ^ install-big.c:34:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | d(auto_qmail,"control",auto_uido,auto_gidq,0755); | ^ install-big.c:63:3: warning: call to undeclared function 'z'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); | ^ install-big.c:65:3: warning: call to undeclared function 'p'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); | ^ install-big.c:67:3: warning: call to undeclared function 'c'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | c(auto_qmail,"boot","home",auto_uido,auto_gidq,0755); | ^ 10 warnings generated. ./compile install.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] install.c:13:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 13 | noc; /* hack for bin package install -- see port pkg/INSTALL */ | ^ | int install.c:21:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 21 | if (mkdir(home,0700) == -1) | ^ install.c:23:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | strerr_die4sys(111,FATAL,"unable to mkdir ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:24:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 24 | if (chown(home,uid,gid) == -1) | ^ install.c:25:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | strerr_die4sys(111,FATAL,"unable to chown ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:26:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 26 | if (chmod(home,mode) == -1) | ^ install.c:27:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | strerr_die4sys(111,FATAL,"unable to chmod ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:15:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | void h(home,uid,gid,mode) | ^ install.c:37:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | if (chdir(home) == -1) | ^ install.c:38:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:39:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | if (mkdir(subdir,0700) == -1) | ^ install.c:41:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | strerr_die6sys(111,FATAL,"unable to mkdir ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:42:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | if (chown(subdir,uid,gid) == -1) | ^ install.c:43:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:44:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | if (chmod(subdir,mode) == -1) | ^ install.c:45:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:30:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | void d(home,subdir,uid,gid,mode) | ^ install.c:55:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | if (chdir(home) == -1) | ^ install.c:56:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:57:7: warning: call to undeclared function 'fifo_make'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | if (fifo_make(fifo,0700) == -1) | ^ install.c:59:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | strerr_die6sys(111,FATAL,"unable to mkfifo ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:60:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | if (chown(fifo,uid,gid) == -1) | ^ install.c:61:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:62:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | if (chmod(fifo,mode) == -1) | ^ install.c:63:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | void p(home,fifo,uid,gid,mode) | ^ install.c:83:7: warning: call to undeclared function 'fchdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | if (fchdir(fdsourcedir) == -1) | ^ install.c:84:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | strerr_die2sys(111,FATAL,"unable to switch back to source directory: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:86:19: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | fdin = open_read(file); | ^ install.c:88:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | strerr_die4sys(111,FATAL,"unable to read ",file,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:89:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | substdio_fdbuf(&ssin,read,fdin,inbuf,sizeof inbuf); | ^ install.c:91:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | if (chdir(home) == -1) | ^ install.c:92:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:94:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | strerr_die6sys(111,FATAL,"unable to switch to ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:96:21: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | fdout = open_trunc(file); | ^ install.c:98:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:99:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | substdio_fdbuf(&ssout,write,fdout,outbuf,sizeof outbuf); | ^ install.c:101:23: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | switch(substdio_copy(&ssout,&ssin)) { | ^ install.c:103:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | strerr_die4sys(111,FATAL,"unable to read ",file,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:105:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:108:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | close(fdin); | ^ install.c:109:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (substdio_flush(&ssout) == -1) | ^ install.c:110:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:111:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | if (fsync(fdout) == -1) | ^ install.c:112:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:114:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:116:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | if (chown(file,uid,gid) == -1) | ^ install.c:117:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | strerr_die6sys(111,FATAL,"unable to chown .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:118:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | if (chmod(file,mode) == -1) | ^ install.c:119:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | void c(home,subdir,file,uid,gid,mode) | ^ install.c:133:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | if (chdir(home) == -1) | ^ install.c:134:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:136:21: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | fdout = open_trunc(file); | ^ install.c:138:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:139:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | substdio_fdbuf(&ssout,write,fdout,outbuf,sizeof outbuf); | ^ install.c:142:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | if (substdio_put(&ssout,"",1) == -1) | ^ install.c:143:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:145:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (substdio_flush(&ssout) == -1) | ^ install.c:146:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:147:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | if (fsync(fdout) == -1) | ^ install.c:148:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:149:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | if (close(fdout) == -1) /* NFS silliness */ | ^ install.c:150:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:152:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | if (chown(file,uid,gid) == -1) | ^ install.c:153:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:154:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | if (chmod(file,mode) == -1) | ^ install.c:155:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:123:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | void z(home,file,len,uid,gid,mode) | ^ install.c:161:26: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | fdsourcedir = open_read("."); | ^ install.c:163:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | strerr_die2sys(111,FATAL,"unable to open current directory: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:165:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 165 | umask(077); | ^ 72 warnings generated. ./load install-big fifo.o install.o auto_qmail.o auto_split.o auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a ./compile hier.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] hier.c:17:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | d(auto_qmail,base,uid,auto_gidq,mode); | ^ hier.c:21:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | x += fmt_str(x,base); | ^ hier.c:22:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | x += fmt_str(x,"/"); | ^ hier.c:23:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | x += fmt_ulong(x,i); | ^ hier.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void dsplit(base,uid,mode) | ^ hier.c:32:3: warning: call to undeclared function 'h'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | h(auto_qmail,auto_uido,auto_gidq,0755); | ^ hier.c:34:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | d(auto_qmail,"control",auto_uido,auto_gidq,0755); | ^ hier.c:53:3: warning: call to undeclared function 'z'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); | ^ hier.c:55:3: warning: call to undeclared function 'p'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); | ^ hier.c:59:3: warning: call to undeclared function 'c'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | c(auto_qmail,"bin","qmail-queue",auto_uidq,auto_gidq,04711); | ^ 10 warnings generated. ./load install fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a ./compile instcheck.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] instcheck.c:27:7: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," does not exist",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:29:7: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | strerr_warn4(WARNING,"unable to stat .../",file,": ",&strerr_sys); | ^ ./strerr.h:33:12: note: expanded from macro 'strerr_warn4' 33 | strerr_warn((x1),(x2),(x3),(x4),(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ instcheck.c:34:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong owner",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:36:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong group",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:38:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong permissions",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:40:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong type",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:13:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | void perm(prefix1,prefix2,prefix3,file,type,uid,gid,mode) | ^ instcheck.c:43:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | void h(home,uid,gid,mode) | ^ instcheck.c:59:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | if (chdir(home) == -1) | ^ instcheck.c:60:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | void d(home,subdir,uid,gid,mode) | ^ instcheck.c:71:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | if (chdir(home) == -1) | ^ instcheck.c:72:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:64:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | void p(home,fifo,uid,gid,mode) | ^ instcheck.c:84:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | if (chdir(home) == -1) | ^ instcheck.c:85:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:87:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | strerr_die6sys(111,FATAL,"unable to switch to ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ instcheck.c:76:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | void c(home,subdir,file,uid,gid,mode) | ^ instcheck.c:99:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | if (chdir(home) == -1) | ^ instcheck.c:100:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:91:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | void z(home,file,len,uid,gid,mode) | ^ 21 warnings generated. ./load instcheck fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o strerr.a substdio.a error.a str.a fs.a cat home.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home chmod 755 home cat home+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > home+df chmod 755 home+df cat proc.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc chmod 755 proc cat proc+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > proc+df chmod 755 proc+df cat binm1.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1 chmod 755 binm1 cat binm1+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm1+df chmod 755 binm1+df cat binm2.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2 chmod 755 binm2 cat binm2+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm2+df chmod 755 binm2+df cat binm3.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3 chmod 755 binm3 cat binm3+df.sh | sed s}QMAIL}"`head -1 conf-qmail`"}g > binm3+df chmod 755 binm3+df chmod 755 update_tmprsadh cat dot-qmail.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > dot-qmail.5 cat qmail-control.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-control.5 cat qmail-getpw.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-getpw.8 cat qmail-limits.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-limits.7 cat qmail-newmrh.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-newmrh.8 cat qmail-newu.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-newu.8 cat qmail-pw2u.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-pw2u.8 cat qmail-send.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-send.8 cat qmail-start.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-start.8 cat qmail-users.9 | sed s}QMAILHOME}"`head -1 conf-qmail`"}g | sed s}BREAK}"`head -1 conf-break`"}g | sed s}SPAWN}"`head -1 conf-spawn`"}g > qmail-users.5 ===> Rebuilding DJB installer to respect STAGEDIR ./compile install.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] install.c:13:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 13 | noc; /* hack for bin package install -- see port pkg/INSTALL */ | ^ | int install.c:21:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 21 | if (mkdir(home,0700) == -1) | ^ install.c:23:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | strerr_die4sys(111,FATAL,"unable to mkdir ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:24:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 24 | if (chown(home,uid,gid) == -1) | ^ install.c:25:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | strerr_die4sys(111,FATAL,"unable to chown ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:26:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 26 | if (chmod(home,mode) == -1) | ^ install.c:27:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | strerr_die4sys(111,FATAL,"unable to chmod ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:15:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | void h(home,uid,gid,mode) | ^ install.c:37:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | if (chdir(home) == -1) | ^ install.c:38:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:39:7: warning: call to undeclared function 'mkdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 39 | if (mkdir(subdir,0700) == -1) | ^ install.c:41:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | strerr_die6sys(111,FATAL,"unable to mkdir ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:42:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 42 | if (chown(subdir,uid,gid) == -1) | ^ install.c:43:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:44:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 44 | if (chmod(subdir,mode) == -1) | ^ install.c:45:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 45 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:30:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 30 | void d(home,subdir,uid,gid,mode) | ^ install.c:55:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | if (chdir(home) == -1) | ^ install.c:56:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:57:7: warning: call to undeclared function 'fifo_make'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | if (fifo_make(fifo,0700) == -1) | ^ install.c:59:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | strerr_die6sys(111,FATAL,"unable to mkfifo ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:60:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 60 | if (chown(fifo,uid,gid) == -1) | ^ install.c:61:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:62:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | if (chmod(fifo,mode) == -1) | ^ install.c:63:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",fifo,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:48:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | void p(home,fifo,uid,gid,mode) | ^ install.c:83:7: warning: call to undeclared function 'fchdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | if (fchdir(fdsourcedir) == -1) | ^ install.c:84:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | strerr_die2sys(111,FATAL,"unable to switch back to source directory: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:86:19: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | fdin = open_read(file); | ^ install.c:88:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | strerr_die4sys(111,FATAL,"unable to read ",file,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:89:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | substdio_fdbuf(&ssin,read,fdin,inbuf,sizeof inbuf); | ^ install.c:91:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | if (chdir(home) == -1) | ^ install.c:92:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:94:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | strerr_die6sys(111,FATAL,"unable to switch to ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:96:21: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | fdout = open_trunc(file); | ^ install.c:98:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:99:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | substdio_fdbuf(&ssout,write,fdout,outbuf,sizeof outbuf); | ^ install.c:101:23: warning: passing arguments to 'substdio_copy' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | switch(substdio_copy(&ssout,&ssin)) { | ^ install.c:103:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | strerr_die4sys(111,FATAL,"unable to read ",file,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:105:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:108:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | close(fdin); | ^ install.c:109:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | if (substdio_flush(&ssout) == -1) | ^ install.c:110:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:111:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 111 | if (fsync(fdout) == -1) | ^ install.c:112:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:114:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | strerr_die6sys(111,FATAL,"unable to write .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:116:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | if (chown(file,uid,gid) == -1) | ^ install.c:117:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | strerr_die6sys(111,FATAL,"unable to chown .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:118:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | if (chmod(file,mode) == -1) | ^ install.c:119:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | strerr_die6sys(111,FATAL,"unable to chmod .../",subdir,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:71:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | void c(home,subdir,file,uid,gid,mode) | ^ install.c:133:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 133 | if (chdir(home) == -1) | ^ install.c:134:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:136:21: warning: passing arguments to 'open_trunc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | fdout = open_trunc(file); | ^ install.c:138:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:139:17: warning: passing arguments to 'substdio_fdbuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | substdio_fdbuf(&ssout,write,fdout,outbuf,sizeof outbuf); | ^ install.c:142:21: warning: passing arguments to 'substdio_put' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | if (substdio_put(&ssout,"",1) == -1) | ^ install.c:143:7: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:145:21: warning: passing arguments to 'substdio_flush' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | if (substdio_flush(&ssout) == -1) | ^ install.c:146:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:147:7: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | if (fsync(fdout) == -1) | ^ install.c:148:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:149:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 149 | if (close(fdout) == -1) /* NFS silliness */ | ^ install.c:150:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | strerr_die6sys(111,FATAL,"unable to write ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:152:7: warning: call to undeclared function 'chown'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | if (chown(file,uid,gid) == -1) | ^ install.c:153:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | strerr_die6sys(111,FATAL,"unable to chown ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:154:7: warning: call to undeclared function 'chmod'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | if (chmod(file,mode) == -1) | ^ install.c:155:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | strerr_die6sys(111,FATAL,"unable to chmod ",home,"/",file,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ install.c:123:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | void z(home,file,len,uid,gid,mode) | ^ install.c:161:26: warning: passing arguments to 'open_read' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | fdsourcedir = open_read("."); | ^ install.c:163:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | strerr_die2sys(111,FATAL,"unable to open current directory: "); | ^ ./strerr.h:63:11: note: expanded from macro 'strerr_die2sys' 63 | strerr_die((e),(x1),(x2),(char *) 0,(char *) 0,(char *) 0,(char *) 0,&strerr_sys) | ^ install.c:165:3: warning: call to undeclared function 'umask'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 165 | umask(077); | ^ 72 warnings generated. ./compile hier.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] hier.c:17:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 17 | d(auto_qmail,base,uid,auto_gidq,mode); | ^ hier.c:21:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | x += fmt_str(x,base); | ^ hier.c:22:17: warning: passing arguments to 'fmt_str' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 22 | x += fmt_str(x,"/"); | ^ hier.c:23:19: warning: passing arguments to 'fmt_ulong' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 23 | x += fmt_ulong(x,i); | ^ hier.c:9:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 9 | void dsplit(base,uid,mode) | ^ hier.c:32:3: warning: call to undeclared function 'h'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 32 | h(auto_qmail,auto_uido,auto_gidq,0755); | ^ hier.c:34:3: warning: call to undeclared function 'd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 34 | d(auto_qmail,"control",auto_uido,auto_gidq,0755); | ^ hier.c:53:3: warning: call to undeclared function 'z'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 53 | z(auto_qmail,"queue/lock/tcpto",1024,auto_uidr,auto_gidq,0644); | ^ hier.c:55:3: warning: call to undeclared function 'p'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | p(auto_qmail,"queue/lock/trigger",auto_uids,auto_gidq,0622); | ^ hier.c:59:3: warning: call to undeclared function 'c'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | c(auto_qmail,"bin","qmail-queue",auto_uidq,auto_gidq,04711); | ^ 10 warnings generated. ./auto-str auto_qmail `head -1 conf-qmail` > auto_qmail.c ./compile auto_qmail.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] ./load install fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o strerr.a substdio.a open.a error.a str.a fs.a ./compile instcheck.c cc: warning: argument unused during compilation: '-L/usr/lib' [-Wunused-command-line-argument] instcheck.c:27:7: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 27 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," does not exist",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:29:7: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 29 | strerr_warn4(WARNING,"unable to stat .../",file,": ",&strerr_sys); | ^ ./strerr.h:33:12: note: expanded from macro 'strerr_warn4' 33 | strerr_warn((x1),(x2),(x3),(x4),(char *) 0,(char *) 0,(struct strerr *) (se)) | ^ instcheck.c:34:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 34 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong owner",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:36:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 36 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong group",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:38:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong permissions",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:40:5: warning: passing arguments to 'strerr_warn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 40 | strerr_warn6(WARNING,prefix1,prefix2,prefix3,file," has wrong type",0); | ^ ./strerr.h:29:12: note: expanded from macro 'strerr_warn6' 29 | strerr_warn((x1),(x2),(x3),(x4),(x5),(x6),(struct strerr *) (se)) | ^ instcheck.c:13:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | void perm(prefix1,prefix2,prefix3,file,type,uid,gid,mode) | ^ instcheck.c:43:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 43 | void h(home,uid,gid,mode) | ^ instcheck.c:59:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 59 | if (chdir(home) == -1) | ^ instcheck.c:60:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | void d(home,subdir,uid,gid,mode) | ^ instcheck.c:71:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 71 | if (chdir(home) == -1) | ^ instcheck.c:72:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:64:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | void p(home,fifo,uid,gid,mode) | ^ instcheck.c:84:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | if (chdir(home) == -1) | ^ instcheck.c:85:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:87:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | strerr_die6sys(111,FATAL,"unable to switch to ",home,"/",subdir,": "); | ^ ./strerr.h:55:11: note: expanded from macro 'strerr_die6sys' 55 | strerr_die((e),(x1),(x2),(x3),(x4),(x5),(x6),&strerr_sys) | ^ instcheck.c:76:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | void c(home,subdir,file,uid,gid,mode) | ^ instcheck.c:99:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | if (chdir(home) == -1) | ^ instcheck.c:100:5: warning: passing arguments to 'strerr_die' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | strerr_die4sys(111,FATAL,"unable to switch to ",home,": "); | ^ ./strerr.h:59:11: note: expanded from macro 'strerr_die4sys' 59 | strerr_die((e),(x1),(x2),(x3),(x4),(char *) 0,(char *) 0,&strerr_sys) | ^ instcheck.c:91:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | void z(home,file,len,uid,gid,mode) | ^ 21 warnings generated. ./load instcheck fifo.o hier.o auto_qmail.o auto_split.o auto_uids.o strerr.a substdio.a error.a str.a fs.a =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Staging for netqmail-tls-1.06.20200107_4 ===> Generating temporary packing list ===> Creating groups ===> Creating users install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/dnsfq /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/hostname /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/dnsip /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/ipmeprint /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/dnsptr /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/install.nostage /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure/install install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/config /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/config-fast /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/configure install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/home /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/home+df /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/proc /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/proc+df /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm1+df /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm2 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm2+df /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm3 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/binm3+df /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/maildir /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/qmailsmtpd /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/qmailsend /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/boot install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/forward.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/condredirect.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/bouncesaying.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/except.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/maildirmake.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/maildir2mbox.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/maildirwatch.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/mailsubj.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qreceipt.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qbiff.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/preline.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/tcp-env.1 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/addresses.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/envelopes.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/maildir.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/mbox.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/dot-qmail.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-control.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-header.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-log.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-users.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/tcp-environ.5 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/forgeries.7 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-limits.7 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail.7 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-local.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-lspawn.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-getpw.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-remote.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-rspawn.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-clean.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-send.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-start.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/splogger.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-queue.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-inject.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-showctl.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-newmrh.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-newu.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-pw2u.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-qread.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-qstat.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-tcpok.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-tcpto.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-pop3d.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-popup.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-qmqpc.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-qmqpd.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-qmtpd.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-smtpd.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/qmail-command.8 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/share/man/man8 install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/BLURB /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/BLURB2 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/BLURB3 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/BLURB4 /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INTERNALS /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/SECURITY /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/THOUGHTS /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/FAQ /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/UPGRADE /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/SENDMAIL /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.alias /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.ctl /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.ids /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.maildir /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.mbox /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/INSTALL.vsm /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/TEST.deliver /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/TEST.receive /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/REMOVE.sendmail /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/REMOVE.binmail /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.local2alias /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.local2ext /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.local2local /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.local2rem /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.local2virt /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.nullclient /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.relaybad /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.relaygood /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/netqmail-1.06/PIC.rem2local /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/mailer.conf.sample /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/TLS.readme /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/doc install -m 555 /usr/ports/mail/qmail-tls/../qmail/files/mkaliasdir /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/scripts install -m 555 /wrkdirs/usr/ports/mail/qmail-tls/work/enable-qmail /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/scripts ============================================= ATTENTION Add the following line to your /etc/make.conf QMAIL_SLAVEPORT=tls ============================================= install -m 0644 /wrkdirs/usr/ports/mail/qmail-tls/work/qmail.conf /wrkdirs/usr/ports/mail/qmail-tls/work/stage/usr/local/etc/man.d/qmail.conf ===> Fixing plist for /var/qmail ownership /bin/rm -f -r /wrkdirs/usr/ports/mail/qmail-tls/work/stage/var/qmail/queue/ ====> Compressing man pages (compress-man) =========================================================================== =================================================== ===== env: 'PKG_NOTES=build_timestamp ports_top_git_hash ports_top_checkout_unclean port_git_hash port_checkout_unclean built_by' 'PKG_NOTE_build_timestamp=2025-05-05T21:22:57+0000' 'PKG_NOTE_ports_top_git_hash=57a50b106b87' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=d9c7e0b18ad0' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Building packages for netqmail-tls-1.06.20200107_4 ===> Building netqmail-tls-1.06.20200107_4 pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead pkg-static: Use of '@exec' is deprecated: Use @preexec/@postexec instead pkg-static: Use of '@unexec' is deprecated: Use @preunexec/@postunexec instead =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for netqmail-tls-1.06.20200107_4 build of mail/qmail-tls | netqmail-tls-1.06.20200107_4 ended at Mon May 5 17:23:18 EDT 2025 build time: 00:00:22