=>> Building mail/qmail-mysql build started at Mon May 5 21:13:11 BST 2025 port directory: /usr/ports/mail/qmail-mysql package name: netqmail-mysql-1.06.1.1.15_3 building for: FreeBSD pkg-builder.dan.net.uk 14.2-RELEASE FreeBSD 14.2-RELEASE amd64 maintained by: erdgeist@erdgeist.org Makefile datestamp: -rw-r--r-- 1 root wheel 472 Dec 29 14:16 /usr/ports/mail/qmail-mysql/Makefile Ports top last git commit: 5529c5919b Ports top unclean checkout: yes Port dir last git commit: 1a35b19e6d Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1402000 Jail OSVERSION: 1402000 Job Id: 03 ---Begin Environment--- SHELL=/bin/sh OSVERSION=1402000 UNAME_v=FreeBSD 14.2-RELEASE UNAME_r=14.2-RELEASE 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=/usr/local/poudriere/data/.m/14-amd64-default-dan/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/14-amd64-default-dan/03/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=14-amd64-default-dan SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/14-amd64-default-dan/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-mysql-1.06.1.1.15_3: BIG_CONCURRENCY_PATCH=off: Use a concurrency greater than 240 BIG_TODO_PATCH=off: Enable big_todo qmail patch 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 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 TARPIT_PATCH=off: Implement TARPIT functions ===> 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-mysql/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work/.cache HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/qmail-mysql/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/qmail-mysql/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-- XDG_DATA_HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work XDG_CACHE_HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work/.cache HOME=/wrkdirs/usr/ports/mail/qmail-mysql/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/mail/qmail-mysql/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/mail/qmail-mysql/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 -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" -fstack-protector-strong " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -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="@comment " NO_TLS="" PORTDOCS="" BIG_CONCURRENCY_PATCH="@comment " NO_BIG_CONCURRENCY_PATCH="" BIG_TODO_PATCH="@comment " NO_BIG_TODO_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="" OUTGOINGIP_PATCH="@comment " NO_OUTGOINGIP_PATCH="" QEXTRA="@comment " NO_QEXTRA="" QMTPC_PATCH="@comment " NO_QMTPC_PATCH="" RCDLINK="" NO_RCDLINK="@comment " TARPIT_PATCH="@comment " NO_TARPIT_PATCH="" EXTTODO="@comment " RCDLINK="" OSREL=14.2 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="" 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="" OUTGOINGIP_PATCH="@comment " NO_OUTGOINGIP_PATCH="" QEXTRA="@comment " NO_QEXTRA="" QMTPC_PATCH="@comment " NO_QMTPC_PATCH="" TARPIT_PATCH="@comment " NO_TARPIT_PATCH="" 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 #### #### CCACHE_CPP2=1 WITH_SSP_PORTS=yes WITH_SSP=yes #WITH_LTO=yes DISABLE_LICENSES=yes LICENSES_ACCEPTED=AGPLv3 APACHE10 APACHE11 APACHE20 ART10 ARTPERL10 ART20 BSD BSD2CLAUSE BSD3CLAUSE BSD4CLAUSE BSL CC0-1.0 CDDL ClArtistic EPL GFDL GMGPL GPLv1 GPLv2 GPLv3 GPLv3RLE ISCL LGPL20 LGPL21 LGPL3 LPPL10 LPPL11 LPPL12 LPPL13 LPPL13a LPPL13b LPPL13c MIT MPL OpenSSL OFL10 OFL11 OWL PostgreSQL PHP202 PHP30 PHP301 PSFL RUBY ZLIB ZPL21 SVM-Light EULA ALASIR Microsoft-exFAT SIMIAN UDEVGAME unknown MTA COMMERCIAL teamspeak NO_LICENSES_DIALOGS=yes #### #### NO_IGNORE=yes DEFAULT_VERSIONS+=ssl=openssl apache=2.4 imagemagick=7 java=21 linux=c7 mysql=8.0 php=8.3 samba=4.19 varnish=7 WITH_SETID_MODE=force PHP_ZTS=enabled OPTIONS_UNSET+=OPENJPEG OPTIONS_UNSET+=GSSAPI_BASE OPTIONS_SET+=ZTS OPTIONS_SET+=GSSAPI_NONE ALLOW_UNSUPPORTED_SYSTEM=yes WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 DISABLE_MAKE_JOBS=poudriere ---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 pipebuf (-y) unlimited --End resource limits-- =================================================== ===== 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 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> netqmail-mysql-1.06.1.1.15_3 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.1.2.pkg [pkg-builder.dan.net.uk] Installing pkg-2.1.2... [pkg-builder.dan.net.uk] Extracting pkg-2.1.2: .......... done ===> netqmail-mysql-1.06.1.1.15_3 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of netqmail-mysql-1.06.1.1.15_3 =========================================================================== =================================================== ===== 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-mysql-1.06.1.1.15_3 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-mysql-1.06.1.1.15_3 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/patch-qmail-1.03-rfc2821.diff. => SHA256 Checksum OK for qmail/netqmail-mysql-1.1.15.patch. =========================================================================== =================================================== ===== 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-mysql-1.06.1.1.15_3 for building ===> Extracting for netqmail-mysql-1.06.1.1.15_3 => SHA256 Checksum OK for qmail/netqmail-1.06.tar.gz. => SHA256 Checksum OK for qmail/qmail-103.patch. => SHA256 Checksum OK for qmail/patch-qmail-1.03-rfc2821.diff. => SHA256 Checksum OK for qmail/netqmail-mysql-1.1.15.patch. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for netqmail-mysql-1.06.1.1.15_3 ===> Applying distribution patches for netqmail-mysql-1.06.1.1.15_3 ===> Applying extra patch /usr/ports/mail/qmail-mysql/../qmail/files/extra-patch-amd64 ===> Applying extra patch /usr/ports/mail/qmail-mysql/../qmail/files/extra-patch-utmpx ===> Applying extra patch /usr/ports/mail/qmail-mysql/../qmail/files/extra-patch-dns-cname ===> Applying FreeBSD patches for netqmail-mysql-1.06.1.1.15_3 from /usr/ports/mail/qmail-mysql/../qmail/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> netqmail-mysql-1.06.1.1.15_3 depends on executable: fakeroot - not found ===> Installing existing package /packages/All/fakeroot-1.37.1.1.pkg [pkg-builder.dan.net.uk] Installing fakeroot-1.37.1.1... [pkg-builder.dan.net.uk] Extracting fakeroot-1.37.1.1: .......... done ===> netqmail-mysql-1.06.1.1.15_3 depends on executable: fakeroot - found ===> Returning to build of netqmail-mysql-1.06.1.1.15_3 ===> netqmail-mysql-1.06.1.1.15_3 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg-builder.dan.net.uk] Installing ccache-3.7.12_8... [pkg-builder.dan.net.uk] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> netqmail-mysql-1.06.1.1.15_3 depends on file: /usr/local/bin/ccache - found ===> Returning to build of netqmail-mysql-1.06.1.1.15_3 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> netqmail-mysql-1.06.1.1.15_3 depends on shared library: libmysqlclient.so.21 - not found ===> Installing existing package /packages/All/mysql80-client-8.0.42.pkg [pkg-builder.dan.net.uk] Installing mysql80-client-8.0.42... [pkg-builder.dan.net.uk] `-- Installing curl-8.13.0_1... [pkg-builder.dan.net.uk] | `-- Installing brotli-1.1.0,1... [pkg-builder.dan.net.uk] | `-- Extracting brotli-1.1.0,1: .......... done [pkg-builder.dan.net.uk] | `-- Installing libidn2-2.3.8... [pkg-builder.dan.net.uk] | | `-- Installing indexinfo-0.3.1_1... [pkg-builder.dan.net.uk] | | `-- Extracting indexinfo-0.3.1_1: . done [pkg-builder.dan.net.uk] | | `-- Installing libunistring-1.3... [pkg-builder.dan.net.uk] | | `-- Extracting libunistring-1.3: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libidn2-2.3.8: .......... done [pkg-builder.dan.net.uk] | `-- Installing libnghttp2-1.65.0... [pkg-builder.dan.net.uk] | `-- Extracting libnghttp2-1.65.0: ....... done [pkg-builder.dan.net.uk] | `-- Installing libssh2-1.11.1,3... [pkg-builder.dan.net.uk] | | `-- Installing openssl-3.0.16,1... [pkg-builder.dan.net.uk] | | `-- Extracting openssl-3.0.16,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libssh2-1.11.1,3: .......... done [pkg-builder.dan.net.uk] | `-- Installing zstd-1.5.7... [pkg-builder.dan.net.uk] | | `-- Installing liblz4-1.10.0,1... [pkg-builder.dan.net.uk] | | `-- Extracting liblz4-1.10.0,1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting zstd-1.5.7: .......... done [pkg-builder.dan.net.uk] `-- Extracting curl-8.13.0_1: .......... done [pkg-builder.dan.net.uk] `-- Installing cyrus-sasl-2.1.28_5... *** Added group `cyrus' (id 60) *** Added user `cyrus' (id 60) [pkg-builder.dan.net.uk] `-- Extracting cyrus-sasl-2.1.28_5: .......... done [pkg-builder.dan.net.uk] `-- Installing groff-1.23.0_4... [pkg-builder.dan.net.uk] | `-- Installing libiconv-1.17_1... [pkg-builder.dan.net.uk] | `-- Extracting libiconv-1.17_1: .......... done [pkg-builder.dan.net.uk] | `-- Installing perl5-5.36.3_3... [pkg-builder.dan.net.uk] | `-- Extracting perl5-5.36.3_3: .......... done [pkg-builder.dan.net.uk] | `-- Installing psutils-1.17_6... [pkg-builder.dan.net.uk] | | `-- Installing libpaper-1.1.28_1... [pkg-builder.dan.net.uk] | | `-- Extracting libpaper-1.1.28_1: .......... done [pkg-builder.dan.net.uk] | `-- Extracting psutils-1.17_6: .......... done [pkg-builder.dan.net.uk] | `-- Installing uchardet-0.0.8_1... [pkg-builder.dan.net.uk] | `-- Extracting uchardet-0.0.8_1: .......... done [pkg-builder.dan.net.uk] `-- Extracting groff-1.23.0_4: .......... done [pkg-builder.dan.net.uk] `-- Installing hidapi-0.14.0... [pkg-builder.dan.net.uk] `-- Extracting hidapi-0.14.0: .......... done [pkg-builder.dan.net.uk] `-- Installing icu-76.1,1... [pkg-builder.dan.net.uk] `-- Extracting icu-76.1,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libedit-3.1.20250104,1... [pkg-builder.dan.net.uk] `-- Extracting libedit-3.1.20250104,1: .......... done [pkg-builder.dan.net.uk] `-- Installing libevent-2.1.12... [pkg-builder.dan.net.uk] `-- Extracting libevent-2.1.12: .......... done [pkg-builder.dan.net.uk] `-- Installing libfido2-1.15.0... [pkg-builder.dan.net.uk] | `-- Installing libcbor-0.12.0... [pkg-builder.dan.net.uk] | | `-- Installing libcjson-1.7.18_2... [pkg-builder.dan.net.uk] | | `-- Extracting libcjson-1.7.18_2: .......... done [pkg-builder.dan.net.uk] | `-- Extracting libcbor-0.12.0: .......... done [pkg-builder.dan.net.uk] `-- Extracting libfido2-1.15.0: .......... done [pkg-builder.dan.net.uk] `-- Installing libunwind-20240221_2... [pkg-builder.dan.net.uk] `-- Extracting libunwind-20240221_2: .......... done [pkg-builder.dan.net.uk] `-- Installing openldap26-client-2.6.9_1... [pkg-builder.dan.net.uk] `-- Extracting openldap26-client-2.6.9_1: .......... done [pkg-builder.dan.net.uk] Extracting mysql80-client-8.0.42: .......... done ===== Message from cyrus-sasl-2.1.28_5: -- You can use sasldb2 for authentication, to add users use: saslpasswd2 -c username If you want to enable SMTP AUTH with the system Sendmail, read Sendmail.README NOTE: This port has been compiled with a default pwcheck_method of auxprop. If you want to authenticate your user by /etc/passwd, PAM or LDAP, install ports/security/cyrus-sasl2-saslauthd and set sasl_pwcheck_method to saslauthd after installing the Cyrus-IMAPd 2.X port. You should also check the /usr/local/lib/sasl2/*.conf files for the correct pwcheck_method. If you want to use GSSAPI mechanism, install ports/security/cyrus-sasl2-gssapi. If you want to use SRP mechanism, install ports/security/cyrus-sasl2-srp. If you want to use LDAP auxprop plugin, install ports/security/cyrus-sasl2-ldapdb. ===== Message from groff-1.23.0_4: -- In order to be able to use the html driver, you need to install the following packages: - ghostscript - netpbm -- ===> NOTICE: The groff port currently does not have a maintainer. As a result, it is more likely to have unresolved issues, not be up-to-date, or even be removed in the future. To volunteer to maintain this port, please create an issue at: https://bugs.freebsd.org/bugzilla More information about port maintainership is available at: https://docs.freebsd.org/en/articles/contributing/#ports-contributing ===== Message from openldap26-client-2.6.9_1: -- The OpenLDAP client package has been successfully installed. Edit /usr/local/etc/openldap/ldap.conf to change the system-wide client defaults. Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at http://www.OpenLDAP.org/faq/index.cgi?file=3 for more information. ===== Message from mysql80-client-8.0.42: -- This is the mysql CLIENT without the server. for complete server and client, please install databases/mysql80-server ===> netqmail-mysql-1.06.1.1.15_3 depends on shared library: libmysqlclient.so.21 - found (/usr/local/lib/mysql/libmysqlclient.so.21) ===> Returning to build of netqmail-mysql-1.06.1.1.15_3 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for netqmail-mysql-1.06.1.1.15_3 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for netqmail-mysql-1.06.1.1.15_3 ( 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 qmail-local.c:33: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] 33 | 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:35: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] 35 | 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:36: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] 36 | 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:37: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] 37 | 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:38: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] 38 | void temp_fork() { strerr_die3x(111,"Unable to fork: ",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_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:39: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] 39 | void temp_read() { strerr_die3x(111,"Unable to read message: ",error_str(errno),". (#4.3.0)"); } | ^ qmail-local.c:39: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] 39 | 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:41: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] 41 | { 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:43: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] 43 | { strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.3.0)"); } | ^ qmail-local.c:43: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] 43 | { 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:42:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 42 | void temp_qmail(fn) char *fn; | ^ qmail-local.c:75:23: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 75 | void tryunlinktmp() { unlink(fntmptph); } | ^ qmail-local.c:91: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] 91 | sig_alarmcatch(sigalrm); | ^ qmail-local.c:92:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | if (chdir(dir) == -1) { if (error_temp(errno)) _exit(1); _exit(2); } | ^ qmail-local.c:92: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] 92 | if (chdir(dir) == -1) { if (error_temp(errno)) _exit(1); _exit(2); } | ^ qmail-local.c:93:8: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 93 | pid = getpid(); | ^ qmail-local.c:95:2: warning: call to undeclared function 'gethostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 95 | gethostname(host,sizeof(host)); | ^ qmail-local.c:100: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] 100 | s += fmt_str(s,"tmp/"); | ^ 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,time); *s++ = '.'; | ^ qmail-local.c:102: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] 102 | s += fmt_ulong(s,pid); *s++ = '.'; | ^ qmail-local.c:103: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] 103 | s += fmt_strn(s,host,sizeof(host)); *s++ = 0; | ^ qmail-local.c:107:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 107 | sleep(2); | ^ qmail-local.c:109: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] 109 | str_copy(fnnewtph,fntmptph); | ^ qmail-local.c:110: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] 110 | byte_copy(fnnewtph,3,"new"); | ^ qmail-local.c:112:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | alarm(86400); | ^ qmail-local.c:113: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] 113 | fd = open_excl(fntmptph); | ^ 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(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:117: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] 117 | substdio_fdbuf(&ssout,write,fd,outbuf,sizeof(outbuf)); | ^ 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,rpline.s,rpline.len) == -1) goto fail; | ^ qmail-local.c:119: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] 119 | if (substdio_put(&ssout,dtline.s,dtline.len) == -1) goto fail; | ^ qmail-local.c:121: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] 121 | switch(substdio_copy(&ssout,&ss)) | ^ qmail-local.c:127: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] 127 | if (substdio_flush(&ssout) == -1) goto fail; | ^ qmail-local.c:128:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 128 | if (fsync(fd) == -1) goto fail; | ^ qmail-local.c:129:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | if (close(fd) == -1) goto fail; /* NFS dorks */ | ^ qmail-local.c:131:6: warning: call to undeclared function 'link'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 131 | if (link(fntmptph,fnnewtph) == -1) goto fail; | ^ qmail-local.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 maildir_child(dir) | ^ qmail-local.c:146: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] 146 | 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:157: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] 157 | wait_pid(&wstat,child); | ^ 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 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: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 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:165: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] 165 | 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:166: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] 166 | 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:140:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | void maildir(fn) | ^ qmail-local.c:180: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] 180 | 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:182: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] 182 | fd = open_append(fn); | ^ qmail-local.c:184: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] 184 | strerr_die5x(111,"Unable to open ",fn,": ",error_str(errno),". (#4.2.1)"); | ^ qmail-local.c:184: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] 184 | 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:186: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] 186 | sig_alarmcatch(temp_slowlock); | ^ qmail-local.c:187:2: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | alarm(30); | ^ qmail-local.c:188: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] 188 | flaglocked = (lock_ex(fd) != -1); | ^ qmail-local.c:192: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] 192 | seek_end(fd); | ^ qmail-local.c:193: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] 193 | pos = seek_cur(fd); | ^ 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(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:196: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] 196 | substdio_fdbuf(&ssout,write,fd,outbuf,sizeof(outbuf)); | ^ 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,ufline.s,ufline.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,rpline.s,rpline.len)) goto writeerrs; | ^ qmail-local.c:199: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] 199 | if (substdio_put(&ssout,dtline.s,dtline.len)) goto writeerrs; | ^ qmail-local.c:202: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] 202 | if (getln(&ss,&messline,&match,'\n') != 0) | ^ qmail-local.c:204: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] 204 | strerr_warn3("Unable to read message: ",error_str(errno),". (#4.3.0)",0); | ^ qmail-local.c:204: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] 204 | 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:205: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] 205 | if (flaglocked) seek_trunc(fd,pos); close(fd); | ^ qmail-local.c:205:42: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 205 | if (flaglocked) seek_trunc(fd,pos); close(fd); | ^ qmail-local.c:209: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] 209 | if (gfrom(messline.s,messline.len)) | ^ qmail-local.c:210: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] 210 | if (substdio_bput(&ssout,">",1)) goto writeerrs; | ^ qmail-local.c:211: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] 211 | if (substdio_bput(&ssout,messline.s,messline.len)) goto writeerrs; | ^ qmail-local.c:214: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] 214 | if (substdio_bputs(&ssout,"\n")) goto writeerrs; | ^ qmail-local.c:218: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] 218 | if (substdio_bputs(&ssout,"\n")) goto writeerrs; | ^ qmail-local.c:219: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] 219 | if (substdio_flush(&ssout)) goto writeerrs; | ^ qmail-local.c:220:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 220 | if (fsync(fd) == -1) goto writeerrs; | ^ qmail-local.c:221:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 221 | close(fd); | ^ qmail-local.c:225: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] 225 | strerr_warn5("Unable to write ",fn,": ",error_str(errno),". (#4.3.0)",0); | ^ qmail-local.c:225: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] 225 | 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:226: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] 226 | if (flaglocked) seek_trunc(fd,pos); | ^ qmail-local.c:170:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | void mailfile(fn) | ^ qmail-local.c:238: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] 238 | 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:247:6: warning: call to undeclared function 'execv'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 247 | execv(*args,args); | ^ qmail-local.c:248: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] 248 | strerr_die3x(111,"Unable to run /bin/sh: ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:248: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] 248 | 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:251: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] 251 | wait_pid(&wstat,child); | ^ qmail-local.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 mailprogram(prog) | ^ qmail-local.c:274: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] 274 | 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:275: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] 275 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:277: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] 277 | if (qmail_open(&qqt) == -1) temp_fork(); | ^ qmail-local.c:278: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] 278 | mailforward_qp = qmail_qp(&qqt); | ^ qmail-local.c:279: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] 279 | qmail_put(&qqt,dtline.s,dtline.len); | ^ qmail-local.c:282: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] 282 | if (getln(&ss,&messline,&match,'\n') != 0) { qmail_fail(&qqt); break; } | ^ qmail-local.c:282: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] 282 | if (getln(&ss,&messline,&match,'\n') != 0) { qmail_fail(&qqt); break; } | ^ qmail-local.c:283: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] 283 | qmail_put(&qqt,messline.s,messline.len); | ^ qmail-local.c:286: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] 286 | qmail_from(&qqt,ueo.s); | ^ qmail-local.c:287: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] 287 | while (*recips) qmail_to(&qqt,*recips++); | ^ qmail-local.c:288: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] 288 | qqx = qmail_close(&qqt); | ^ qmail-local.c:290: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] 290 | 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: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 mailforward(recips) | ^ qmail-local.c:298: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] 298 | 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:299: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] 299 | substdio_fdbuf(&ss,read,0,buf,sizeof(buf)); | ^ qmail-local.c:302: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] 302 | if (getln(&ss,&messline,&match,'\n') != 0) temp_read(); | ^ qmail-local.c:307: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] 307 | if (!str_diffn(messline.s,dtline.s,dtline.len)) | ^ qmail-local.c:308: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] 308 | 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:317: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] 317 | strerr_die3x(111,"Unable to stat home directory: ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:317: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] 317 | 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:319: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] 319 | 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:322: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] 322 | 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:324: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] 324 | 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:323:4: warning: add explicit braces to avoid dangling else [-Wdangling-else] 323 | else | ^ qmail-local.c:332: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] 332 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:333: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] 333 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:334: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] 334 | if (!stralloc_cat(&qme,&safeext)) temp_nomem(); | ^ qmail-local.c:335: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] 335 | if (!stralloc_cats(&qme,dashowner)) temp_nomem(); | ^ qmail-local.c:336: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] 336 | if (!stralloc_0(&qme)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:339: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] 339 | if (error_temp(errno)) temp_qmail(qme.s); | ^ qmail-local.c:327:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | int qmeox(dashowner) | ^ qmail-local.c:351: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] 351 | if (!stralloc_0(&qme)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:353: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] 353 | *fd = open_read(qme.s); | ^ qmail-local.c:355: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] 355 | if (error_temp(errno)) temp_qmail(qme.s); | ^ qmail-local.c:364: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] 364 | 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:368:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 368 | close(*fd); | ^ qmail-local.c:345:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | int qmeexists(fd,cutable) | ^ qmail-local.c:386: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] 386 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:387: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] 387 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:388: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] 388 | if (!stralloc_cat(&qme,&safeext)) temp_nomem(); | ^ qmail-local.c:392: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] 392 | if (!byte_diff("default",7,safeext.s + i)) | ^ qmail-local.c:393: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] 393 | if (i <= str_len(ext)) /* paranoia */ | ^ qmail-local.c:394: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] 394 | if (!env_put2("DEFAULT",ext + i)) temp_nomem(); | ^ qmail-local.c:401: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] 401 | if (!stralloc_copys(&qme,".qmail")) temp_nomem(); | ^ qmail-local.c:402: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] 402 | if (!stralloc_cats(&qme,dash)) temp_nomem(); | ^ qmail-local.c:403: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] 403 | if (!stralloc_catb(&qme,safeext.s,i)) temp_nomem(); | ^ qmail-local.c:404: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] 404 | if (!stralloc_cats(&qme,"default")) temp_nomem(); | ^ qmail-local.c:406: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] 406 | if (i <= str_len(ext)) /* paranoia */ | ^ qmail-local.c:407: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] 407 | if (!env_put2("DEFAULT",ext + i)) temp_nomem(); | ^ qmail-local.c:380:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 380 | void qmesearch(fd,cutable) | ^ qmail-local.c:422: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] 422 | substdio_puts(subfdoutsmall,"did "); | ^ qmail-local.c:423: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] 423 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_file)); | ^ qmail-local.c:423: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] 423 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_file)); | ^ qmail-local.c:424: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] 424 | substdio_puts(subfdoutsmall,"+"); | ^ qmail-local.c:425: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] 425 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_forward)); | ^ qmail-local.c:425: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] 425 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_forward)); | ^ qmail-local.c:426: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] 426 | substdio_puts(subfdoutsmall,"+"); | ^ qmail-local.c:427: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] 427 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_program)); | ^ qmail-local.c:427: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] 427 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,count_program)); | ^ qmail-local.c:428: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] 428 | substdio_puts(subfdoutsmall,"\n"); | ^ qmail-local.c:431: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] 431 | substdio_puts(subfdoutsmall,"qp "); | ^ qmail-local.c:432: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] 432 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,mailforward_qp)); | ^ qmail-local.c:432: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] 432 | substdio_put(subfdoutsmall,count_buf,fmt_ulong(count_buf,mailforward_qp)); | ^ qmail-local.c:433: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] 433 | substdio_puts(subfdoutsmall,"\n"); | ^ qmail-local.c:435: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] 435 | substdio_flush(subfdoutsmall); | ^ qmail-local.c:443: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] 443 | substdio_puts(subfdoutsmall,type); | ^ qmail-local.c:444: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] 444 | substdio_put(subfdoutsmall,cmd,len); | ^ qmail-local.c:445: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] 445 | substdio_putsflush(subfdoutsmall,"\n"); | ^ qmail-local.c:438:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | void sayit(type,cmd,len) | ^ qmail-local.c:470: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] 470 | while ((opt = getopt(argc,argv,"nN")) != opteof) | ^ qmail-local.c:492:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | if (chdir(homedir) == -1) | ^ qmail-local.c:493: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] 493 | strerr_die5x(111,"Unable to switch to ",homedir,": ",error_str(errno),". (#4.3.0)"); | ^ qmail-local.c:493: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] 493 | 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: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("HOST",host)) 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("HOME",homedir)) temp_nomem(); | ^ qmail-local.c:498: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] 498 | if (!env_put2("USER",user)) temp_nomem(); | ^ qmail-local.c:499: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] 499 | if (!env_put2("LOCAL",local)) temp_nomem(); | ^ qmail-local.c:501: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] 501 | if (!stralloc_copys(&envrecip,local)) temp_nomem(); | ^ qmail-local.c:502: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] 502 | if (!stralloc_cats(&envrecip,"@")) temp_nomem(); | ^ qmail-local.c:503: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] 503 | if (!stralloc_cats(&envrecip,host)) temp_nomem(); | ^ qmail-local.c:505: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] 505 | if (!stralloc_copy(&foo,&envrecip)) temp_nomem(); | ^ qmail-local.c:506: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] 506 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:507: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] 507 | if (!env_put2("RECIPIENT",foo.s)) temp_nomem(); | ^ qmail-local.c:509: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] 509 | if (!stralloc_copys(&dtline,"Delivered-To: ")) temp_nomem(); | ^ qmail-local.c:510: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] 510 | if (!stralloc_cat(&dtline,&envrecip)) temp_nomem(); | ^ qmail-local.c:512: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] 512 | if (!stralloc_cats(&dtline,"\n")) temp_nomem(); | ^ qmail-local.c:514: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] 514 | if (!stralloc_copy(&foo,&dtline)) temp_nomem(); | ^ qmail-local.c:515: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] 515 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:516: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] 516 | if (!env_put2("DTLINE",foo.s)) temp_nomem(); | ^ qmail-local.c:521: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] 521 | if (!env_put2("SENDER",sender)) temp_nomem(); | ^ qmail-local.c:523: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] 523 | if (!quote2(&foo,sender)) temp_nomem(); | ^ qmail-local.c:524: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] 524 | if (!stralloc_copys(&rpline,"Return-Path: <")) temp_nomem(); | ^ qmail-local.c:525: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] 525 | if (!stralloc_cat(&rpline,&foo)) temp_nomem(); | ^ qmail-local.c:527: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] 527 | if (!stralloc_cats(&rpline,">\n")) temp_nomem(); | ^ qmail-local.c:529: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] 529 | if (!stralloc_copy(&foo,&rpline)) temp_nomem(); | ^ qmail-local.c:530: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] 530 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:531: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] 531 | if (!env_put2("RPLINE",foo.s)) temp_nomem(); | ^ qmail-local.c:533: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] 533 | if (!stralloc_copys(&ufline,"From ")) temp_nomem(); | ^ qmail-local.c:538: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] 538 | len = str_len(sender); | ^ qmail-local.c:539: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] 539 | if (!stralloc_readyplus(&ufline,len)) temp_nomem(); | ^ qmail-local.c:549: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] 549 | if (!stralloc_cats(&ufline,"MAILER-DAEMON")) 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," ")) temp_nomem(); | ^ qmail-local.c:552: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] 552 | if (!stralloc_cats(&ufline,myctime(starttime))) temp_nomem(); | ^ qmail-local.c:552: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] 552 | if (!stralloc_cats(&ufline,myctime(starttime))) temp_nomem(); | ^ qmail-local.c:554: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] 554 | if (!stralloc_copy(&foo,&ufline)) temp_nomem(); | ^ qmail-local.c:555: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] 555 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:556: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] 556 | if (!env_put2("UFLINE",foo.s)) temp_nomem(); | ^ 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("EXT",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("EXT2",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("EXT3",x)) temp_nomem(); | ^ qmail-local.c:564: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] 564 | x += str_chr(x,'-'); if (*x) ++x; | ^ qmail-local.c:565: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] 565 | if (!env_put2("EXT4",x)) temp_nomem(); | ^ qmail-local.c:567: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] 567 | if (!stralloc_copys(&safeext,ext)) temp_nomem(); | ^ qmail-local.c:568: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] 568 | case_lowerb(safeext.s,safeext.len); | ^ qmail-local.c:573: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] 573 | i = str_len(host); | ^ qmail-local.c:574: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] 574 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:575: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] 575 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:576: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] 576 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:577: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] 577 | if (!env_put2("HOST2",foo.s)) temp_nomem(); | ^ qmail-local.c:578: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] 578 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:579: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] 579 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:580: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] 580 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:581: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] 581 | if (!env_put2("HOST3",foo.s)) temp_nomem(); | ^ qmail-local.c:582: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] 582 | i = byte_rchr(host,i,'.'); | ^ qmail-local.c:583: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] 583 | if (!stralloc_copyb(&foo,host,i)) temp_nomem(); | ^ qmail-local.c:584: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] 584 | if (!stralloc_0(&foo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:585: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] 585 | if (!env_put2("HOST4",foo.s)) temp_nomem(); | ^ qmail-local.c:593: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] 593 | 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:596:7: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 596 | else close(fd); | ^ qmail-local.c:598: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] 598 | if (!stralloc_copys(&ueo,sender)) temp_nomem(); | ^ qmail-local.c:599: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] 599 | if (str_diff(sender,"")) | ^ qmail-local.c:600: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] 600 | if (str_diff(sender,"#@[]")) | ^ 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:608: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] 608 | if (!stralloc_cats(&ueo,"-@[]")) temp_nomem(); | ^ qmail-local.c:612: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] 612 | if (!stralloc_copys(&ueo,local)) temp_nomem(); | ^ qmail-local.c:613: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] 613 | if (!stralloc_cats(&ueo,"-owner@")) temp_nomem(); | ^ qmail-local.c:614: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] 614 | if (!stralloc_cats(&ueo,host)) temp_nomem(); | ^ qmail-local.c:617: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] 617 | if (!stralloc_0(&ueo)) temp_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-local.c:618: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] 618 | if (!env_put2("NEWSENDER",ueo.s)) temp_nomem(); | ^ qmail-local.c:620: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] 620 | if (!stralloc_ready(&cmds,0)) temp_nomem(); | ^ qmail-local.c:622: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] 622 | if (slurpclose(fd,&cmds,256) == -1) temp_nomem(); | ^ qmail-local.c:626: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] 626 | if (!stralloc_copys(&cmds,aliasempty)) temp_nomem(); | ^ qmail-local.c:630: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] 630 | if (!stralloc_cats(&cmds,"\n")) temp_nomem(); | ^ qmail-local.c:642: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] 642 | recips = (char **) alloc((numforward + 1) * sizeof(char *)); | ^ qmail-local.c:660: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] 660 | 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:666: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] 666 | 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:676: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] 676 | 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:681: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] 681 | 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:448:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 448 | int main(argc,argv) | ^ 234 warnings generated. ./compile qmail.c 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 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 ./compile gfrom.c 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 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 qsutil.c 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:13: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] 13 | substdio_putflush(&sserr,sa->s,sa->len); } | ^ qsutil.c:12:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 12 | 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:15: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] 15 | substdio_putsflush(&sserr,s1); } | ^ qsutil.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 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: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,s1); | ^ qsutil.c:18: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] 18 | substdio_putsflush(&sserr,s2); } | ^ qsutil.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 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: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,s1); | ^ 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,s2); | ^ qsutil.c:22: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] 22 | substdio_putsflush(&sserr,s3); } | ^ qsutil.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 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: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(&tcpsserr,s1); | ^ qsutil.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(&tcpsserr,s2); | ^ qsutil.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(&tcpsserr,s3); } | ^ qsutil.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 tcplog(s1,s2,s3) char *s1; char *s2; char *s3; { | ^ qsutil.c:27:61: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 27 | void nomem() { log1("alert: out of memory, sleeping...\n"); sleep(10); } | ^ qsutil.c:30:60: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | { log3("alert: unable to opendir ",dir,", sleeping...\n"); sleep(10); } | ^ qsutil.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 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:32:12: 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 int issafe(ch) char ch; | ^ qsutil.c:43: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] 43 | while (!stralloc_copys(&foo,s)) nomem(); | ^ qsutil.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 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(); | ^ 28 warnings generated. ./compile slurpclose.c 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. ./compile connect_mysql.c -I/usr/local/include -DO_NOT_LOG_CONNECTS In file included from connect_mysql.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)' connect_mysql.c:23:10: warning: call to undeclared function 'init_mysql'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 23 | return init_mysql(); | ^ connect_mysql.c:47:9: warning: call to undeclared function 'read_config_file'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 47 | if (! read_config_file(&host, &user, &pass, &name, &port, &sock, &fois, &portnum, &tries)) { | ^ connect_mysql.c:48: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] 48 | log1("error: without a valid config file we can't access the database!\n"); | ^ connect_mysql.c:64: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] 64 | log3("error: ", mysql_error(&dbh), "\n"); | ^ connect_mysql.c:65:5: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | sleep(3); | ^ connect_mysql.c:68:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | stralloc_free(&host); | ^ connect_mysql.c:69:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | stralloc_free(&user); | ^ connect_mysql.c:70:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | stralloc_free(&pass); | ^ connect_mysql.c:71:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | stralloc_free(&port); | ^ connect_mysql.c:72:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | stralloc_free(&sock); | ^ connect_mysql.c:73:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | stralloc_free(&fois); | ^ connect_mysql.c:76: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] 76 | log3("giving up on connection to '", name.s, "' database\n"); | ^ connect_mysql.c:77:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | stralloc_free(&name); | ^ connect_mysql.c:80:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | stralloc_free(&name); | ^ connect_mysql.c:97: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] 97 | i = str_len(SQLSERVER) + str_len(auto_qmail) + 10; | ^ connect_mysql.c:97:35: 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] 97 | i = str_len(SQLSERVER) + str_len(auto_qmail) + 10; | ^ connect_mysql.c:98: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] 98 | if (! stralloc_ready(&filename, i)) return 0; | ^ connect_mysql.c:99: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] 99 | if (! stralloc_cats(&filename, auto_qmail)) return 0; | ^ connect_mysql.c:100: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] 100 | if (! stralloc_cats(&filename, "/control/")) return 0; | ^ connect_mysql.c:101: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] 101 | if (! stralloc_cats(&filename, SQLSERVER)) return 0; | ^ connect_mysql.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(&filename)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ connect_mysql.c:108:10: warning: call to undeclared function 'open_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | file = open_read(filename.s); | ^ connect_mysql.c:110: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] 110 | log3("error: could not open sqlserver file \"", filename.s, "\"\n"); | ^ connect_mysql.c:111:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | stralloc_free(&filename); | ^ connect_mysql.c:112:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | stralloc_free(&buf); | ^ connect_mysql.c:116: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] 116 | substdio_fdbuf(&ss, read, file, inbuf, sizeof(inbuf)); | ^ connect_mysql.c:117:10: warning: call to undeclared function 'getln'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | while (getln(&ss, &buf, &match, '\n') != -1) { | ^ connect_mysql.c:120: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] 120 | if (! stralloc_0(&buf)) break; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ connect_mysql.c:123:25: warning: call to undeclared function 'getconfig'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | case 'h': error = getconfig(&buf, "host", host); break; | ^ connect_mysql.c:142:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 142 | close(file); | ^ connect_mysql.c:143:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | stralloc_free(&filename); | ^ connect_mysql.c:144:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | stralloc_free(&buf); | ^ connect_mysql.c:149: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] 149 | i = scan_ulong(port->s, portnum); | ^ connect_mysql.c:151: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] 151 | log3("error: bogus port number: \"", port->s, "\"\n"); | ^ connect_mysql.c:160: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] 160 | i = scan_ulong(fois->s, tries); | ^ connect_mysql.c:162: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] 162 | log3("warning: bogus connection attempts number: \"", fois->s, "\"\n"); | ^ connect_mysql.c:163:25: 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] 163 | if (stralloc_ready(fois, FMT_ULONG)) { | ^ connect_mysql.c:164:26: 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] 164 | fois->s[fmt_ulong(fois->s, TRIES)] = '\0'; | ^ connect_mysql.c:165: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] 165 | log3("warning: using default ", fois->s, "\n"); | ^ connect_mysql.c:171:13: warning: passing arguments to 'log1' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | log1("error: we must make at least one connection attempt\n"); | ^ connect_mysql.c:187: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] 187 | log3("error: no username provided in \"", filename.s, "\"\n"); | ^ connect_mysql.c:199: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] 199 | log3("error: you can't specify a port number AND a socket\n"); | ^ connect_mysql.c:222:23: 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] 222 | x = got->s + str_len(expected); | ^ connect_mysql.c:225:24: 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] 225 | if (! stralloc_starts(&got, expected) && (*x == ' ' || *x == '\t' || *x == '=') && str_len(value) > 0) { | ^ connect_mysql.c:225:93: 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] 225 | if (! stralloc_starts(&got, expected) && (*x == ' ' || *x == '\t' || *x == '=') && str_len(value) > 0) { | ^ connect_mysql.c:226:40: 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] 226 | if (! stralloc_ready(store, str_len(value) + 1)) return -1; | ^ connect_mysql.c:226:25: 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] 226 | if (! stralloc_ready(store, str_len(value) + 1)) return -1; | ^ connect_mysql.c:227: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] 227 | if (! stralloc_cats(store, value)) return -1; | ^ connect_mysql.c:228: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] 228 | if (! stralloc_0(store)) return -1; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ connect_mysql.c:232:7: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | log3("error: reading sqlserver file, expected \"", expected, "\" but got \""); | ^ connect_mysql.c:233:7: warning: passing arguments to 'log2' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | log2(got, "\"\n"); | ^ 52 warnings generated. ./compile do_query.c -I/usr/local/include -DO_NOT_LOG_CONNECTS In file included from do_query.c:3: ./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)' do_query.c:12:9: warning: call to undeclared function 'connect_mysql'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 12 | if (! connect_mysql()) return -1; | ^ do_query.c:14:3: warning: call to undeclared function 'tcplog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 14 | tcplog("query: ", query->s, ";\n"); | ^ do_query.c:21:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | stralloc_free(query); | ^ 4 warnings generated. ./compile dotqmail_mysql.c -I/usr/local/include -DO_NOT_LOG_CONNECTS In file included from dotqmail_mysql.c:3: ./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)' dotqmail_mysql.c:29:7: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 29 | i = str_len(username); | ^ dotqmail_mysql.c:30: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] 30 | if (! stralloc_ready(&user, 2 * i + 1)) return zoiks(-1); | ^ dotqmail_mysql.c:30:50: warning: call to undeclared function 'zoiks'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 30 | if (! stralloc_ready(&user, 2 * i + 1)) return zoiks(-1); | ^ dotqmail_mysql.c:34: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] 34 | if (! stralloc_ready(&real_ext, 2 * i + 1)) return zoiks(-1); | ^ dotqmail_mysql.c:39: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] 39 | if (! stralloc_ready(&query, len)) return zoiks(-1); | ^ dotqmail_mysql.c:40: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] 40 | if (! stralloc_cats(&query, ALIAS1)) return zoiks(-1); | ^ dotqmail_mysql.c:41: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] 41 | if (! stralloc_cats(&query, user.s)) return zoiks(-1); | ^ dotqmail_mysql.c:42: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] 42 | if (! stralloc_cats(&query, ALIAS2)) return zoiks(-1); | ^ dotqmail_mysql.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(&query, real_ext.s)) return zoiks(-1); | ^ dotqmail_mysql.c:44: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] 44 | if (! stralloc_cats(&query, ALIAS3)) return zoiks(-1); | ^ dotqmail_mysql.c:45: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] 45 | if (! stralloc_0(&query)) return zoiks(-1); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dotqmail_mysql.c:48:3: warning: call to undeclared function 'tcplog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | tcplog("query: ", query.s, ";\n"); | ^ dotqmail_mysql.c:68:25: 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] 68 | if (! stralloc_ready(&query, len)) return zoiks(-1); | ^ dotqmail_mysql.c:69: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] 69 | if (! stralloc_cats(&query, ALIAS1)) return zoiks(-1); | ^ dotqmail_mysql.c:70: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] 70 | if (! stralloc_cats(&query, user.s)) return zoiks(-1); | ^ dotqmail_mysql.c:71: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] 71 | if (! stralloc_cats(&query, ALIAS2)) return zoiks(-1); | ^ dotqmail_mysql.c:72: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] 72 | if (! stralloc_append(&query, "@")) return zoiks(-1); | ^ dotqmail_mysql.c:73: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] 73 | if (! stralloc_cats(&query, ALIAS3)) return zoiks(-1); | ^ dotqmail_mysql.c:74: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] 74 | if (! stralloc_0(&query)) return zoiks(-1); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dotqmail_mysql.c:129: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] 129 | if (! stralloc_readyplus(sa, len)) return zoiks(-1); | ^ dotqmail_mysql.c:136: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] 136 | if (! stralloc_cats(sa, "| ")) return zoiks(-1); | ^ dotqmail_mysql.c:142: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] 142 | if (! stralloc_cats(sa, row[0])) return zoiks(-1); | ^ dotqmail_mysql.c:145: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] 145 | if (! stralloc_cats(sa, "&")) return zoiks(-1); | ^ dotqmail_mysql.c:146: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] 146 | if (! stralloc_cats(sa, row[0])) return zoiks(-1); | ^ dotqmail_mysql.c:147:11: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 147 | if (strcmp(row[1], "") && ! stralloc_cats(sa, "@")) return zoiks(-1); | ^ dotqmail_mysql.c:147:11: note: include the header or explicitly provide a declaration for 'strcmp' dotqmail_mysql.c:147:48: 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 (strcmp(row[1], "") && ! stralloc_cats(sa, "@")) return zoiks(-1); | ^ dotqmail_mysql.c:149: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] 149 | if (! stralloc_cats(sa, row[1])) return zoiks(-1); | ^ dotqmail_mysql.c:150: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] 150 | if (! stralloc_cats(sa, "\n")) return zoiks(-1); | ^ 29 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 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 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 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 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 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 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 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 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 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 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 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 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 ./compile sig_pipe.c 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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: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_append(); /* beware: this takes a pointer to 1 char */ | ^ 3 warnings generated. ./compile stralloc_copy.c 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 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 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 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 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 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 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: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 stralloc_starts(); | ^ 4 warnings generated. ./compile stralloc_free.c In file included from stralloc_free.c:1: ./stralloc.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 stralloc_free(); | ^ stralloc_free.c:3:6: note: conflicting prototype is here 3 | void stralloc_free(stralloc *labrat) { | ^ stralloc_free.c:4:3: warning: call to undeclared function 'alloc_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 4 | alloc_free(labrat->s); | ^ 2 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 stralloc_free.o ./compile alloc.c 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 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 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 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 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 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 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 ./compile subfdout.c ./compile subfdouts.c ./compile subfdin.c 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 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 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 ./compile error_str.c 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ./compile auto-int8.c 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 ( ( ./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 qsutil.o slurpclose.o connect_mysql.o do_query.o dotqmail_mysql.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` `/usr/local/bin/mysql_config --libs` ( ( ./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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 ./load chkspawn substdio.a error.a str.a fs.a auto_spawn.o ./chkspawn ./compile spawn.c 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 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 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 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 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 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 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 ./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 qmail-getpw.c:40: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] 40 | extension = local + str_len(local); | ^ qmail-getpw.c:44: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] 44 | byte_copy(username,extension - local,local); | ^ qmail-getpw.c:46: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] 46 | case_lowers(username); | ^ qmail-getpw.c:56:27: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 56 | pw = (struct passwd *) malloc(sizeof(struct passwd)); | ^ qmail-getpw.c:56:27: note: include the header or explicitly provide a declaration for 'malloc' qmail-getpw.c:74: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] 74 | if (error_temp(errno)) _exit(QLX_NFS); | ^ qmail-getpw.c:73:6: warning: add explicit braces to avoid dangling else [-Wdangling-else] 73 | else | ^ qmail-getpw.c:108: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] 108 | substdio_puts(subfdoutsmall,pw->pw_name); | ^ qmail-getpw.c:109: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] 109 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:110: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] 110 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_uid)); | ^ qmail-getpw.c:110: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] 110 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_uid)); | ^ qmail-getpw.c:111: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] 111 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:112: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] 112 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_gid)); | ^ qmail-getpw.c:112: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] 112 | substdio_put(subfdoutsmall,num,fmt_ulong(num,(long) pw->pw_gid)); | ^ qmail-getpw.c:113: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] 113 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.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(subfdoutsmall,pw->pw_dir); | ^ qmail-getpw.c:115: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] 115 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:116: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] 116 | substdio_puts(subfdoutsmall,dash); | ^ qmail-getpw.c:117: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] 117 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:118: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] 118 | substdio_puts(subfdoutsmall,extension); | ^ qmail-getpw.c:119: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] 119 | substdio_put(subfdoutsmall,"",1); | ^ qmail-getpw.c:120: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] 120 | substdio_flush(subfdoutsmall); | ^ qmail-getpw.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 main(argc,argv) | ^ 22 warnings generated. ./auto-str auto_break "`head -1 conf-break`" > auto_break.c ./compile auto_break.c ./auto-str auto_usera `head -1 conf-users` > auto_usera.c ./compile auto_usera.c ./compile getpw_mysql.c -I/usr/local/include getpw_mysql.c:24:34: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 24 | if (! stralloc_ready(&tmpname, str_len(username))) return -1; | ^ getpw_mysql.c:24: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] 24 | if (! stralloc_ready(&tmpname, str_len(username))) return -1; | ^ getpw_mysql.c:25: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] 25 | if (! stralloc_copys(&tmpname, username)) return -1; | ^ getpw_mysql.c:26: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] 26 | if (! stralloc_0(&tmpname)) return -1; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ getpw_mysql.c:27: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] 27 | if (! stralloc_ready(&tmphome, str_len(row[2]))) return -1; | ^ getpw_mysql.c:28: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] 28 | if (! stralloc_copys(&tmphome, row[2])) return -1; | ^ getpw_mysql.c:29: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] 29 | if (! stralloc_0(&tmphome)) return -1; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ getpw_mysql.c:30: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] 30 | if (! stralloc_ready(&tmpshell, str_len(row[3]))) return -1; | ^ getpw_mysql.c:31: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] 31 | if (! stralloc_copys(&tmpshell, row[3])) return -1; | ^ getpw_mysql.c:32: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] 32 | if (! stralloc_0(&tmpshell)) return -1; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ getpw_mysql.c:35: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] 35 | len = scan_ulong(row[0], uid); | ^ getpw_mysql.c:37:5: warning: call to undeclared function 'log3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 37 | log3("MySQL misconfiguration: uid should be a number for user ", username , "!\n"); | ^ getpw_mysql.c:41: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] 41 | len = scan_ulong(row[1], gid); | ^ getpw_mysql.c:43:5: warning: call to undeclared function 'log3'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 43 | log3("MySQL misconfiguration: gid should be a number for user ", username, "!\n"); | ^ 14 warnings generated. ./compile make_query.c -I/usr/local/include make_query.c:8:11: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 8 | i = 2 * str_len(username) + 1; | ^ make_query.c:9: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] 9 | if (! stralloc_ready(&user, i)) return 0; | ^ make_query.c:10:3: warning: call to undeclared function 'mysql_escape_string'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 10 | mysql_escape_string(user.s, username, str_len(username)); | ^ make_query.c:13: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] 13 | if (! stralloc_ready(query, len)) { stralloc_free(&user); return 0; } | ^ make_query.c:13:52: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 13 | if (! stralloc_ready(query, len)) { stralloc_free(&user); return 0; } | ^ make_query.c:14: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] 14 | if (! stralloc_cats(query, QUERY)) { stralloc_free(&user); return 0; } | ^ make_query.c:14:53: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 14 | if (! stralloc_cats(query, QUERY)) { stralloc_free(&user); return 0; } | ^ make_query.c:15: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] 15 | if (! stralloc_cats(query, user.s)) { stralloc_free(&user); return 0; } | ^ make_query.c:15:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | if (! stralloc_cats(query, user.s)) { stralloc_free(&user); return 0; } | ^ make_query.c:16:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | stralloc_free(&user); | ^ make_query.c:17: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] 17 | if (! stralloc_cats(query, "'")) return 0; | ^ make_query.c:18: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] 18 | if (! stralloc_0(query)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ 12 warnings generated. ./load qmail-getpw qsutil.o auto_break.o auto_usera.o auto_qmail.o connect_mysql.o getpw_mysql.o make_query.o do_query.o scan_ulong.o open_read.o case.a substdio.a error.a str.a fs.a getln.a stralloc.a alloc.a substdio.a env.a str.a `/usr/local/bin/mysql_config --libs` ./compile qmail-remote.c 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:51: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] 51 | void out(s) char *s; { if (substdio_puts(subfdoutsmall,s) == -1) _exit(0); } | ^ qmail-remote.c:51:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 51 | void out(s) char *s; { if (substdio_puts(subfdoutsmall,s) == -1) _exit(0); } | ^ qmail-remote.c:52: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] 52 | void zero() { if (substdio_put(subfdoutsmall,"\0",1) == -1) _exit(0); } | ^ qmail-remote.c:53: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] 53 | void zerodie() { zero(); substdio_flush(subfdoutsmall); _exit(0); } | ^ qmail-remote.c:57: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] 57 | if (substdio_put(subfdoutsmall,&ch,1) == -1) _exit(0); } } | ^ qmail-remote.c:54:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | void outsafe(sa) stralloc *sa; { int i; char ch; | ^ qmail-remote.c:92: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] 92 | if (substdio_put(subfdoutsmall,x,ip_fmt(x,&partner)) == -1) _exit(0); | ^ qmail-remote.c:92: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] 92 | if (substdio_put(subfdoutsmall,x,ip_fmt(x,&partner)) == -1) _exit(0); | ^ qmail-remote.c:113: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] 113 | r = timeoutread(timeout,smtpfd,buf,len); | ^ qmail-remote.c:110:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | int saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-remote.c:120: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] 120 | r = timeoutwrite(timeout,smtpfd,buf,len); | ^ qmail-remote.c:117:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | int safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-remote.c:137: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] 137 | substdio_get(&smtpfrom,ch,1); | ^ qmail-remote.c:140: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] 140 | if (!stralloc_append(&smtptext,ch)) temp_nomem(); | ^ qmail-remote.c:134:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | void get(ch) | ^ qmail-remote.c:148: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] 148 | if (!stralloc_copys(&smtptext,"")) temp_nomem(); | ^ qmail-remote.c:150: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] 150 | get(&ch); code = ch - '0'; | ^~~ qmail-remote.c:151: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] 151 | get(&ch); code = code * 10 + (ch - '0'); | ^~~ qmail-remote.c:152: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] 152 | get(&ch); code = code * 10 + (ch - '0'); | ^~~ qmail-remote.c:154: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] 154 | get(&ch); | ^~~ qmail-remote.c:156: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] 156 | while (ch != '\n') get(&ch); | ^~~ qmail-remote.c:157: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] 157 | get(&ch); | ^~~ qmail-remote.c:158: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] 158 | get(&ch); | ^~~ qmail-remote.c:159: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] 159 | get(&ch); | ^~~ qmail-remote.c:161: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] 161 | while (ch != '\n') get(&ch); | ^~~ qmail-remote.c:173: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] 173 | if (substdio_put(subfdoutsmall,smtptext.s,smtptext.len) == -1) _exit(0); | ^ qmail-remote.c:182: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] 182 | substdio_putsflush(&smtpto,"QUIT\r\n"); | ^ qmail-remote.c:178:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | void quit(prepend,append) | ^ qmail-remote.c:198: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] 198 | r = substdio_get(&ssin,&ch,1); | ^ qmail-remote.c:202: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] 202 | substdio_put(&smtpto,".",1); | ^ qmail-remote.c:204: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] 204 | substdio_put(&smtpto,&ch,1); | ^ qmail-remote.c:205: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] 205 | r = substdio_get(&ssin,&ch,1); | ^ qmail-remote.c:209: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] 209 | substdio_put(&smtpto,"\r\n",2); | ^ qmail-remote.c:213: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] 213 | substdio_put(&smtpto,".\r\n",3); | ^ qmail-remote.c:214: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] 214 | substdio_flush(&smtpto); | ^ qmail-remote.c:230: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] 230 | substdio_puts(&smtpto,"HELO "); | ^ qmail-remote.c:231: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] 231 | substdio_put(&smtpto,helohost.s,helohost.len); | ^ qmail-remote.c:232: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] 232 | substdio_puts(&smtpto,"\r\n"); | ^ qmail-remote.c:233: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] 233 | substdio_flush(&smtpto); | ^ qmail-remote.c:236: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] 236 | substdio_puts(&smtpto,"MAIL FROM:<"); | ^ qmail-remote.c:237: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] 237 | substdio_put(&smtpto,sender.s,sender.len); | ^ qmail-remote.c:238: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] 238 | substdio_puts(&smtpto,">\r\n"); | ^ qmail-remote.c:239: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] 239 | substdio_flush(&smtpto); | ^ qmail-remote.c:246: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] 246 | substdio_puts(&smtpto,"RCPT TO:<"); | ^ qmail-remote.c:247: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] 247 | substdio_put(&smtpto,reciplist.sa[i].s,reciplist.sa[i].len); | ^ qmail-remote.c:248: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] 248 | substdio_puts(&smtpto,">\r\n"); | ^ qmail-remote.c:249: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] 249 | substdio_flush(&smtpto); | ^ qmail-remote.c:266: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] 266 | substdio_putsflush(&smtpto,"DATA\r\n"); | ^ qmail-remote.c:292: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] 292 | j = str_rchr(s,'@'); | ^ qmail-remote.c:294: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] 294 | if (!stralloc_copys(saout,s)) temp_nomem(); | ^ qmail-remote.c:297: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] 297 | if (!stralloc_copys(&canonbox,s)) temp_nomem(); | ^ qmail-remote.c:299: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] 299 | if (!quote(saout,&canonbox)) temp_nomem(); | ^ qmail-remote.c:300: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] 300 | if (!stralloc_cats(saout,"@")) temp_nomem(); | ^ qmail-remote.c:302: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] 302 | if (!stralloc_copys(&canonhost,s + j + 1)) temp_nomem(); | ^ qmail-remote.c:304: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] 304 | switch(dns_cname(&canonhost)) { | ^ qmail-remote.c:311: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] 311 | if (!stralloc_cat(saout,&canonhost)) temp_nomem(); | ^ qmail-remote.c:282:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | void addrmangle(saout,s,flagalias,flagcname) | ^ qmail-remote.c:317: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] 317 | if (control_readint(&timeout,"control/timeoutremote") == -1) temp_control(); | ^ qmail-remote.c:318: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] 318 | if (control_readint(&timeoutconnect,"control/timeoutconnect") == -1) | ^ qmail-remote.c:320: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] 320 | if (control_rldef(&helohost,"control/helohost",1,(char *) 0) != 1) | ^ qmail-remote.c:322: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] 322 | switch(control_readfile(&routes,"control/smtproutes",0)) { | ^ qmail-remote.c:326: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] 326 | if (!constmap_init(&maproutes,"",0,1)) temp_nomem(); break; | ^ qmail-remote.c:328: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] 328 | if (!constmap_init(&maproutes,routes.s,routes.len,1)) temp_nomem(); break; | ^ qmail-remote.c:347:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 347 | if (chdir(auto_qmail) == -1) temp_chdir(); | ^ qmail-remote.c:351: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] 351 | if (!stralloc_copys(&host,argv[1])) temp_nomem(); | ^ qmail-remote.c:356: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] 356 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ qmail-remote.c:356:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 356 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-remote.c:356:21: note: place parentheses around the assignment to silence this warning 356 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ | ( ) qmail-remote.c:356:21: note: use '==' to turn this assignment into an equality comparison 356 | if (relayhost = constmap(&maproutes,host.s + i,host.len - i)) | ^ | == qmail-remote.c:361: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] 361 | i = str_chr(relayhost,':'); | ^ qmail-remote.c:363: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] 363 | scan_ulong(relayhost + i + 1,&port); | ^ qmail-remote.c:366: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] 366 | if (!stralloc_copys(&host,relayhost)) temp_nomem(); | ^ qmail-remote.c:387:21: warning: call to undeclared function 'getpid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 387 | random = now() + (getpid() << 16); | ^ qmail-remote.c:388: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] 388 | switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&host,random)) { | ^ qmail-remote.c:388: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] 388 | switch (relayhost ? dns_ip(&ip,&host) : dns_mxip(&ip,&host,random)) { | ^ qmail-remote.c:400: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] 400 | if (ipme_is(&ip.ix[i].ip)) | ^ qmail-remote.c:415: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] 415 | if (tcpto(&ip.ix[i].ip)) continue; | ^ qmail-remote.c:420: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] 420 | if (timeoutconn(smtpfd,&ip.ix[i].ip,(unsigned int) port,timeoutconnect) == 0) { | ^ qmail-remote.c:421: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] 421 | tcpto_err(&ip.ix[i].ip,0); | ^ qmail-remote.c:425: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] 425 | tcpto_err(&ip.ix[i].ip,errno == error_timeout); | ^ qmail-remote.c:426:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | close(smtpfd); | ^ qmail-remote.c:332:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 332 | int main(argc,argv) | ^ 83 warnings generated. ./compile control.c 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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:703:74: note: passing argument to parameter here 703 | 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dns.c:293: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] 293 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:293: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] 293 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:295: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] 295 | if (!ipalloc_append(ia,&ix)) return DNS_MEM; | ^ dns.c:312: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] 312 | 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:321: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] 321 | if (!ipalloc_readyplus(ia,0)) return DNS_MEM; | ^ dns.c:317:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | 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:339: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] 339 | if (!ipalloc_readyplus(ia,0)) return DNS_MEM; | ^ dns.c:342: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] 342 | if (!stralloc_copy(&glue,sa)) return DNS_MEM; | ^ dns.c:343: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] 343 | if (!stralloc_0(&glue)) return DNS_MEM; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ dns.c:346: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] 346 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:346: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] 346 | if (!glue.s[ip_scan(glue.s,&ix.ip)] || !glue.s[ip_scanbracket(glue.s,&ix.ip)]) | ^ dns.c:348: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] 348 | if (!ipalloc_append(ia,&ix)) return DNS_MEM; | ^ dns.c:360: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] 360 | mx = (struct mx *) alloc(numanswers * sizeof(struct mx)); | ^ dns.c:366: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] 366 | if (r == DNS_SOFT) { alloc_free(mx); return DNS_SOFT; } | ^ dns.c:371: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] 371 | if (!stralloc_copys(&mx[nummx].sa,name)) | ^ dns.c:373: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] 373 | while (nummx > 0) alloc_free(mx[--nummx].sa.s); | ^ dns.c:374: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] 374 | alloc_free(mx); return DNS_MEM; | ^ dns.c:409: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] 409 | alloc_free(mx[i].sa.s); | ^ dns.c:413: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] 413 | alloc_free(mx); | ^ 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_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 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 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: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 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: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 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 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 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 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 ./load qmail-remote control.o constmap.o timeoutread.o timeoutwrite.o timeoutconn.o tcpto.o now.o dns.o ip.o 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 ./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 -I/usr/local/include In file included from qmail-send.c:8: ./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:30: ./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:81: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] 81 | void cleandied() { log1("alert: oh no! lost qmail-clean connection! dying...\n"); | ^ qmail-send.c:85: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] 85 | void spawndied(c) int c; { log1("alert: oh no! lost spawn connection! dying...\n"); | ^ qmail-send.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 spawndied(c) int c; { log1("alert: oh no! lost spawn connection! dying...\n"); | ^ qmail-send.c:101: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] 101 | while (!stralloc_ready(&fn,FMTQFN)) nomem(); | ^ qmail-send.c:102: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] 102 | while (!stralloc_ready(&fn2,FMTQFN)) nomem(); | ^ qmail-send.c:105: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] 105 | void fnmake_info(id) unsigned long id; { fn.len = fmtqfn(fn.s,"info/",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_info(id) unsigned long id; { fn.len = fmtqfn(fn.s,"info/",id,1); } | ^ qmail-send.c:106: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] 106 | void fnmake_todo(id) unsigned long id; { fn.len = fmtqfn(fn.s,"todo/",id,0); } | ^ qmail-send.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 fnmake_todo(id) unsigned long id; { fn.len = fmtqfn(fn.s,"todo/",id,0); } | ^ qmail-send.c:107: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] 107 | void fnmake_mess(id) unsigned long id; { fn.len = fmtqfn(fn.s,"mess/",id,1); } | ^ qmail-send.c:107:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | void fnmake_mess(id) unsigned long id; { fn.len = fmtqfn(fn.s,"mess/",id,1); } | ^ qmail-send.c:108: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] 108 | void fnmake_foop(id) unsigned long id; { fn.len = fmtqfn(fn.s,"foop/",id,0); } | ^ qmail-send.c:108:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | void fnmake_foop(id) unsigned long id; { fn.len = fmtqfn(fn.s,"foop/",id,0); } | ^ qmail-send.c:109: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] 109 | void fnmake_split(id) unsigned long id; { fn.len = fmtqfn(fn.s,"",id,1); } | ^ qmail-send.c:109:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | void fnmake_split(id) unsigned long id; { fn.len = fmtqfn(fn.s,"",id,1); } | ^ qmail-send.c:111: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] 111 | { fn2.len = fmtqfn(fn2.s,"bounce/",id,0); } | ^ qmail-send.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | void fnmake2_bounce(id) unsigned long id; | ^ qmail-send.c:113: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] 113 | { fn.len = fmtqfn(fn.s,chanaddr[c],id,1); } | ^ qmail-send.c:112:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | void fnmake_chanaddr(id,c) unsigned long id; int c; | ^ qmail-send.c:131: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] 131 | if (!stralloc_copys(&rwline,"T")) return 0; | ^ qmail-send.c:132: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] 132 | if (!stralloc_copys(&addr,recip)) return 0; | ^ qmail-send.c:134: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] 134 | i = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-send.c:136: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] 136 | if (!stralloc_cats(&addr,"@")) return 0; | ^ qmail-send.c:137: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] 137 | if (!stralloc_cat(&addr,&envnoathost)) return 0; | ^ qmail-send.c:140: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] 140 | while (constmap(&mappercenthack,addr.s + i + 1,addr.len - i - 1)) { | ^ qmail-send.c:141: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] 141 | j = byte_rchr(addr.s,i,'%'); | ^ qmail-send.c:148: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] 148 | at = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-send.c:152: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] 152 | if (constmap(&maplocals,addr.s + at + 1,addr.len - at - 1)) { | ^ qmail-send.c:157:24: 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] 157 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:158: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] 158 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:166: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] 166 | if (!stralloc_cat(&addr, &envnoathost)) return 0; | ^ qmail-send.c:176: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] 176 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ qmail-send.c:176:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 176 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:176:13: note: place parentheses around the assignment to silence this warning 176 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ | ( ) qmail-send.c:176:13: note: use '==' to turn this assignment into an equality comparison 176 | if (x = constmap(&mapvdoms,addr.s + i,addr.len - i)) { | ^ | == qmail-send.c:178: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] 178 | if (!stralloc_cats(&rwline,x)) return 0; | ^ qmail-send.c:179: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] 179 | if (!stralloc_cats(&rwline,"-")) return 0; | ^ qmail-send.c:180: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] 180 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:181: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] 181 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:185: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] 185 | if (!stralloc_cat(&rwline,&addr)) return 0; | ^ qmail-send.c:186: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] 186 | if (!stralloc_0(&rwline)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.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 rewrite(recip) | ^ qmail-send.c:199: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] 199 | i = str_len(sender); | ^ qmail-send.c:201: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] 201 | 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:203: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] 203 | j = byte_rchr(sender,i - 4,'@'); | ^ qmail-send.c:204: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] 204 | k = str_rchr(recip,'@'); | ^ qmail-send.c:208: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] 208 | while (!stralloc_catb(sa,sender,j)) nomem(); | ^ qmail-send.c:209: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] 209 | while (!stralloc_catb(sa,recip,k)) nomem(); | ^ qmail-send.c:210: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] 210 | while (!stralloc_cats(sa,"=")) nomem(); | ^ qmail-send.c:211: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] 211 | while (!stralloc_cats(sa,recip + k + 1)) nomem(); | ^ qmail-send.c:212: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] 212 | while (!stralloc_cats(sa,"@")) nomem(); | ^ qmail-send.c:213: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] 213 | while (!stralloc_catb(sa,sender + j + 1,i - 5 - j)) nomem(); | ^ qmail-send.c:217: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] 217 | while (!stralloc_cats(sa,sender)) nomem(); | ^ qmail-send.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | void senderadd(sa,sender,recip) | ^ qmail-send.c:236: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] 236 | fdinfo = open_read(fn.s); | ^ qmail-send.c:238:33: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 238 | if (fstat(fdinfo,&st) == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:239: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] 239 | substdio_fdbuf(&ss,read,fdinfo,buf,sizeof(buf)); | ^ qmail-send.c:240: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] 240 | if (getln(&ss,&line,&match,'\0') == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:240:44: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 240 | if (getln(&ss,&line,&match,'\0') == -1) { close(fdinfo); return 0; } | ^ qmail-send.c:241:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 241 | close(fdinfo); | ^ qmail-send.c:246: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] 246 | while (!stralloc_copys(sa,line.s + 1)) nomem(); | ^ qmail-send.c:247: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] 247 | while (!stralloc_0(sa)) nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:223:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | int getinfo(sa,dt,id) | ^ qmail-send.c:262: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] 262 | substdio_fdbuf(&sstoqc,write,5,sstoqcbuf,sizeof(sstoqcbuf)); | ^ qmail-send.c:263: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] 263 | substdio_fdbuf(&ssfromqc,read,6,ssfromqcbuf,sizeof(ssfromqcbuf)); | ^ qmail-send.c:265: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] 265 | if (ndelay_on(chanfdout[c]) == -1) | ^ qmail-send.c:270:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | int comm_canwrite(c) | ^ qmail-send.c:287: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] 287 | while (!stralloc_copys(&comm_buf[c],"")) nomem(); | ^ qmail-send.c:289: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] 289 | while (!stralloc_append(&comm_buf[c],&ch)) nomem(); | ^ qmail-send.c:291: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] 291 | while (!stralloc_cats(&comm_buf[c],fn.s)) nomem(); | ^ qmail-send.c:292: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] 292 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:294: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] 294 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:295: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] 295 | while (!stralloc_cats(&comm_buf[c],recip)) nomem(); | ^ qmail-send.c:296: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] 296 | while (!stralloc_0(&comm_buf[c])) nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:278:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | void comm_write(c,delnum,id,sender,recip) | ^ qmail-send.c:300:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 300 | void comm_selprep(nfds,wfds) | ^ qmail-send.c:327: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] 327 | w = write(chanfdout[c],comm_buf[c].s + comm_pos[c],len - comm_pos[c]); | ^ qmail-send.c:315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | void comm_do(wfds) | ^ qmail-send.c:357:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 357 | void cleanup_selprep(wakeup) | ^ qmail-send.c:373: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] 373 | readsubdir_init(&cleanupdir,"mess",pausedir); | ^ qmail-send.c:377: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] 377 | switch(readsubdir_next(&cleanupdir,&id)) | ^ qmail-send.c:400: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] 400 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:401: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] 401 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:403: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] 403 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:446: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] 446 | while (!prioq_insert(&pqchan[c],&pechan[c])) nomem(); | ^ qmail-send.c:452: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] 452 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:458: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] 458 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:460: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] 460 | while (!prioq_insert(&pqfail,&pe)) nomem(); | ^ qmail-send.c:415:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | void pqadd(id) | ^ qmail-send.c:469: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] 469 | readsubdir_init(&rs,"info",pausedir); | ^ qmail-send.c:471: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] 471 | while (x = readsubdir_next(&rs,&id)) | ^ qmail-send.c:471:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 471 | while (x = readsubdir_next(&rs,&id)) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:471:11: note: place parentheses around the assignment to silence this warning 471 | while (x = readsubdir_next(&rs,&id)) | ^ | ( ) qmail-send.c:471:11: note: use '==' to turn this assignment into an equality comparison 471 | while (x = readsubdir_next(&rs,&id)) | ^ | == qmail-send.c:483: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] 483 | while (prioq_min(&pqchan[c],&pe)) | ^ qmail-send.c:485: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] 485 | prioq_delmin(&pqchan[c]); | ^ qmail-send.c:488:10: warning: call to undeclared function 'utime'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 488 | if (utime(fn.s,ut) == -1) | ^ qmail-send.c:489: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] 489 | log3("warning: unable to utime ",fn.s,"; message will be retried too soon\n"); | ^ qmail-send.c:526: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] 526 | while (!(jo = (struct job *) alloc(numjobs * sizeof(struct job)))) nomem(); | ^ qmail-send.c:541:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 541 | int job_open(id,channel) | ^ qmail-send.c:569:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 569 | if (unlink(fn.s) == -1) | ^ qmail-send.c:571: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] 571 | log3("warning: unable to unlink ",fn.s,"; will try again later\n"); | ^ qmail-send.c:583: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] 583 | log3("warning: unable to stat ",fn.s,"\n"); | ^ qmail-send.c:588: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] 588 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:593: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] 593 | while (!prioq_insert(&pqchan[jo[j].channel],&pe)) nomem(); | ^ qmail-send.c:556:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | void job_close(j) | ^ qmail-send.c:607: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] 607 | i = str_rchr(recip,'@'); | ^ qmail-send.c:610: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] 610 | domainlen = str_len(domain); | ^ qmail-send.c:614: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] 614 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ qmail-send.c:614:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 614 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ qmail-send.c:614:18: note: place parentheses around the assignment to silence this warning 614 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ | ( ) qmail-send.c:614:18: note: use '==' to turn this assignment into an equality comparison 614 | if (prepend = constmap(&mapvdoms,domain + i,domainlen - i)) | ^ | == qmail-send.c:617: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] 617 | i = str_len(prepend); | ^ qmail-send.c:618: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] 618 | if (str_diffn(recip,prepend,i)) break; | ^ qmail-send.c:599:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 599 | char *stripvdomprepend(recip) | ^ qmail-send.c:635: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] 635 | while (!stralloc_copys(&bouncetext,"<")) nomem(); | ^ qmail-send.c:636: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] 636 | while (!stralloc_cats(&bouncetext,stripvdomprepend(recip))) nomem(); | ^ qmail-send.c:640: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] 640 | while (!stralloc_cats(&bouncetext,">:\n")) nomem(); | ^ qmail-send.c:641: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] 641 | while (!stralloc_cats(&bouncetext,report)) nomem(); | ^ qmail-send.c:643: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] 643 | if (report[str_len(report) - 1] != '\n') | ^ qmail-send.c:644: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] 644 | while (!stralloc_cats(&bouncetext,"\n")) nomem(); | ^ qmail-send.c:649: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] 649 | while (!stralloc_cats(&bouncetext,"\n")) nomem(); | ^ qmail-send.c:653: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] 653 | fd = open_append(fn2.s); | ^ qmail-send.c:655: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] 655 | log1("alert: unable to append to bounce message; HELP! sleeping...\n"); | ^ qmail-send.c:656:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 656 | sleep(10); | ^ qmail-send.c:661: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] 661 | w = write(fd,bouncetext.s + pos,bouncetext.len - pos); | ^ qmail-send.c:664: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] 664 | log1("alert: unable to append to bounce message; HELP! sleeping...\n"); | ^ qmail-send.c:665:6: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 665 | sleep(10); | ^ qmail-send.c:670:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 670 | close(fd); | ^ qmail-send.c:627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | void addbounce(id,recip,report) | ^ qmail-send.c:694: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] 694 | 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:706: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] 706 | log3("warning: unable to stat ",fn2.s,"\n"); | ^ qmail-send.c:709: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] 709 | 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:710: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] 710 | log3("triple bounce: discarding ",fn2.s,"\n"); | ^ qmail-send.c:713: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] 713 | if (qmail_open(&qqt) == -1) | ^ qmail-send.c:714: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] 714 | { log1("warning: unable to start qmail-queue, will try later\n"); return 0; } | ^ qmail-send.c:715: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] 715 | qp = qmail_qp(&qqt); | ^ qmail-send.c:720: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] 720 | while (!newfield_datemake(now())) nomem(); | ^ qmail-send.c:721: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] 721 | qmail_put(&qqt,newfield_date.s,newfield_date.len); | ^ qmail-send.c:722: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] 722 | qmail_puts(&qqt,"From: "); | ^ qmail-send.c:723: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] 723 | while (!quote("ed,&bouncefrom)) nomem(); | ^ qmail-send.c:724: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] 724 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:725: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] 725 | qmail_puts(&qqt,"@"); | ^ qmail-send.c:726: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] 726 | qmail_put(&qqt,bouncehost.s,bouncehost.len); | ^ qmail-send.c:727: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] 727 | qmail_puts(&qqt,"\nTo: "); | ^ qmail-send.c:728: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] 728 | while (!quote2("ed,bouncerecip)) nomem(); | ^ qmail-send.c:729: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] 729 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:730: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] 730 | qmail_puts(&qqt,"\n\ | ^ qmail-send.c:734: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] 734 | qmail_put(&qqt,bouncehost.s,bouncehost.len); | ^ qmail-send.c:735: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] 735 | qmail_puts(&qqt,*sender.s ? ".\n\ | ^ qmail-send.c:744: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] 744 | fd = open_read(fn2.s); | ^ qmail-send.c:746: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] 746 | qmail_fail(&qqt); | ^ qmail-send.c:749: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] 749 | substdio_fdbuf(&ssread,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-send.c:750: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] 750 | while ((r = substdio_get(&ssread,buf,sizeof(buf))) > 0) | ^ qmail-send.c:751: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] 751 | qmail_put(&qqt,buf,r); | ^ qmail-send.c:752:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 752 | close(fd); | ^ qmail-send.c:754: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] 754 | qmail_fail(&qqt); | ^ qmail-send.c:757: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] 757 | 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:758: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] 758 | qmail_puts(&qqt,"Return-Path: <"); | ^ qmail-send.c:759: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] 759 | while (!quote2("ed,sender.s)) nomem(); | ^ qmail-send.c:760: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] 760 | qmail_put(&qqt,quoted.s,quoted.len); | ^ qmail-send.c:761: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] 761 | qmail_puts(&qqt,">\n"); | ^ qmail-send.c:763: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] 763 | fd = open_read(fn.s); | ^ qmail-send.c:765: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] 765 | qmail_fail(&qqt); | ^ qmail-send.c:768: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] 768 | substdio_fdbuf(&ssread,read,fd,inbuf,sizeof(inbuf)); | ^ qmail-send.c:769: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] 769 | while ((r = substdio_get(&ssread,buf,sizeof(buf))) > 0) | ^ qmail-send.c:770: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] 770 | qmail_put(&qqt,buf,r); | ^ qmail-send.c:771:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 771 | close(fd); | ^ qmail-send.c:773: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] 773 | qmail_fail(&qqt); | ^ qmail-send.c:776: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] 776 | qmail_from(&qqt,bouncesender); | ^ qmail-send.c:777: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] 777 | qmail_to(&qqt,bouncerecip); | ^ qmail-send.c:778: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] 778 | if (*qmail_close(&qqt)) | ^ qmail-send.c:779: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] 779 | { log1("warning: trouble injecting bounce message, will try later\n"); return 0; } | ^ qmail-send.c:781: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] 781 | strnum2[fmt_ulong(strnum2,id)] = 0; | ^ qmail-send.c:782: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] 782 | log2("bounce msg ",strnum2); | ^ qmail-send.c:783: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] 783 | strnum2[fmt_ulong(strnum2,qp)] = 0; | ^ qmail-send.c:784: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] 784 | log3(" qp ",strnum2,"\n"); | ^ qmail-send.c:786:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 786 | if (unlink(fn2.s) == -1) | ^ qmail-send.c:788: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] 788 | log3("warning: unable to unlink ",fn2.s,"\n"); | ^ qmail-send.c:673:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 673 | int injectbounce(id) | ^ qmail-send.c:818: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] 818 | log1("status:"); | ^ qmail-send.c:820: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] 820 | strnum2[fmt_ulong(strnum2,(unsigned long) concurrencyused[c])] = 0; | ^ qmail-send.c:821: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] 821 | strnum3[fmt_ulong(strnum3,(unsigned long) concurrency[c])] = 0; | ^ qmail-send.c:822: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] 822 | log2(chanstatusmsg[c],strnum2); | ^ qmail-send.c:823: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] 823 | log2("/",strnum3); | ^ qmail-send.c:825: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] 825 | if (flagexitasap) log1(" exitasap"); | ^ qmail-send.c:826: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] 826 | log1("\n"); | ^ qmail-send.c:836: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] 836 | while (!(d[c] = (struct del *) alloc(concurrency[c] * sizeof(struct del)))) | ^ qmail-send.c:841: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] 841 | while (!stralloc_copys(&dline[c],"")) nomem(); | ^ qmail-send.c:855:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 855 | int del_avail(c) | ^ qmail-send.c:876: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] 876 | if (!stralloc_copys(&d[c][i].recip,recip)) { nomem(); return; } | ^ qmail-send.c:877: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] 877 | if (!stralloc_0(&d[c][i].recip)) { nomem(); return; } | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:885: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] 885 | strnum2[fmt_ulong(strnum2,d[c][i].delid)] = 0; | ^ qmail-send.c:886: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] 886 | strnum3[fmt_ulong(strnum3,jo[j].id)] = 0; | ^ qmail-send.c:887: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] 887 | log2("starting delivery ",strnum2); | ^ 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(": msg ",strnum3,tochan[c]); | ^ qmail-send.c:889: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] 889 | logsafe(recip); | ^ qmail-send.c:890: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] 890 | log1("\n"); | ^ qmail-send.c:861:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 861 | void del_start(j,mpos,recip) | ^ qmail-send.c:904: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] 904 | fd = open_write(fn.s); | ^ qmail-send.c:906:31: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 906 | if (fstat(fd,&st) == -1) { close(fd); break; } | ^ qmail-send.c:907: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] 907 | if (seek_set(fd,pos) == -1) { close(fd); break; } | ^ qmail-send.c:907:34: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 907 | if (seek_set(fd,pos) == -1) { close(fd); break; } | ^ qmail-send.c:908: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] 908 | if (write(fd,"D",1) != 1) { close(fd); break; } | ^ qmail-send.c:908:32: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 908 | if (write(fd,"D",1) != 1) { close(fd); break; } | ^ qmail-send.c:910:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 910 | close(fd); | ^ qmail-send.c:913: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] 913 | log3("warning: trouble marking ",fn.s,"; message will be delivered twice!\n"); | ^ qmail-send.c:894:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 894 | void markdone(c,id,pos) | ^ qmail-send.c:923: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] 923 | r = read(chanfdin[c],delbuf,sizeof(delbuf)); | ^ qmail-send.c:929: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] 929 | while (!stralloc_append(&dline[c],&ch)) nomem(); | ^ qmail-send.c:938: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] 938 | log1("warning: internal error: delivery report out of range\n"); | ^ qmail-send.c:941: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] 941 | strnum3[fmt_ulong(strnum3,d[c][delnum].delid)] = 0; | ^ qmail-send.c:947: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] 947 | 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:948: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] 948 | while (!stralloc_0(&dline[c])) nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-send.c:953: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] 953 | log3("delivery ",strnum3,": success: "); | ^ qmail-send.c:954: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] 954 | logsafe(dline[c].s + 2); | ^ qmail-send.c:955: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] 955 | log1("\n"); | ^ qmail-send.c:960: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] 960 | log3("delivery ",strnum3,": deferral: "); | ^ qmail-send.c:961: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] 961 | logsafe(dline[c].s + 2); | ^ qmail-send.c:962: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] 962 | log1("\n"); | ^ qmail-send.c:965: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] 965 | log3("delivery ",strnum3,": failure: "); | ^ qmail-send.c:966: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] 966 | logsafe(dline[c].s + 2); | ^ qmail-send.c:967: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] 967 | log1("\n"); | ^ qmail-send.c:973: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] 973 | log3("delivery ",strnum3,": report mangled, will defer\n"); | ^ qmail-send.c:916:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | void del_dochan(c) | ^ qmail-send.c:984:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | void del_selprep(nfds,rfds) | ^ qmail-send.c:998:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 998 | void del_do(rfds) | ^ qmail-send.c:1041: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] 1041 | if (prioq_min(&pqchan[c],&pe)) | ^ qmail-send.c:1044: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] 1044 | if (prioq_min(&pqfail,&pe)) | ^ qmail-send.c:1047: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] 1047 | if (prioq_min(&pqdone,&pe)) | ^ qmail-send.c:1028:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1028 | void pass_selprep(wakeup) | ^ qmail-send.c:1052:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1052 | static datetime_sec squareroot(x) /* result^2 <= x < (result + 1)^2 */ | ^ qmail-send.c:1069:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1069 | datetime_sec nextretry(birth,c) | ^ qmail-send.c:1094: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] 1094 | if (!prioq_min(&pqchan[c],&pe)) return; | ^ qmail-send.c:1098: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] 1098 | prioq_delmin(&pqchan[c]); | ^ qmail-send.c:1100: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] 1100 | pass[c].fd = open_read(fn.s); | ^ qmail-send.c:1102:40: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1102 | if (!getinfo(&line,&birth,pe.id)) { close(pass[c].fd); goto trouble; } | ^ qmail-send.c:1104: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] 1104 | substdio_fdbuf(&pass[c].ss,read,pass[c].fd,pass[c].buf,sizeof(pass[c].buf)); | ^ qmail-send.c:1108: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] 1108 | while (!stralloc_copy(&jo[pass[c].j].sender,&line)) nomem(); | ^ qmail-send.c:1113: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] 1113 | if (getln(&pass[c].ss,&line,&match,'\0') == -1) | ^ qmail-send.c:1116: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] 1116 | log3("warning: trouble reading ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1117:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1117 | close(pass[c].fd); | ^ qmail-send.c:1124:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1124 | close(pass[c].fd); | ^ qmail-send.c:1140: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] 1140 | log3("warning: unknown record type in ",fn.s,"!\n"); | ^ qmail-send.c:1141:6: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1141 | close(pass[c].fd); | ^ qmail-send.c:1151: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] 1151 | log3("warning: trouble opening ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1153: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] 1153 | while (!prioq_insert(&pqchan[c],&pe)) nomem(); | ^ qmail-send.c:1081:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1081 | void pass_dochan(c) | ^ qmail-send.c:1170: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] 1170 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1179: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] 1179 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1187: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] 1187 | log3("warning: unable to stat ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1195: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] 1195 | strnum3[fmt_ulong(strnum3,id)] = 0; | ^ qmail-send.c:1196: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] 1196 | log3("end msg ",strnum3,"\n"); | ^ qmail-send.c:1200:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1200 | if (unlink(fn.s) == -1) | ^ qmail-send.c:1202: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] 1202 | log3("warning: unable to unlink ",fn.s,"; will try again later\n"); | ^ qmail-send.c:1208: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] 1208 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:1209: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] 1209 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:1211: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] 1211 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:1217: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] 1217 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:1156:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1156 | void messdone(id) | ^ qmail-send.c:1226: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] 1226 | if (prioq_min(&pqfail,&pe)) | ^ qmail-send.c:1229: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] 1229 | prioq_delmin(&pqfail); | ^ qmail-send.c:1232: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] 1232 | if (prioq_min(&pqdone,&pe)) | ^ qmail-send.c:1235: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] 1235 | prioq_delmin(&pqdone); | ^ qmail-send.c:1263: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] 1263 | trigger_selprep(nfds,rfds); | ^ qmail-send.c:1257:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1257 | void todo_selprep(nfds,rfds,wakeup) | ^ qmail-send.c:1295: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] 1295 | if (!trigger_pulled(rfds)) | ^ qmail-send.c:1302: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] 1302 | pausedir("todo"); | ^ qmail-send.c:1315: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] 1315 | 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:1316: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] 1316 | 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:1317: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] 1317 | len = scan_ulong(d->d_name,&id); | ^ qmail-send.c:1322: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] 1322 | fd = open_read(fn.s); | ^ qmail-send.c:1323: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] 1323 | if (fd == -1) { log3("warning: unable to open ",fn.s,"\n"); return; } | ^ qmail-send.c:1328: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] 1328 | { log3("warning: unable to stat ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1333:8: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1333 | if (unlink(fn.s) == -1) if (errno != error_noent) | ^ qmail-send.c:1334: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] 1334 | { log3("warning: unable to unlink ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1338:6: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1338 | if (unlink(fn.s) == -1) if (errno != error_noent) | ^ qmail-send.c:1339: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] 1339 | { log3("warning: unable to unlink ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1341: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] 1341 | fdinfo = open_excl(fn.s); | ^ qmail-send.c:1343: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] 1343 | { log3("warning: unable to create ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1345: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] 1345 | strnum3[fmt_ulong(strnum3,id)] = 0; | ^ qmail-send.c:1346: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] 1346 | log3("new msg ",strnum3,"\n"); | ^ qmail-send.c:1350: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] 1350 | substdio_fdbuf(&ss,read,fd,todobuf,sizeof(todobuf)); | ^ qmail-send.c:1351: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] 1351 | substdio_fdbuf(&ssinfo,write,fdinfo,todobufinfo,sizeof(todobufinfo)); | ^ qmail-send.c:1358: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] 1358 | if (getln(&ss,&todoline,&match,'\0') == -1) | ^ qmail-send.c:1362: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] 1362 | log3("warning: trouble reading ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1369: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] 1369 | scan_ulong(todoline.s + 1,&uid); | ^ qmail-send.c:1372: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] 1372 | scan_ulong(todoline.s + 1,&pid); | ^ qmail-send.c:1375: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] 1375 | if (substdio_putflush(&ssinfo,todoline.s,todoline.len) == -1) | ^ qmail-send.c:1378: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] 1378 | log3("warning: trouble writing to ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1380: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] 1380 | log2("info msg ",strnum3); | ^ qmail-send.c:1381: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] 1381 | strnum2[fmt_ulong(strnum2,(unsigned long) st.st_size)] = 0; | ^ qmail-send.c:1382: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] 1382 | log2(": bytes ",strnum2); | ^ qmail-send.c:1383: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] 1383 | log1(" from <"); logsafe(todoline.s + 1); | ^ qmail-send.c:1383: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] 1383 | log1(" from <"); logsafe(todoline.s + 1); | ^ qmail-send.c:1384: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] 1384 | strnum2[fmt_ulong(strnum2,pid)] = 0; | ^ qmail-send.c:1385: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] 1385 | log2("> qp ",strnum2); | ^ qmail-send.c:1386: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] 1386 | strnum2[fmt_ulong(strnum2,uid)] = 0; | ^ qmail-send.c:1387: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] 1387 | log2(" uid ",strnum2); | ^ qmail-send.c:1388: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] 1388 | log1("\n"); | ^ qmail-send.c:1400: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] 1400 | fdchan[c] = open_excl(fn.s); | ^ qmail-send.c:1402: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] 1402 | { log3("warning: unable to create ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1403: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] 1403 | substdio_fdbuf(&sschan[c] | ^ qmail-send.c:1407: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] 1407 | if (substdio_bput(&sschan[c],rwline.s,rwline.len) == -1) | ^ qmail-send.c:1410: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] 1410 | log3("warning: trouble writing to ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1415: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] 1415 | log3("warning: unknown record type in ",fn.s,"\n"); goto fail; | ^ qmail-send.c:1419:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1419 | close(fd); fd = -1; | ^ qmail-send.c:1422: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] 1422 | if (substdio_flush(&ssinfo) == -1) | ^ qmail-send.c:1423: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] 1423 | { log3("warning: trouble writing to ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1424:6: warning: call to undeclared function 'fsync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1424 | if (fsync(fdinfo) == -1) | ^ qmail-send.c:1425: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] 1425 | { log3("warning: trouble fsyncing ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1432: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] 1432 | if (substdio_flush(&sschan[c]) == -1) | ^ qmail-send.c:1433: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] 1433 | { log3("warning: trouble writing to ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1435: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] 1435 | { log3("warning: trouble fsyncing ",fn.s,"\n"); goto fail; } | ^ qmail-send.c:1440: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] 1440 | if (substdio_putflush(&sstoqc,fn.s,fn.len) == -1) { cleandied(); return; } | ^ qmail-send.c:1441: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] 1441 | if (substdio_get(&ssfromqc,&ch,1) != 1) { cleandied(); return; } | ^ qmail-send.c:1444: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] 1444 | log3("warning: qmail-clean unable to clean up ",fn.s,"\n"); | ^ qmail-send.c:1451: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] 1451 | while (!prioq_insert(&pqchan[c],&pe)) nomem(); | ^ qmail-send.c:1455: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] 1455 | while (!prioq_insert(&pqdone,&pe)) nomem(); | ^ qmail-send.c:1268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1268 | void todo_do(rfds) | ^ qmail-send.c:1470: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] 1470 | if (control_readint(&lifetime,"control/queuelifetime") == -1) return 0; | ^ qmail-send.c:1471: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] 1471 | if (control_readint(&concurrency[0],"control/concurrencylocal") == -1) return 0; | ^ qmail-send.c:1472: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] 1472 | if (control_readint(&concurrency[1],"control/concurrencyremote") == -1) return 0; | ^ qmail-send.c:1473: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] 1473 | if (control_rldef(&envnoathost,"control/envnoathost",1,"envnoathost") != 1) return 0; | ^ qmail-send.c:1474: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] 1474 | if (control_rldef(&bouncefrom,"control/bouncefrom",0,"MAILER-DAEMON") != 1) return 0; | ^ qmail-send.c:1475: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] 1475 | if (control_rldef(&bouncehost,"control/bouncehost",1,"bouncehost") != 1) return 0; | ^ qmail-send.c:1476: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] 1476 | if (control_rldef(&doublebouncehost,"control/doublebouncehost",1,"doublebouncehost") != 1) return 0; | ^ qmail-send.c:1477: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] 1477 | if (control_rldef(&doublebounceto,"control/doublebounceto",0,"postmaster") != 1) return 0; | ^ qmail-send.c:1478: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] 1478 | if (!stralloc_cats(&doublebounceto,"@")) return 0; | ^ qmail-send.c:1479: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] 1479 | if (!stralloc_cat(&doublebounceto,&doublebouncehost)) return 0; | ^ qmail-send.c:1480: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] 1480 | if (!stralloc_0(&doublebounceto)) return 0; | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ 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 | if (control_readfile(&locals,"control/locals",1) != 1) return 0; | ^ qmail-send.c:1482: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] 1482 | if (!constmap_init(&maplocals,locals.s,locals.len,0)) return 0; | ^ qmail-send.c:1483: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] 1483 | switch(control_readfile(&percenthack,"control/percenthack",0)) | ^ qmail-send.c:1486: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] 1486 | case 0: if (!constmap_init(&mappercenthack,"",0,0)) return 0; break; | ^ qmail-send.c:1487: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] 1487 | case 1: if (!constmap_init(&mappercenthack,percenthack.s,percenthack.len,0)) return 0; break; | ^ qmail-send.c:1489: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] 1489 | switch(control_readfile(&vdoms,"control/virtualdomains",0)) | ^ qmail-send.c:1492: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] 1492 | case 0: if (!constmap_init(&mapvdoms,"",0,1)) return 0; break; | ^ qmail-send.c:1493: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] 1493 | case 1: if (!constmap_init(&mapvdoms,vdoms.s,vdoms.len,1)) return 0; break; | ^ qmail-send.c:1504: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] 1504 | if (control_readfile(&newlocals,"control/locals",1) != 1) | ^ qmail-send.c:1505: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] 1505 | { log1("alert: unable to reread control/locals\n"); return; } | ^ qmail-send.c:1506: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] 1506 | r = control_readfile(&newvdoms,"control/virtualdomains",0); | ^ qmail-send.c:1508: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] 1508 | { log1("alert: unable to reread control/virtualdomains\n"); return; } | ^ qmail-send.c:1510: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] 1510 | constmap_free(&maplocals); | ^ qmail-send.c:1511: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] 1511 | constmap_free(&mapvdoms); | ^ qmail-send.c:1513: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] 1513 | while (!stralloc_copy(&locals,&newlocals)) nomem(); | ^ qmail-send.c:1514: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] 1514 | while (!constmap_init(&maplocals,locals.s,locals.len,0)) nomem(); | ^ qmail-send.c:1518: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] 1518 | while (!stralloc_copy(&vdoms,&newvdoms)) nomem(); | ^ qmail-send.c:1519: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] 1519 | while (!constmap_init(&mapvdoms,vdoms.s,vdoms.len,1)) nomem(); | ^ qmail-send.c:1522: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] 1522 | while (!constmap_init(&mapvdoms,"",0,1)) nomem(); | ^ qmail-send.c:1527:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1527 | if (chdir(auto_qmail) == -1) | ^ qmail-send.c:1529: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] 1529 | log1("alert: unable to reread controls: unable to switch to home directory\n"); | ^ qmail-send.c:1535: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] 1535 | log1("alert: unable to switch back to queue directory; HELP! sleeping...\n"); | ^ qmail-send.c:1536:4: warning: call to undeclared function 'sleep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1536 | sleep(10); | ^ qmail-send.c:1550:6: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1550 | if (chdir(auto_qmail) == -1) | ^ qmail-send.c:1551: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] 1551 | { log1("alert: cannot start: unable to switch to home directory\n"); _exit(111); } | ^ qmail-send.c:1553: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] 1553 | { log1("alert: cannot start: unable to read controls\n"); _exit(111); } | ^ qmail-send.c:1555: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] 1555 | { log1("alert: cannot start: unable to switch to queue directory\n"); _exit(111); } | ^ qmail-send.c:1557: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] 1557 | sig_termcatch(sigterm); | ^ qmail-send.c:1558: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] 1558 | sig_alarmcatch(sigalrm); | ^ qmail-send.c:1559: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] 1559 | sig_hangupcatch(sighup); | ^ qmail-send.c:1563: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] 1563 | fd = open_write("lock/sendmutex"); | ^ qmail-send.c:1565: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] 1565 | { log1("alert: cannot start: unable to open mutex\n"); _exit(111); } | ^ qmail-send.c:1566: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] 1566 | if (lock_exnb(fd) == -1) | ^ qmail-send.c:1567: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] 1567 | { log1("alert: cannot start: qmail-send is already running\n"); _exit(111); } | ^ qmail-send.c:1576: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] 1576 | r = read(chanfdin[c],&ch,1); | ^ qmail-send.c:1579: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] 1579 | { log1("alert: cannot start: hath the daemon spawn no fire?\n"); _exit(111); } | ^ qmail-send.c:1622: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] 1622 | log1("warning: trouble in select\n"); | ^ qmail-send.c:1635: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] 1635 | log1("status: exiting\n"); | ^ qmail-send.c:1636:2: warning: call to undeclared function 'disconnect_mysql'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1636 | disconnect_mysql(); | ^ 366 warnings generated. ./compile newfield.c 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 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 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 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 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 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. ./compile checkuser_mysql.c -I/usr/local/include checkuser_mysql.c:14: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] 14 | if (! stralloc_ready(&user, i)) return -1; | ^ checkuser_mysql.c:15: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] 15 | if (! stralloc_catb(&user, username, i)) { | ^ checkuser_mysql.c:16:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 16 | stralloc_free(&user); | ^ checkuser_mysql.c:20:9: warning: call to undeclared function 'make_query'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 20 | if (! make_query(&qmail_mysql_query, user.s)) { | ^ checkuser_mysql.c:21:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 21 | stralloc_free(&user); | ^ checkuser_mysql.c:25:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 25 | stralloc_free(&user); | ^ 6 warnings generated. ./compile vdoms_mysql.c -I/usr/local/include -DO_NOT_LOG_CONNECTS In file included from vdoms_mysql.c:6: ./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)' vdoms_mysql.c:45:40: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 45 | if (! stralloc_ready(&real_addr, 2 * str_len(addr) + 1)) return -1; | ^ vdoms_mysql.c:45: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] 45 | if (! stralloc_ready(&real_addr, 2 * str_len(addr) + 1)) return -1; | ^ vdoms_mysql.c:47: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] 47 | if (! stralloc_ready(&real_host, 2 * str_len(host) + 1)) { | ^ vdoms_mysql.c:48:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | stralloc_free(&real_addr); | ^ vdoms_mysql.c:59:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | if (! connect_mysql()) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:59:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:59:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:62: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] 62 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ vdoms_mysql.c:62:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:62:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:62:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:63: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] 63 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL1)) ACK | ^ vdoms_mysql.c:63:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL1)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:63:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:63:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:64: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] 64 | if (! stralloc_cats(&qmail_mysql_query, real_addr.s)) ACK | ^ vdoms_mysql.c:64:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | if (! stralloc_cats(&qmail_mysql_query, real_addr.s)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:64:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:64:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:65: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] 65 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL2)) ACK | ^ vdoms_mysql.c:65:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL2)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:65:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:65:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:66: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] 66 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) ACK | ^ vdoms_mysql.c:66:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:66:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:66:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:67: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] 67 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL3)) ACK | ^ vdoms_mysql.c:67:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL3)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:67:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:67:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:68: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] 68 | if (! stralloc_0(&qmail_mysql_query)) ACK | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ vdoms_mysql.c:68:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | if (! stralloc_0(&qmail_mysql_query)) ACK | ^ vdoms_mysql.c:54:16: note: expanded from macro 'ACK' 54 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:68:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:55:16: note: expanded from macro 'ACK' 55 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:68:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:56:16: note: expanded from macro 'ACK' 56 | stralloc_free(&qmail_mysql_query);\ | ^ vdoms_mysql.c:71:7: warning: passing arguments to 'log3' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | log3("query: ", qmail_mysql_query.s, ";\n"); | ^ vdoms_mysql.c:77:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | stralloc_free(&real_addr); | ^ vdoms_mysql.c:78:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | stralloc_free(&real_host); | ^ vdoms_mysql.c:84: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] 84 | log3("MySQL misconfiguration: username for host '", real_host.s, "' is blank in virtual table!\n"); | ^ vdoms_mysql.c:85:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | stralloc_free(&real_addr); | ^ vdoms_mysql.c:86:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | stralloc_free(&real_host); | ^ vdoms_mysql.c:112: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] 112 | if (! stralloc_cats(ret, row[0])) YOW /* username */ | ^ vdoms_mysql.c:112:37: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | if (! stralloc_cats(ret, row[0])) YOW /* username */ | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:112:37: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:114: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] 114 | if (! stralloc_append(ret, auto_break)) YOW | ^ vdoms_mysql.c:114:45: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | if (! stralloc_append(ret, auto_break)) YOW | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:114:45: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:115:46: 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] 115 | if (*row[1] != '@') { if (! stralloc_cats(ret, row[1])) YOW } | ^ vdoms_mysql.c:115:61: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | if (*row[1] != '@') { if (! stralloc_cats(ret, row[1])) YOW } | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:115:61: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:116: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] 116 | else if (! stralloc_cats(ret, real_addr.s)) YOW /* ext */ | ^ vdoms_mysql.c:116:49: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | else if (! stralloc_cats(ret, real_addr.s)) YOW /* ext */ | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:116:49: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:118: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] 118 | if (! stralloc_append(ret, "@")) YOW | ^ vdoms_mysql.c:118:36: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | if (! stralloc_append(ret, "@")) YOW | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:118:36: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.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(ret, real_host.s)) YOW | ^ vdoms_mysql.c:119:42: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | if (! stralloc_cats(ret, real_host.s)) YOW | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:119:42: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:120: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] 120 | if (! stralloc_0(ret)) YOW | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ vdoms_mysql.c:120:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | if (! stralloc_0(ret)) YOW | ^ vdoms_mysql.c:92:16: note: expanded from macro 'YOW' 92 | stralloc_free(&real_addr);\ | ^ vdoms_mysql.c:120:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] vdoms_mysql.c:93:16: note: expanded from macro 'YOW' 93 | stralloc_free(&real_host);\ | ^ vdoms_mysql.c:122:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | stralloc_free(&real_addr); | ^ vdoms_mysql.c:123:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | stralloc_free(&real_host); | ^ 65 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 connect_mysql.o checkuser_mysql.o getpw_mysql.o vdoms_mysql.o make_query.o do_query.o auto_break.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 `/usr/local/bin/mysql_config --libs` ./compile qmail-start.c 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 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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 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 qmail-smtpd.c:44: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] 44 | r = timeoutwrite(timeout,fd,buf,len); | ^ qmail-smtpd.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 safewrite(fd,buf,len) int fd; char *buf; int len; | ^ qmail-smtpd.c:52: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] 52 | void flush() { substdio_flush(&ssout); } | ^ qmail-smtpd.c:53: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] 53 | void out(s) char *s; { substdio_puts(&ssout,s); } | ^ qmail-smtpd.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 out(s) char *s; { substdio_puts(&ssout,s); } | ^ qmail-smtpd.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 err_unimpl(arg) char *arg; { out("502 unimplemented (#5.5.1)\r\n"); } | ^ qmail-smtpd.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 err_noop(arg) char *arg; { out("250 ok\r\n"); } | ^ qmail-smtpd.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 err_vrfy(arg) char *arg; { out("252 send some mail, i'll try my best\r\n"); } | ^ qmail-smtpd.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(&ssout,code); | ^ qmail-smtpd.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(&ssout,greeting.s,greeting.len); | ^ qmail-smtpd.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 smtp_greet(code) char *code; | ^ qmail-smtpd.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 smtp_help(arg) char *arg; | ^ 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 smtp_quit(arg) char *arg; | ^ qmail-smtpd.c:102: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] 102 | if (!stralloc_copys(&helohost,arg)) die_nomem(); | ^ qmail-smtpd.c:103: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] 103 | if (!stralloc_0(&helohost)) die_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:104: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] 104 | fakehelo = case_diffs(remotehost,helohost.s) ? helohost.s : 0; | ^ 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 dohelo(arg) char *arg; { | ^ qmail-smtpd.c:119: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] 119 | if (control_rldef(&greeting,"control/smtpgreeting",1,(char *) 0) != 1) | ^ qmail-smtpd.c:121: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] 121 | liphostok = control_rldef(&liphost,"control/localiphost",1,(char *) 0); | ^ qmail-smtpd.c:123: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] 123 | if (control_readint(&timeout,"control/timeoutsmtpd") == -1) die_control(); | ^ qmail-smtpd.c:128: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] 128 | bmfok = control_readfile(&bmf,"control/badmailfrom",0); | ^ qmail-smtpd.c:131: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] 131 | if (!constmap_init(&mapbmf,bmf.s,bmf.len,0)) die_nomem(); | ^ qmail-smtpd.c:133: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] 133 | if (control_readint(&databytes,"control/databytes") == -1) die_control(); | ^ qmail-smtpd.c:134: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] 134 | x = env_get("DATABYTES"); | ^ qmail-smtpd.c:135: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] 135 | if (x) { scan_ulong(x,&u); databytes = u; } | ^ qmail-smtpd.c:138: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] 138 | remoteip = env_get("TCPREMOTEIP"); | ^ qmail-smtpd.c:140: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] 140 | local = env_get("TCPLOCALHOST"); | ^ qmail-smtpd.c:141: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] 141 | if (!local) local = env_get("TCPLOCALIP"); | ^ qmail-smtpd.c:143: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] 143 | remotehost = env_get("TCPREMOTEHOST"); | ^ qmail-smtpd.c:145: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] 145 | remoteinfo = env_get("TCPREMOTEINFO"); | ^ qmail-smtpd.c:146: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] 146 | relayclient = env_get("RELAYCLIENT"); | ^ qmail-smtpd.c:164: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] 164 | i = str_chr(arg,'<'); | ^ qmail-smtpd.c:169: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] 169 | arg += str_chr(arg,':'); | ^ qmail-smtpd.c:177: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] 177 | if (!stralloc_copys(&addr,"")) die_nomem(); | ^ qmail-smtpd.c:180:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 180 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ~~~^~~~~~~~ qmail-smtpd.c:180:17: note: place parentheses around the assignment to silence this warning 180 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ^ | ( ) qmail-smtpd.c:180:17: note: use '==' to turn this assignment into an equality comparison 180 | for (i = 0;ch = arg[i];++i) { /* copy arg to addr, stripping quotes */ | ^ | == qmail-smtpd.c:182: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] 182 | if (!stralloc_append(&addr,&ch)) die_nomem(); | ^ qmail-smtpd.c:190: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] 190 | default: if (!stralloc_append(&addr,&ch)) die_nomem(); | ^ qmail-smtpd.c:195: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] 195 | if (!stralloc_append(&addr,"")) die_nomem(); | ^ qmail-smtpd.c:198: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] 198 | i = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-smtpd.c:201: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] 201 | if (!addr.s[i + 1 + ip_scanbracket(addr.s + i + 1,&ip)]) | ^ qmail-smtpd.c:202: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] 202 | if (ipme_is(&ip)) { | ^ qmail-smtpd.c:204: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] 204 | if (!stralloc_cat(&addr,&liphost)) die_nomem(); | ^ qmail-smtpd.c:205: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] 205 | if (!stralloc_0(&addr)) die_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:153:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | int addrparse(arg) | ^ qmail-smtpd.c:217: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] 217 | if (constmap(&mapbmf,addr.s,addr.len - 1)) return 1; | ^ qmail-smtpd.c:218: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] 218 | j = byte_rchr(addr.s,addr.len,'@'); | ^ qmail-smtpd.c:220: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] 220 | if (constmap(&mapbmf,addr.s + j,addr.len - j - 1)) return 1; | ^ qmail-smtpd.c:227: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] 227 | r = rcpthosts(addr.s,str_len(addr.s)); | ^ qmail-smtpd.c:227: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] 227 | r = rcpthosts(addr.s,str_len(addr.s)); | ^ qmail-smtpd.c:229: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] 229 | if (! r) r = rcpthosts_mysql(addr.s,str_len(addr.s)); | ^ qmail-smtpd.c:240:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 240 | void smtp_helo(arg) char *arg; | ^ qmail-smtpd.c:245:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 245 | void smtp_ehlo(arg) char *arg; | ^ qmail-smtpd.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 smtp_rset(arg) char *arg; | ^ qmail-smtpd.c:260: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] 260 | if (!stralloc_copys(&rcptto,"")) die_nomem(); | ^ qmail-smtpd.c:261: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] 261 | if (!stralloc_copys(&mailfrom,addr.s)) die_nomem(); | ^ qmail-smtpd.c:262: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] 262 | if (!stralloc_0(&mailfrom)) die_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.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 smtp_mail(arg) char *arg; | ^ qmail-smtpd.c:271: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] 271 | if (!stralloc_cats(&addr,relayclient)) die_nomem(); | ^ qmail-smtpd.c:272: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] 272 | if (!stralloc_0(&addr)) die_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.c:283: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] 283 | if (!stralloc_cats(&rcptto,"T")) die_nomem(); | ^ qmail-smtpd.c:284: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] 284 | if (!stralloc_cats(&rcptto,addr.s)) die_nomem(); | ^ qmail-smtpd.c:285: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] 285 | if (!stralloc_0(&rcptto)) die_nomem(); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ qmail-smtpd.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 smtp_rcpt(arg) char *arg; { | ^ qmail-smtpd.c:294: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] 294 | r = timeoutread(timeout,fd,buf,len); | ^ qmail-smtpd.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 saferead(fd,buf,len) int fd; char *buf; int len; | ^ qmail-smtpd.c:311: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] 311 | qmail_fail(&qqt); | ^ qmail-smtpd.c:312: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] 312 | qmail_put(&qqt,ch,1); | ^ qmail-smtpd.c:306:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 306 | void put(ch) | ^ qmail-smtpd.c:331: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] 331 | substdio_get(&ssin,&ch,1); | ^ qmail-smtpd.c:315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | void blast(hops) | ^ qmail-smtpd.c:382: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] 382 | accept_buf[fmt_ulong(accept_buf,(unsigned long) when)] = 0; | ^ qmail-smtpd.c:385: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] 385 | accept_buf[fmt_ulong(accept_buf,qp)] = 0; | ^ qmail-smtpd.c:377:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | void acceptmessage(qp) unsigned long qp; | ^ qmail-smtpd.c:399: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] 399 | if (qmail_open(&qqt) == -1) { err_qqt(); return; } | ^ qmail-smtpd.c:400: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] 400 | qp = qmail_qp(&qqt); | ^ qmail-smtpd.c:403: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] 403 | received(&qqt,"SMTP",local,remoteip,remotehost,remoteinfo,fakehelo); | ^ qmail-smtpd.c:406: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] 406 | if (hops) qmail_fail(&qqt); | ^ qmail-smtpd.c:407: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] 407 | qmail_from(&qqt,mailfrom.s); | ^ qmail-smtpd.c:408: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] 408 | qmail_put(&qqt,rcptto.s,rcptto.len); | ^ qmail-smtpd.c:410: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] 410 | qqx = qmail_close(&qqt); | ^ qmail-smtpd.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 smtp_data(arg) char *arg; { | ^ qmail-smtpd.c:437:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 437 | if (chdir(auto_qmail) == -1) die_control(); | ^ qmail-smtpd.c:442: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] 442 | if (commands(&ssin,&smtpcommands) == 0) die_read(); | ^ 83 warnings generated. ./compile rcpthosts_mysql.c -I/usr/local/include -DO_NOT_LOG_CONNECTS rcpthosts_mysql.c:41:41: warning: call to undeclared function 'str_len'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | if (! stralloc_ready(&real_addr, 2 * (str_len(addr) - at) + 1)) return -1; | ^ rcpthosts_mysql.c:41: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] 41 | if (! stralloc_ready(&real_addr, 2 * (str_len(addr) - at) + 1)) return -1; | ^ rcpthosts_mysql.c:43: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] 43 | if (! stralloc_ready(&real_host, 2 * str_len(host) + 1)) return -1; | ^ rcpthosts_mysql.c:57:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 57 | if (! connect_mysql()) ACK | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:57:26: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:60: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] 60 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ rcpthosts_mysql.c:60:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:60:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:61: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] 61 | if (! stralloc_cats(&qmail_mysql_query, RCPTHOSTS)) OOF | ^ rcpthosts_mysql.c:61:55: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | if (! stralloc_cats(&qmail_mysql_query, RCPTHOSTS)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:61:55: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:61:55: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:62: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] 62 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) OOF | ^ rcpthosts_mysql.c:62:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 62 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:62:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:62:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:63: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] 63 | if (! stralloc_cats(&qmail_mysql_query, "'")) OOF | ^ rcpthosts_mysql.c:63:49: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | if (! stralloc_cats(&qmail_mysql_query, "'")) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:63:49: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:63:49: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:64: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] 64 | if (! stralloc_0(&qmail_mysql_query)) OOF | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ rcpthosts_mysql.c:64:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | if (! stralloc_0(&qmail_mysql_query)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:64:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:64:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:70:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | stralloc_free(&real_host); | ^ rcpthosts_mysql.c:71:18: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | stralloc_free(&real_addr); | ^ rcpthosts_mysql.c:76: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] 76 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ rcpthosts_mysql.c:76:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | if (! stralloc_ready(&qmail_mysql_query, len)) ACK | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:76:50: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:77: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] 77 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL1)) OOF | ^ rcpthosts_mysql.c:77:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL1)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:77:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:77:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:78: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] 78 | if (! stralloc_cats(&qmail_mysql_query, real_addr.s)) OOF | ^ rcpthosts_mysql.c:78:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (! stralloc_cats(&qmail_mysql_query, real_addr.s)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:78:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:78:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:79: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] 79 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL2)) OOF | ^ rcpthosts_mysql.c:79:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL2)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:79:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:79:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:80: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] 80 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) OOF | ^ rcpthosts_mysql.c:80:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | if (! stralloc_cats(&qmail_mysql_query, real_host.s)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:80:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:80:57: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:81: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] 81 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL3)) OOF | ^ rcpthosts_mysql.c:81:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | if (! stralloc_cats(&qmail_mysql_query, VIRTUAL3)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:81:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:81:54: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:82: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] 82 | if (! stralloc_0(&qmail_mysql_query)) OOF | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ rcpthosts_mysql.c:82:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | if (! stralloc_0(&qmail_mysql_query)) OOF | ^ rcpthosts_mysql.c:53:16: note: expanded from macro 'OOF' 53 | stralloc_free(&qmail_mysql_query);\ | ^ rcpthosts_mysql.c:82:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:47:16: note: expanded from macro 'ACK' 47 | stralloc_free(&real_host);\ | ^ rcpthosts_mysql.c:82:41: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] rcpthosts_mysql.c:54:3: note: expanded from macro 'OOF' 54 | ACK\ | ^ rcpthosts_mysql.c:48:16: note: expanded from macro 'ACK' 48 | stralloc_free(&real_addr);\ | ^ rcpthosts_mysql.c:83:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | stralloc_free(&real_host); | ^ rcpthosts_mysql.c:84:16: warning: passing arguments to 'stralloc_free' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | stralloc_free(&real_addr); | ^ 55 warnings generated. ./load qmail-smtpd rcpthosts.o commands.o timeoutread.o timeoutwrite.o ip.o ipme.o ipalloc.o control.o constmap.o qsutil.o received.o date822fmt.o now.o qmail.o connect_mysql.o rcpthosts_mysql.o do_query.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` `/usr/local/bin/mysql_config --libs` ./compile sendmail.c 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 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:704:74: note: passing argument to parameter here 704 | 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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:703:74: note: passing argument to parameter here 703 | 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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 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 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 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 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 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 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 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 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:20:39: note: expanded from macro 'stralloc_0' 20 | #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 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 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 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 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 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 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 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 addrexp.c addrexp.c:30: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] 30 | substdio_putsflush(subfdout, "addrexp: expand a virtual address\n"); | ^ addrexp.c:31: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] 31 | substdio_putsflush(subfdout, "usage: addrexp virtual_username@virtual_host\n"); | ^ addrexp.c:32: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] 32 | substdio_putsflush(subfdout, "returns: final delivery address for virtual_username@virtual_host\n"); | ^ addrexp.c:33: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] 33 | substdio_putsflush(subfdout, "exit codes: 0 if the address is local\n"); | ^ addrexp.c:34: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] 34 | substdio_putsflush(subfdout, " 1 if the address is a virtual domain\n"); | ^ addrexp.c:35: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] 35 | substdio_putsflush(subfdout, " 2 if the address is remote\n"); | ^ addrexp.c:36: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] 36 | substdio_putsflush(subfdout, " 100 if there was an error reading controls\n"); | ^ addrexp.c:37: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] 37 | substdio_putsflush(subfdout, " 111 if there was a database error\n"); | ^ addrexp.c:38:5: warning: call to undeclared library function '_exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 38 | _exit(1); | ^ addrexp.c:38:5: note: include the header or explicitly provide a declaration for '_exit' addrexp.c:41:7: warning: call to undeclared function 'chdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 41 | if (chdir(auto_qmail) == -1) _exit(100); | ^ addrexp.c:43: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] 43 | if (control_rldef(&envnoathost, "control/envnoathost", 1, "envnoathost") == -1) _exit(100); | ^ addrexp.c:44: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] 44 | if (control_readfile(&locals,"control/locals",1) != 1) _exit(100); | ^ addrexp.c:45: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] 45 | if (!constmap_init(&maplocals,locals.s,locals.len,0)) _exit(100); | ^ addrexp.c:46: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] 46 | switch(control_readfile(&percenthack,"control/percenthack",0)) { | ^ addrexp.c:48:31: 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] 48 | case 0: if (!constmap_init(&mappercenthack,"",0,0)) return 0; break; | ^ addrexp.c:49:31: 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] 49 | case 1: if (!constmap_init(&mappercenthack,percenthack.s,percenthack.len,0)) return 0; break; | ^ addrexp.c:51: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] 51 | if (! stralloc_ready(&addr, str_len(argv[1]) + 1)) _exit(100); | ^ addrexp.c:51: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] 51 | if (! stralloc_ready(&addr, str_len(argv[1]) + 1)) _exit(100); | ^ addrexp.c:52: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] 52 | if (! stralloc_cats(&addr, argv[1])) _exit(100); | ^ addrexp.c:55:7: warning: call to undeclared function 'byte_rchr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 55 | i = byte_rchr(addr.s, addr.len, '@'); | ^ addrexp.c:57: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] 57 | if (! stralloc_readyplus(&addr, envnoathost.len + 1)) _exit(100); | ^ addrexp.c:58: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] 58 | if (! stralloc_append(&addr, "@")) _exit(100); | ^ addrexp.c:59: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] 59 | if (! stralloc_cat(&addr, &envnoathost)) _exit(100); | ^ addrexp.c:62: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] 62 | while (constmap(&mappercenthack,addr.s + i + 1,addr.len - i - 1)) { | ^ addrexp.c:75: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] 75 | if (constmap(&maplocals,addr.s + at + 1,addr.len - at - 1)) { | ^ addrexp.c:78:24: warning: passing arguments to 'checkuser_mysql' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | i = checkuser_mysql(addr.s, at); | ^ addrexp.c:82:24: 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] 82 | if (!stralloc_cat(&ret,&addr)) _exit(100); | ^ addrexp.c:83: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] 83 | if (!stralloc_0(&ret)) _exit(100); | ^ ./stralloc.h:20:39: note: expanded from macro 'stralloc_0' 20 | #define stralloc_0(sa) stralloc_append(sa,"") | ^ addrexp.c:89:22: warning: passing arguments to 'vdoms_mysql' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | i = vdoms_mysql(addr.s, addr.len, &ret); | ^ addrexp.c:95:27: 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] 95 | if (! stralloc_cat(&addr, &envnoathost)) _exit(100); | ^ addrexp.c:100:31: warning: passing arguments to 'vdoms_mysql' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | if (! i) if (i = vdoms_mysql(addr.s, addr.len, &ret)) local = 1; | ^ addrexp.c:100:18: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 100 | if (! i) if (i = vdoms_mysql(addr.s, addr.len, &ret)) local = 1; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ addrexp.c:100:18: note: place parentheses around the assignment to silence this warning 100 | if (! i) if (i = vdoms_mysql(addr.s, addr.len, &ret)) local = 1; | ^ | ( ) addrexp.c:100:18: note: use '==' to turn this assignment into an equality comparison 100 | if (! i) if (i = vdoms_mysql(addr.s, addr.len, &ret)) local = 1; | ^ | == addrexp.c:104:23: 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] 104 | if (i) substdio_puts(subfdout, ret.s); | ^ addrexp.c:105: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] 105 | else substdio_puts(subfdout, argv[1]); | ^ addrexp.c:106: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] 106 | substdio_putsflush(subfdout, "\n"); | ^ 35 warnings generated. ./load addrexp constmap.o control.o scan_ulong.o connect_mysql.o qsutil.o make_query.o do_query.o checkuser_mysql.o getpw_mysql.o vdoms_mysql.o auto_break.o auto_qmail.o fmt_ulong.o fmt_uint.o fmt_uint0.o open_read.o getln.a substdio.a stralloc.a str.a error.a alloc.a case.a `/usr/local/bin/mysql_config --libs` ./compile maildir2mbox.c 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 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 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 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 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 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 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 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 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 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 ./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 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=root UID=0 GID=0 ===> Staging for netqmail-mysql-1.06.1.1.15_3 ===> Generating temporary packing list ===> Creating groups ===> Creating users install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/dnsfq /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/hostname /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/dnsip /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/ipmeprint /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/dnsptr /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -s -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/install.nostage /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure/install install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/config /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/config-fast /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/configure install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/home /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/home+df /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/proc /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/proc+df /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm1+df /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm2 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm2+df /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm3 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/binm3+df /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/maildir /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/qmailsmtpd /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/qmailsend /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/boot install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/forward.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/condredirect.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/bouncesaying.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/except.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/maildirmake.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/maildir2mbox.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/maildirwatch.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/mailsubj.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qreceipt.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qbiff.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/preline.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/tcp-env.1 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man1 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/addresses.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/envelopes.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/maildir.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/mbox.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/dot-qmail.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-control.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-header.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-log.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-users.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/tcp-environ.5 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man5 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/forgeries.7 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-limits.7 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail.7 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man7 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-local.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-lspawn.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-getpw.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-remote.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-rspawn.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-clean.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-send.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-start.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/splogger.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-queue.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-inject.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-showctl.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-newmrh.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-newu.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-pw2u.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-qread.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-qstat.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-tcpok.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-tcpto.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-pop3d.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-popup.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-qmqpc.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-qmqpd.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-qmtpd.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-smtpd.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 444 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/qmail-command.8 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/share/man/man8 install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/BLURB /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/BLURB2 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/BLURB3 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/BLURB4 /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INTERNALS /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/SECURITY /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/THOUGHTS /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/FAQ /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/UPGRADE /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/SENDMAIL /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.alias /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.ctl /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.ids /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.maildir /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.mbox /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/INSTALL.vsm /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/TEST.deliver /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/TEST.receive /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/REMOVE.sendmail /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/REMOVE.binmail /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.local2alias /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.local2ext /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.local2local /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.local2rem /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.local2virt /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.nullclient /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.relaybad /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.relaygood /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/netqmail-1.06/PIC.rem2local /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/mailer.conf.sample /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/doc install -m 555 /usr/ports/mail/qmail-mysql/../qmail/files/mkaliasdir /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/scripts install -m 555 /wrkdirs/usr/ports/mail/qmail-mysql/work/enable-qmail /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/var/qmail/scripts ============================================= ATTENTION Add the following line to your /etc/make.conf QMAIL_SLAVEPORT=mysql ============================================= install -m 0644 /wrkdirs/usr/ports/mail/qmail-mysql/work/qmail.conf /wrkdirs/usr/ports/mail/qmail-mysql/work/stage/usr/local/etc/man.d/qmail.conf ===> Fixing plist for /var/qmail ownership /bin/rm -f -r /wrkdirs/usr/ports/mail/qmail-mysql/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-05T20:13:11+0000' 'PKG_NOTE_ports_top_git_hash=5529c5919b' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=1a35b19e6d' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for netqmail-mysql-1.06.1.1.15_3 ===> Building netqmail-mysql-1.06.1.1.15_3 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-mysql-1.06.1.1.15_3 build of mail/qmail-mysql | netqmail-mysql-1.06.1.1.15_3 ended at Mon May 5 21:14:06 BST 2025 build time: 00:00:56