=>> Building net/rdist6 build started at Mon May 5 23:19:49 EDT 2025 port directory: /usr/ports/net/rdist6 package name: rdist-6.1.5_10 building for: FreeBSD 13amd64-weekly-desktop-job-03 13.4-RELEASE-p4 FreeBSD 13.4-RELEASE-p4 amd64 maintained by: cy@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 985 Aug 3 2024 /usr/ports/net/rdist6/Makefile Ports top last git commit: 57a50b106b87 Ports top unclean checkout: yes Port dir last git commit: b4dedc91e8a0 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1402000 Jail OSVERSION: 1304000 Job Id: 03 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1304000 UNAME_v=FreeBSD 13.4-RELEASE-p4 UNAME_r=13.4-RELEASE-p4 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/mnt/data/.m/13amd64-weekly-desktop/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=screen GID=0 OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 UID=0 PWD=/mnt/data/.m/13amd64-weekly-desktop/03/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=13amd64-weekly-desktop SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/mnt/data/.m/13amd64-weekly-desktop/ref/.p/pool POUDRIERE_PKGNAME=poudriere-git-3.4.2 SCRIPTPATH=/usr/local/share/poudriere/bulk.sh POUDRIEREPATH=/usr/local/bin/poudriere ---End Environment--- ---Begin Poudriere Port Flags/Env--- PORT_FLAGS= PKGENV= FLAVOR= MAKE_ARGS= ---End Poudriere Port Flags/Env--- ---Begin OPTIONS List--- ---End OPTIONS List--- --MAINTAINER-- cy@FreeBSD.org --End MAINTAINER-- --CONFIGURE_ARGS-- --End CONFIGURE_ARGS-- --CONFIGURE_ENV-- XDG_DATA_HOME=/wrkdirs/usr/ports/net/rdist6/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/rdist6/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/rdist6/work/.cache HOME=/wrkdirs/usr/ports/net/rdist6/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/rdist6/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/rdist6/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-- BUILD_OPT="-O2 -pipe -fstack-protector-strong -fno-strict-aliasing " BUILD_CLIENT=rdist STAGEDIR=/wrkdirs/usr/ports/net/rdist6/work/stage XDG_DATA_HOME=/wrkdirs/usr/ports/net/rdist6/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/rdist6/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/rdist6/work/.cache HOME=/wrkdirs/usr/ports/net/rdist6/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/rdist6/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/rdist6/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=/usr/local 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-- RDIST_NAME=rdist OSREL=13.4 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/rdist" EXAMPLESDIR="share/examples/rdist" DATADIR="share/rdist" WWWDIR="www/rdist" ETCDIR="etc/rdist" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/rdist DOCSDIR=/usr/local/share/doc/rdist EXAMPLESDIR=/usr/local/share/examples/rdist WWWDIR=/usr/local/www/rdist ETCDIR=/usr/local/etc/rdist --End SUB_LIST-- ---Begin make.conf--- USE_PACKAGE_DEPENDS=yes BATCH=yes WRKDIRPREFIX=/wrkdirs PORTSDIR=/usr/ports PACKAGES=/packages DISTDIR=/distfiles FORCE_PACKAGE=yes PACKAGE_BUILDING=yes PACKAGE_BUILDING_FLAVORS=yes #### #### # Work around some weirdness when fetching golang modules GO_TAGS+=netcgo .if ${.CURDIR:M*/www/chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/www/ungoogled-chromium*} MAKE_JOBS_NUMBER=24 .endif .if ${.CURDIR:M*/lang/rust*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/lang/gcc*} MAKE_JOBS_NUMBER=10 .endif .if ${.CURDIR:M*/www/iridium*} MAKE_JOBS_NUMBER=16 .endif .if ${.CURDIR:M*/devel/electron*} MAKE_JOBS_NUMBER=20 .endif .if ${.CURDIR:M*/databases/mongodb*} MAKE_JOBS_NUMBER=12 .endif .if ${.CURDIR:M*/devel/llvm*} MAKE_JOBS_NUMBER=16 .endif # Speed things up a bit MAKE_JOBS_NUMBER?=8 #### #### #MAKE_JOBS_NUMBER?=4 # Alows us to build ports non-interactivly DISABLE_LICENSES=yes LICENSES_ACCEPTED+= DCC # Enable SNDIO on anything that supports it #OPTIONS_SET+=PULSEAUDIO OPTIONS_SET+=SNDIO # Yes we have MS Windows x11-fonts_webfonts_SET+=EXTRAFONTS CLEARTYPE # Desktop Specific Options sysutils_gksu_UNSET+=NAUTILUS x11-wm_compiz-fusion_UNSET+=EMERALD accessibility_redshift_SET+=GUI VIDMODE # These ports default to other audio servers, audio_espeak_UNSET+=PORTAUDIO www_qt5-webengine_UNSET+=ALSA www_qt6-webengine_UNSET+=ALSA audio_rhvoice_UNSET+=AO comms_morse_UNSET+=OSS audio_harp_UNSET+=OSS # Somehow these options are being set and result in ports being rebuilt needlessly becuase they are actually turned off audio_alsa-plugins_SET+=FFMPEG JACK PULSEAUDIO SAMPLERATE SPEEX #### Misc Poudriere #### .include "/etc/make.conf.ports_env" ---End make.conf--- --Resource limits-- cpu time (seconds, -t) unlimited file size (512-blocks, -f) unlimited data seg size (kbytes, -d) 33554432 stack size (kbytes, -s) 524288 core file size (512-blocks, -c) unlimited max memory size (kbytes, -m) unlimited locked memory (kbytes, -l) unlimited max user processes (-u) 89999 open files (-n) 8192 virtual mem size (kbytes, -v) unlimited swap limit (kbytes, -w) unlimited socket buffer size (bytes, -b) unlimited pseudo-terminals (-p) unlimited kqueues (-k) unlimited umtx shared locks (-o) unlimited --End resource limits-- =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> rdist-6.1.5_10 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.0.6.pkg [13amd64-weekly-desktop-job-03] Installing pkg-2.0.6... [13amd64-weekly-desktop-job-03] Extracting pkg-2.0.6: .......... done ===> rdist-6.1.5_10 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of rdist-6.1.5_10 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rdist-6.1.5_10 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by rdist-6.1.5_10 for building => SHA256 Checksum OK for rdist-6.1.5.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Fetching all distfiles required by rdist-6.1.5_10 for building ===> Extracting for rdist-6.1.5_10 => SHA256 Checksum OK for rdist-6.1.5.tar.gz. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Patching for rdist-6.1.5_10 ===> Applying FreeBSD patches for rdist-6.1.5_10 from /usr/ports/net/rdist6/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Configuring for rdist-6.1.5_10 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Building for rdist-6.1.5_10 Making "all" in "src" yacc -d gram.y mv y.tab.c gram.c cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c gram.c -o gram.o In file included from gram.y:62: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ gram.y:327:12: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | if (any(c, quotechars)) | ^ gram.y:337:22: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | if (c == EOF || any(c, " \"'\t()=;:\n")) { | ^ gram.y:355:21: warning: passing arguments to 'parsedistopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 355 | if (parsedistopts(&yytext[2], &opt, TRUE)) { | ^ gram.y:404:28: warning: passing arguments to 'makesubcmd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | yylval.subcmd = makesubcmd(c); | ^ gram.y:329:10: warning: implicit conversion from 'int' to 'char' changes value from 160 to -96 [-Wconstant-conversion] 328 | yytext = xappend(yytext, &yytextlen, | ~~~~~~~ 329 | QUOTECHAR); | ^~~~~~~~~ ../include/defs.h:105:19: note: expanded from macro 'QUOTECHAR' 105 | #define QUOTECHAR 160 /* quote next character */ | ^~~ gram.y:412:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | extern int any(c, str) | ^ In file included from gram.y:62: ../include/defs.h:345: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] 345 | extern int any(); | ^ gram.y:436:35: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 436 | files, hosts, subcmds, getnlstr(files)); | ^ gram.y:438:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 438 | files = expand(files, E_VARS|E_SHELL); | ^ gram.y:439:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 439 | hosts = expand(hosts, E_ALL); | ^ gram.y:458:8: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | nc = ALLOC(cmd); | ^ ../include/defs.h:141:39: note: expanded from macro 'ALLOC' 141 | #define ALLOC(x) (struct x *) xmalloc(sizeof(struct x)) | ^ gram.y:426:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 426 | insert(label, files, hosts, subcmds) | ^ gram.y:489:6: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 489 | c = ALLOC(cmd); | ^ ../include/defs.h:141:39: note: expanded from macro 'ALLOC' 141 | #define ALLOC(x) (struct x *) xmalloc(sizeof(struct x)) | ^ gram.y:493:21: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 493 | c->c_files = expand(files, E_ALL); | ^ gram.y:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 481 | append(label, files, stamp, subcmds) | ^ gram.y:508:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 508 | yyerror(s) | ^ gram.y:546:7: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | nl = ALLOC(namelist); | ^ ../include/defs.h:141:39: note: expanded from macro 'ALLOC' 141 | #define ALLOC(x) (struct x *) xmalloc(sizeof(struct x)) | ^ gram.y:539:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 539 | makenl(name) | ^ In file included from gram.y:62: ../include/defs.h:371:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 371 | struct namelist *makenl(); | ^ gram.y:558:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 558 | innl(nl, p) | ^ gram.y:577:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | n1 = expand(n1, E_VARS); | ^ gram.y:578:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 578 | n2 = expand(n2, E_VARS); | ^ gram.y:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 572 | addnl(n1, n2) | ^ gram.y:71:25: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:601:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 601 | n1 = expand(n1, E_VARS); | ^ gram.y:602:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 602 | n2 = expand(n2, E_VARS); | ^ gram.y:596:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 596 | subnl(n1, n2) | ^ gram.y:71:35: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:621:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | n1 = expand(n1, E_VARS); | ^ gram.y:622:13: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 622 | n2 = expand(n2, E_VARS); | ^ gram.y:616:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 616 | andnl(n1, n2) | ^ gram.y:71:45: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 71 | static struct namelist *addnl(), *subnl(), *andnl(); | ^ gram.y:641:7: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 641 | sc = ALLOC(subcmd); | ^ ../include/defs.h:141:39: note: expanded from macro 'ALLOC' 141 | #define ALLOC(x) (struct x *) xmalloc(sizeof(struct x)) | ^ gram.y:636:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 636 | makesubcmd(type) | ^ In file included from gram.y:62: ../include/defs.h:353:31: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 353 | extern struct subcmd *makesubcmd(); | ^ gram.y:112:17: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | (void) lookup(yystack.l_mark[-2].string, INSERT, yystack.l_mark[0].namel); | ^ gram.y:184:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | nl = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:197:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 197 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:202:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_ALL); | ^ gram.y:207: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 previous declaration [-Wdeprecated-non-prototype] 207 | char *cp, *re_comp(); | ^ /usr/include/unistd.h:552:7: note: conflicting prototype is here 552 | char *re_comp(const char *); | ^ gram.y:212:47: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | yystack.l_mark[-2].subcmd->sc_args = expand(yystack.l_mark[-1].namel, E_VARS); | ^ gram.y:217:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | yystack.l_mark[-3].subcmd->sc_args = expand(yystack.l_mark[-2].namel, E_ALL); | ^ gram.y:223:48: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | yystack.l_mark[-3].subcmd->sc_args = expand(yystack.l_mark[-2].namel, E_ALL); | ^ 47 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c rdist.c -o rdist.o In file included from rdist.c:54: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ rdist.c:90:35: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | new = (struct namelist *) xmalloc(sizeof(struct namelist)); | ^ rdist.c:81:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | static void addhostlist(name, hostlist) | ^ rdist.c:102:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 102 | main(argc, argv, envp) | ^ | int rdist.c:120:23: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ rdist.c:120:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 120 | if (cp = msgparseopts(localmsglist, TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:120:9: note: place parentheses around the assignment to silence this warning 120 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ | ( ) rdist.c:120:9: note: use '==' to turn this assignment into an equality comparison 120 | if (cp = msgparseopts(localmsglist, TRUE)) { | ^ | == rdist.c:123:3: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 123 | usage(); | ^ rdist.c:126:10: warning: passing arguments to 'init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | if (init(argc, argv, envp) < 0) | ^ rdist.c:139:41: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | (void) execl(_PATH_OLDRDIST, xbasename(_PATH_OLDRDIST), | ^ rdist.c:163:22: warning: passing arguments to 'searchpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | if (cp = searchpath(path_remsh_env)) | ^ rdist.c:163:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 163 | if (cp = searchpath(path_remsh_env)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:163:10: note: place parentheses around the assignment to silence this warning 163 | if (cp = searchpath(path_remsh_env)) | ^ | ( ) rdist.c:163:10: note: use '==' to turn this assignment into an equality comparison 163 | if (cp = searchpath(path_remsh_env)) | ^ | == rdist.c:175:25: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | if (cp = msgparseopts(optarg, TRUE)) { | ^ rdist.c:175:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 175 | if (cp = msgparseopts(optarg, TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:175:11: note: place parentheses around the assignment to silence this warning 175 | if (cp = msgparseopts(optarg, TRUE)) { | ^ | ( ) rdist.c:175:11: note: use '==' to turn this assignment into an equality comparison 175 | if (cp = msgparseopts(optarg, TRUE)) { | ^ | == rdist.c:177:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 177 | usage(); | ^ rdist.c:191:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 191 | usage(); | ^ rdist.c:228:4: warning: call to undeclared function 'define'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 228 | define(optarg); | ^ rdist.c:233:25: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ rdist.c:233:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 233 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdist.c:233:11: note: place parentheses around the assignment to silence this warning 233 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ | ( ) rdist.c:233:11: note: use '==' to turn this assignment into an equality comparison 233 | if (cp = msgparseopts("stdout=all,debug", TRUE)) { | ^ | == rdist.c:235:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 235 | usage(); | ^ rdist.c:252:21: warning: passing arguments to 'parsedistopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | if (parsedistopts(optarg, &options, TRUE)) { | ^ rdist.c:255:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 255 | usage(); | ^ rdist.c:262:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 262 | usage(); | ^ rdist.c:270:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 270 | usage(); | ^ rdist.c:272:23: warning: passing arguments to 'searchpath' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | if (cp = searchpath(optarg)) | ^ rdist.c:272:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 272 | if (cp = searchpath(optarg)) | ~~~^~~~~~~~~~~~~~~~~~~~ rdist.c:272:11: note: place parentheses around the assignment to silence this warning 272 | if (cp = searchpath(optarg)) | ^ | ( ) rdist.c:272:11: note: use '==' to turn this assignment into an equality comparison 272 | if (cp = searchpath(optarg)) | ^ | == rdist.c:277:5: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | usage(); | ^ rdist.c:301:4: warning: call to undeclared function 'usage'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 301 | usage(); | ^ rdist.c:306:3: warning: call to undeclared function 'msgprconfig'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 306 | msgprconfig(); | ^ rdist.c:320:3: warning: call to undeclared function 'docmdargs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 320 | docmdargs(realargc - optind, &realargv[optind]); | ^ rdist.c:323:18: warning: passing arguments to 'opendist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | fin = opendist(distfile); | ^ rdist.c:324:10: warning: call to undeclared function 'yyparse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 324 | (void) yyparse(); | ^ rdist.c:331:10: warning: passing arguments to 'docmds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | docmds(hostlist, realargc-optind, &realargv[optind]); | ^ rdist.c:102:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 102 | main(argc, argv, envp) | ^ rdist.c:340:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 340 | FILE *opendist(distfile) | ^ rdist.c:72: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] 72 | FILE *opendist(); | ^ rdist.c:375:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 375 | usage() | ^ | int rdist.c:406:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 406 | docmdargs(nargs, args) | ^ | int rdist.c:424:14: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | nl = makenl(args[i]); | ^ rdist.c:437:16: warning: passing arguments to 'expand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 437 | hosts = expand(&tnl, E_ALL); | ^ rdist.c:444:20: warning: passing arguments to 'makesubcmd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | cmds = makesubcmd(INSTALL); | ^ rdist.c:449:55: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | debugmsg(DM_MISC, "docmdargs()\nfiles = %s", getnlstr(files)); | ^ rdist.c:450:41: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | debugmsg(DM_MISC, "host = %s", getnlstr(hosts)); | ^ rdist.c:452:2: warning: call to undeclared function 'insert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 452 | insert((char *)NULL, files, hosts, cmds); | ^ rdist.c:453:8: warning: passing arguments to 'docmds' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 453 | docmds(0, (char **)NULL, 0, (char **)NULL); | ^ rdist.c:406:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | docmdargs(nargs, args) | ^ rdist.c:454:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 454 | } | ^ rdist.c:459:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 459 | extern char *getnlstr(nl) | ^ In file included from rdist.c:54: ../include/defs.h:338: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] 338 | extern char *getnlstr(); | ^ 51 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c client.c -o client.o In file included from client.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ client.c:82:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 82 | char *remfilename(src, dest, path, rname, destdir) | ^ client.c:145:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | int inlist(list, file) | ^ client.c:180:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 180 | (void) sendcmd(C_SPECIAL, | ^ client.c:184:25: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | E_BASEFILE, xbasename(rfile), | ^ client.c:187:10: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 187 | while (response() > 0) | ^ client.c:160:13: 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 void runspecial(starget, opts, rname, destdir) | ^ client.c:218:36: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | new = (struct namelist *) xmalloc(sizeof(struct namelist)); | ^ client.c:196:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | static void addcmdspecialfile(starget, rname, destdir) | ^ client.c:267:12: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 267 | (void) sendcmd(C_CMDSPECIAL, NULL); | ^ client.c:268:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 268 | if (response() < 0) | ^ client.c:272:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 272 | (void) sendcmd(RC_FILE, f->n_name); | ^ client.c:273:8: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 273 | if (response() < 0) | ^ client.c:277:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 277 | (void) sendcmd(C_CMDSPECIAL, NULL); | ^ client.c:278:8: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 278 | if (response() < 0) | ^ client.c:283:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 283 | (void) sendcmd(RC_COMMAND, sc->sc_name); | ^ client.c:284:10: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 284 | while (response() > 0) | ^ client.c:247:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | extern void runcmdspecial(cmd, filev, opts) | ^ In file included from client.c:57: ../include/defs.h:364: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] 364 | extern void runcmdspecial(); | ^ client.c:294:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 294 | int checkfilename(name) | ^ client.c:326:33: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | lp = (struct linkbuf *) xmalloc(sizeof(*lp)); | ^ client.c:315:24: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | static struct linkbuf *linkinfo(statp) | ^ client.c:359:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 359 | (void) sendcmd(C_RECVHARDLINK, "%o %d %s %s", | ^ client.c:371:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 371 | return(response()); | ^ client.c:345:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | static int sendhardlink(opts, lp, rname, destdir) | ^ client.c:402:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 402 | (void) sendcmd(C_RECVREG, "%o %04o %lld %ld %ld %s %s %s", | ^ client.c:407:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 407 | if (response() < 0) { | ^ client.c:442:13: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 442 | if (xwrite(rem_w, buf, amt) < 0) { | ^ client.c:377:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | static int sendfile(rname, opts, stb, user, group, destdir) | ^ client.c:499:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 499 | (void) sendcmd(C_CLEAN, "%o", IS_ON(opts, DO_VERIFY)); | ^ client.c:500:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 500 | if (response() < 0) | ^ client.c:504:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | n = remline(s = respbuff, sizeof(respbuff), TRUE); | ^ client.c:520:8: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 520 | if (except(target)) | ^ client.c:486:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 486 | static int rmchk(opts) | ^ client.c:595:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 595 | (void) sendcmd(C_RECVDIR, "%o %04o 0 0 0 %s %s %s", | ^ client.c:597:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 597 | if (response() < 0) | ^ client.c:606:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 606 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ client.c:606:12: note: place parentheses around the assignment to silence this warning 606 | while (dp = readdir(d)) { | ^ | ( ) client.c:606:12: note: use '==' to turn this assignment into an equality comparison 606 | while (dp = readdir(d)) { | ^ | == client.c:619:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 619 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ client.c:619:21: note: place parentheses around the assignment to silence this warning 619 | while (*ptarget++ = *cp++) | ^ | ( ) client.c:619:21: note: use '==' to turn this assignment into an equality comparison 619 | while (*ptarget++ = *cp++) | ^ | == client.c:622:13: warning: passing arguments to 'sendit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 622 | if (sendit(dp->d_name, opts, destdir) > 0) | ^ client.c:568:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 568 | static int senddir(rname, opts, stb, user, group, destdir) | ^ client.c:664:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 664 | (void) sendcmd(C_RECVSYMLINK, "%o %04o %lld %ld %ld %s %s %s", | ^ client.c:669:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 669 | if (response() < 0) | ^ client.c:700:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 700 | n = remline(s = respbuff, sizeof(respbuff), TRUE); | ^ client.c:639:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | static int sendlink(rname, opts, stb, user, group, destdir) | ^ client.c:769:13: warning: passing arguments to 'isexec' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 769 | if (isexec(target, statp)) { | ^ client.c:777:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 777 | (void) sendcmd(C_QUERY, "%s", rname); | ^ client.c:780:18: warning: assigning to 'char *' from 'u_char[1024]' (aka 'unsigned char[1024]') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 780 | n = remline(cp = respbuff, sizeof(respbuff), TRUE); | ^ ~~~~~~~~ client.c:780:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 780 | n = remline(cp = respbuff, sizeof(respbuff), TRUE); | ^ client.c:936:33: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 936 | if (strcmp(owner, getusername(statp->st_uid, | ^ client.c:940:18: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 940 | getusername(statp->st_uid, | ^ client.c:963:34: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 963 | if (strcmp(group, getgroupname(statp->st_gid, | ^ client.c:967:19: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | getgroupname(statp->st_gid, | ^ client.c:753:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | static int update(rname, opts, statp) | ^ client.c:991:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 991 | static int dostat(file, statbuf, opts) | ^ client.c:1040:6: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1040 | if (except(target)) | ^ client.c:1075:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1075 | (void) sendcmd(C_CHMOD, "%o %04o %s", | ^ client.c:1077:10: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1077 | (void) response(); | ^ client.c:1081:20: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1081 | user = getusername(stb.st_uid, target, opts); | ^ client.c:1082:22: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1082 | group = getgroupname(stb.st_gid, target, opts); | ^ client.c:1017:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | static int sendit(rname, opts, destdir) | ^ client.c:77: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] 77 | static int sendit(); | ^ client.c:1145:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1145 | if (file = getnotifyfile()) | ~~~~~^~~~~~~~~~~~~~~~~ client.c:1145:11: note: place parentheses around the assignment to silence this warning 1145 | if (file = getnotifyfile()) | ^ | ( ) client.c:1145:11: note: use '==' to turn this assignment into an equality comparison 1145 | if (file = getnotifyfile()) | ^ | == client.c:1190:24: warning: passing arguments to 'getondistoptlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1190 | cp = getondistoptlist(opts); | ^ client.c:1202:18: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1202 | rname = exptilde(target, src); | ^ client.c:1237:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1237 | (void) sendcmd(C_DIRTARGET, "%o %s", opts, dest); | ^ client.c:1240:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1240 | if (response() < 0) | ^ client.c:1158:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1158 | extern int install(src, dest, ddir, destdir, opts) | ^ In file included from client.c:57: ../include/defs.h:347: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] 347 | extern int install(); | ^ 71 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c child.c -o child.o In file included from child.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ child.c:90:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | static void removechild(child) | ^ child.c:153:26: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | newc = (CHILD *) xmalloc(sizeof(CHILD)); | ^ child.c:148:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | static CHILD *copychild(child) | ^ child.c:167:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | static void addchild(child) | ^ child.c:214:16: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | (void) xwrite(fileno(stdout), rbuf, amt); | ^ child.c:188:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | static void readchild(child) | ^ child.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 waitproc(statval, block) | ^ child.c:514:7: warning: call to undeclared function 'setnonblocking'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 514 | if (setnonblocking(newchild.c_readfd, TRUE) < 0) { | ^ child.c:523:15: warning: passing arguments to 'markassigned' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 523 | markassigned(cmd, cmdlist); | ^ child.c:467:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | extern int spawn(cmd, cmdlist) | ^ In file included from child.c:57: ../include/defs.h:352: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] 352 | extern int spawn(); | ^ child.c:576:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 576 | int setnonblocking(fd, flag) | ^ 16 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c docmd.c -o docmd.o In file included from docmd.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ docmd.c:87:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 87 | (void) sendcmd(C_FERRMSG, NULL); | ^ docmd.c:107: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 previous declaration [-Wdeprecated-non-prototype] 107 | FILE *pf, *popen(); | ^ /usr/include/stdio.h:327:7: note: conflicting prototype is here 327 | FILE *popen(const char *, const char *); | ^ docmd.c:121:34: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | (rhost) ? rhost : "", getnlstr(to)); | ^ docmd.c:161:10: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | if (!any('@', to->n_name) && rhost != NULL) | ^ docmd.c:167:11: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | if (!any('@', to->n_name) && rhost != NULL) | ^ docmd.c:100:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | static void notify(rhost, to, lmod) | ^ docmd.c:198:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | static void checkcmd(cmd) | ^ docmd.c:221:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | extern void markassigned(cmd, cmdlist) | ^ In file included from docmd.c:57: ../include/defs.h:361: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] 361 | extern void markassigned(); | ^ docmd.c:238:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 238 | static void markfailed(cmd, cmdlist) | ^ docmd.c:308:10: warning: call to undeclared function 'rshrcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | desc = rshrcmd(&rhost, -1, luser, ruser, cmd, 0); | ^ docmd.c:259:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | static int remotecmd(rhost, luser, ruser, cmd) | ^ docmd.c:362:13: warning: call to undeclared function 'okname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 362 | else if (!okname(ruser)) | ^ docmd.c:370:25: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 370 | (void) sprintf(buf, "%.*s -S", sizeof(buf)-5, path_rdistd); | ~~^~ ~~~~~~~~~~~~~ docmd.c:378:13: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | n = remline(respbuff, sizeof(respbuff), TRUE); | ^ docmd.c:395:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 395 | (void) sendcmd(S_VERSION, "%d", VERSION); | ^ docmd.c:396:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 396 | if (response() < 0) | ^ docmd.c:402:24: warning: passing 'u_char *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 402 | proto_version = atoi(&respbuff[1]); | ^~~~~~~~~~~~ /usr/include/stdlib.h:93:23: note: passing argument to parameter here 93 | int atoi(const char *); | ^ docmd.c:415:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 415 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_HOSTNAME, host); | ^ docmd.c:416:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 416 | if (response() < 0) | ^ docmd.c:420:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 420 | (void) sendcmd(C_SETCONFIG, "%c%lld", SC_FREESPACE, | ^ docmd.c:422:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 422 | if (response() < 0) | ^ docmd.c:426:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 426 | (void) sendcmd(C_SETCONFIG, "%c%lld", SC_FREEFILES, | ^ docmd.c:428:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 428 | if (response() < 0) | ^ docmd.c:432:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 432 | (void) sendcmd(C_SETCONFIG, "%c%s", SC_LOGGING, remotemsglist); | ^ docmd.c:433:7: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 433 | if (response() < 0) | ^ docmd.c:323:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | static int makeconn(rhost) | ^ docmd.c:534:29: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 534 | ddir = !strcmp(xbasename(sc->sc_name),"."); | ^ docmd.c:560:14: warning: passing arguments to 'install' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 560 | if (install(f->n_name, sc->sc_name, ddir, destdir, | ^ docmd.c:579:15: warning: passing arguments to 'install' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 579 | if (install(f->n_name, NULL, 0, 0, options) > 0) | ^ docmd.c:589:16: warning: passing arguments to 'runcmdspecial' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 589 | runcmdspecial(cmd, filev, opts); | ^ docmd.c:443:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 443 | static void doarrow(cmd, filev) | ^ docmd.c:618:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 618 | okname(name) | ^ | int docmd.c:618:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] docmd.c:658:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 658 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ docmd.c:658:12: note: place parentheses around the assignment to silence this warning 658 | while (dp = readdir(d)) { | ^ | ( ) docmd.c:658:12: note: use '==' to turn this assignment into an equality comparison 658 | while (dp = readdir(d)) { | ^ | == docmd.c:668:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 668 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ docmd.c:668:21: note: place parentheses around the assignment to silence this warning 668 | while (*ptarget++ = *cp++) | ^ | ( ) docmd.c:668:21: note: use '==' to turn this assignment into an equality comparison 668 | while (*ptarget++ = *cp++) | ^ | == docmd.c:671:10: warning: passing arguments to 'cmptime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 671 | cmptime(target, sbcmds, env); | ^ docmd.c:639:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | static void rcmptime(st, sbcmds, env) | ^ docmd.c:692:6: warning: call to undeclared function 'except'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 692 | if (except(name)) | ^ docmd.c:704:15: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | if (exptilde(target, name) == NULL) | ^ docmd.c:729:38: warning: passing arguments to 'inlist' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | if (sc->sc_args != NULL && !inlist(sc->sc_args, name)) | ^ docmd.c:736:29: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | *env = (char *) xrealloc(*env, len + | ^ docmd.c:745:14: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 745 | runcommand(buf); | ^ docmd.c:681:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 681 | static void cmptime(name, sbcmds, env) | ^ docmd.c:74: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] 74 | static void cmptime(); | ^ docmd.c:782:26: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 782 | env = (char *) xmalloc(sizeof(E_FILES) + 3); | ^ docmd.c:796:21: warning: passing arguments to 'setfiletime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 796 | (void) setfiletime(stamp, (time_t) 0, (time_t) 0); | ^ docmd.c:817:18: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 817 | env = xrealloc(env, | ^ docmd.c:826:15: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 826 | runcommand(env); | ^ docmd.c:753:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 753 | static void dodcolon(cmd, filev) | ^ docmd.c:855:16: warning: a function 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] 855 | char *cp, *re_comp(); | ^ /usr/include/unistd.h:552:7: note: conflicting prototype is here 552 | char *re_comp(const char *); | ^ docmd.c:838:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 838 | extern int except(file) | ^ docmd.c:893:14: warning: passing arguments to 'spawn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 893 | pid = spawn(cmd, cmds); | ^ docmd.c:873:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 873 | static void docmdhost(cmd, filev) | ^ docmd.c:930:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 930 | static void docmd(cmd, argc, argv) | ^ docmd.c:989:15: warning: passing arguments to 'mysetlinebuf' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 989 | mysetlinebuf(stdout); /* Make output (mostly) clean */ | ^ docmd.c:974:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 974 | extern void docmds(hostlist, argc, argv) | ^ In file included from docmd.c:57: ../include/defs.h:357: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] 357 | extern void docmds(); | ^ 62 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c distopt.c -o distopt.o In file included from distopt.c:23: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ distopt.c:55:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | extern DISTOPTINFO *getdistopt(name) | ^ distopt.c:96:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 96 | if (distopt = getdistopt(optstr)) { | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~ distopt.c:96:15: note: place parentheses around the assignment to silence this warning 96 | if (distopt = getdistopt(optstr)) { | ^ | ( ) distopt.c:96:15: note: use '==' to turn this assignment into an equality comparison 96 | if (distopt = getdistopt(optstr)) { | ^ | == distopt.c:72:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | extern int parsedistopts(str, optptr, doerrs) | ^ In file included from distopt.c:23: ../include/defs.h:349: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] 349 | extern int parsedistopts(); | ^ distopt.c:138:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 138 | extern char *getondistoptlist(opts) | ^ In file included from distopt.c:23: ../include/defs.h:340: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] 340 | extern char *getondistoptlist(); | ^ 10 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c expand.c -o expand.o In file included from expand.c:53: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ expand.c:90:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 90 | yyerror("Too many names"); | ^ expand.c:95:33: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | eargv[eargc - 1] = cp = xmalloc(len); | ^ expand.c:100:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 100 | } while (*cp++ = *s1++); | ~~~~~~^~~~~~~ expand.c:100:17: note: place parentheses around the assignment to silence this warning 100 | } while (*cp++ = *s1++); | ^ | ( ) expand.c:100:17: note: use '==' to turn this assignment into an equality comparison 100 | } while (*cp++ = *s1++); | ^ | == expand.c:105:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 105 | } while (*cp++ = *s2++); | ~~~~~~^~~~~~~ expand.c:105:17: note: place parentheses around the assignment to silence this warning 105 | } while (*cp++ = *s2++); | ^ | ( ) expand.c:105:17: note: use '==' to turn this assignment into an equality comparison 105 | } while (*cp++ = *s2++); | ^ | == expand.c:83:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | static void Cat(s1, s2) /* quote in s1 and s2 */ | ^ expand.c:112:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | yyerror("Pathname too long"); | ^ expand.c:108:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | static void addpath(c) | ^ expand.c:140:23: warning: passing arguments to 'getnlstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | list, wh, getnlstr(list)); | ^ expand.c:158:9: warning: passing arguments to 'expstr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | expstr((u_char *)nl->n_name); | ^ expand.c:164:14: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | nl = makenl((char *)NULL); | ^ expand.c:130:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | expand(list, wh) /* quote in list->n_name */ | ^ In file included from expand.c:53: ../include/defs.h:369:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 369 | struct namelist *expand(); | ^ expand.c:181:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 181 | u_char *xstrchr(str, ch) | ^ expand.c:213:4: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | yyerror("Variable is too large."); | ^ expand.c:238:4: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 238 | yyerror("no variable name after '$'"); | ^ expand.c:245:6: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 245 | yyerror("unmatched '{'"); | ^ expand.c:252:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 252 | yyerror("no variable name after '$'"); | ^ expand.c:260:14: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | tp = lookup((char *)cp, LOOKUP, (struct namelist *)NULL); | ^ expand.c:298:6: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 298 | yyerror((char *)ebuf+1); | ^ expand.c:305:35: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 305 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ~~~~~~^~~~~~~~ expand.c:305:35: note: place parentheses around the assignment to silence this warning 305 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ^ | ( ) expand.c:305:35: note: use '==' to turn this assignment into an equality comparison 305 | for (cp = (u_char *)path; *cp++ = *cp1++; ) | ^ | == expand.c:323:7: warning: passing arguments to 'expsh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | expsh(s); | ^ expand.c:194:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | void expstr(s) | ^ expand.c:76:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | void expstr(); | ^ expand.c:330:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 329 | static | ~~~~~~ | int 330 | argcmp(a1, a2) | ^ expand.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] expand.c:75: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] 75 | static int argcmp(); | ^ expand.c:350:13: warning: passing arguments to 'any' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 350 | while (!any(*cp, shchars)) { | ^ expand.c:370:10: warning: call to undeclared function 'execbrc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 370 | (void) execbrc(cp, (u_char *)NULL); | ^ expand.c:373:10: warning: passing arguments to 'matchdir' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | matchdir((char *)cp); | ^ expand.c:341:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | void expsh(s) /* quote in s */ | ^ expand.c:77:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | void expsh(); | ^ expand.c:400:7: warning: call to undeclared function 'match'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 400 | if (match(dp->d_name, pattern)) { | ^ expand.c:417:2: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 417 | yyerror(path); | ^ expand.c:379:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 379 | void matchdir(pattern) /* quote in pattern */ | ^ expand.c:78:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 78 | void matchdir(); | ^ expand.c:420:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 420 | execbrc(p, s) /* quote in p */ | ^ | int expand.c:449:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 449 | yyerror("Missing ']'"); | ^ expand.c:458:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 458 | yyerror("Missing '}'"); | ^ expand.c:490:15: warning: call to undeclared function 'amatch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 490 | } else if (amatch((char *)s, restbuf)) | ^ expand.c:500:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 500 | yyerror("Missing ']'"); | ^ expand.c:420:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 420 | execbrc(p, s) /* quote in p */ | ^ expand.c:510:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 510 | match(s, p) /* quote in p */ | ^ | int expand.c:521:6: warning: call to undeclared function 'amatch'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 521 | c = amatch(s, p); | ^ expand.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 510 | match(s, p) /* quote in p */ | ^ expand.c:527:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 527 | amatch(s, p) /* quote in p */ | ^ | int expand.c:548:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 548 | while (cc = *p++) { | ~~~^~~~~~ expand.c:548:14: note: place parentheses around the assignment to silence this warning 548 | while (cc = *p++) { | ^ | ( ) expand.c:548:14: note: use '==' to turn this assignment into an equality comparison 548 | while (cc = *p++) { | ^ | == expand.c:563:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 563 | yyerror("Missing ']'"); | ^ expand.c:610:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 610 | } else | ^ expand.c:527:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 527 | amatch(s, p) /* quote in p */ | ^ 53 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c lookup.c -o lookup.o In file included from lookup.c:53: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ lookup.c:71:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 71 | define(name) | ^ | int lookup.c:88:17: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | value = makenl(cp); | ^ lookup.c:114:24: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | value = nl = makenl(cp); | ^ lookup.c:116:24: warning: passing arguments to 'makenl' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | nl->n_next = makenl(cp); | ^ lookup.c:124:15: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | (void) lookup(name, REPLACE, value); | ^ lookup.c:71:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | define(name) | ^ lookup.c:125:1: warning: non-void function does not return a value [-Wreturn-type] 125 | } | ^ lookup.c:157:29: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 157 | (void) sprintf(ebuf, "%.*s redefined", | ~~^~ 158 | sizeof(ebuf) - | ~~~~~~~~~~~~~~ 159 | sizeof(" redefined"), name); | ~~~~~~~~~~~~~~~~~~~~ lookup.c:160:5: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | yyerror(ebuf); | ^ lookup.c:167:27: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 167 | (void) sprintf(ebuf, "%.*s undefined", | ~~^~ 168 | sizeof(ebuf) - sizeof(" undefined"), name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ lookup.c:169:3: warning: call to undeclared function 'yyerror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 169 | yyerror(ebuf); | ^ lookup.c:173:6: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | s = ALLOC(syment); | ^ ../include/defs.h:141:39: note: expanded from macro 'ALLOC' 141 | #define ALLOC(x) (struct x *) xmalloc(sizeof(struct x)) | ^ lookup.c:135:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | lookup(name, action, value) /* %% in name. Ignore quotas in name */ | ^ In file included from lookup.c:53: ../include/defs.h:370:26: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 370 | struct namelist *lookup(); | ^ 18 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c isexec.c -o isexec.o In file included from isexec.c:53: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ isexec.c:67:7: warning: call to undeclared function 'ntohl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | !N_BADMAG(ehdr)) | ^ /usr/include/sys/imgact_aout.h:69:3: note: expanded from macro 'N_BADMAG' 69 | N_GETMAGIC_NET(ex) != OMAGIC && N_GETMAGIC_NET(ex) != NMAGIC && \ | ^ /usr/include/sys/imgact_aout.h:51:3: note: expanded from macro 'N_GETMAGIC_NET' 51 | (ntohl((ex).a_midmag) & 0xffff) | ^ isexec.c:61:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | static int _isexec(fd) | ^ isexec.c:255:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | extern int isexec(file, statp) | ^ In file included from isexec.c:53: ../include/defs.h:348: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] 348 | extern int isexec(); | ^ 8 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c signal.c -o signal.o In file included from signal.c:53: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ 4 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c rshrcmd.c -o rshrcmd.o In file included from rshrcmd.c:20: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ rshrcmd.c:37:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 37 | rshrcmd(ahost, port, luser, ruser, cmd, fd2p) | ^ | int rshrcmd.c:51:6: warning: call to undeclared function 'getsocketpair'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 51 | if (getsocketpair(AF_UNIX, SOCK_STREAM, 0, sp) < 0) { | ^ rshrcmd.c:86:34: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | execlp(_PATH_BSHELL, xbasename(_PATH_BSHELL), "-c", | ^ rshrcmd.c:90:32: warning: passing arguments to 'xbasename' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | execlp(path_remsh, xbasename(path_remsh), | ^ rshrcmd.c:37:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 37 | rshrcmd(ahost, port, luser, ruser, cmd, fd2p) | ^ rshrcmd.c:104:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 104 | } | ^ 10 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c common.c -o common.o In file included from common.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ common.c:90:23: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 90 | extern WRITE_RETURN_T xwrite(fd, buf, len) | ^ In file included from common.c:57: ../include/defs.h:372: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] 372 | extern WRITE_RETURN_T xwrite(); | ^ common.c:132:30: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | realargv = (char **) xmalloc(sizeof(char *) * (argc+1)); | ^ common.c:137:2: warning: call to undeclared function 'setargs_settup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 137 | setargs_settup(argc, argv, envp); | ^ common.c:113:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | extern int init(argc, argv, envp) | ^ In file included from common.c:57: ../include/defs.h:346: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] 346 | extern int init(); | ^ common.c:234:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | extern void sighandler(sig) | ^ In file included from common.c:57: ../include/defs.h:367: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] 367 | extern void sighandler(); | ^ common.c:275:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | static int sendcmdmsg(cmd, msg) | ^ common.c:389:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | static ssize_t remread(fd, buf, bufsiz) | ^ common.c:422:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 422 | extern int remline(buffer, space, doclean) | ^ In file included from common.c:57: ../include/defs.h:350: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] 350 | extern int remline(); | ^ common.c:483:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | ssize_t readrem(p, space) | ^ common.c:516:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 516 | extern char *getusername(uid, file, opts) | ^ In file included from common.c:57: ../include/defs.h:341: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] 341 | extern char *getusername(); | ^ common.c:555:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 555 | extern char *getgroupname(gid, file, opts) | ^ In file included from common.c:57: ../include/defs.h:337: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] 337 | extern char *getgroupname(); | ^ common.c:636:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 636 | } | ^ common.c:683:24: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 683 | for (s1 = ebuf; *s1++ = *s2++; ) | ~~~~~~^~~~~~~ common.c:683:24: note: place parentheses around the assignment to silence this warning 683 | for (s1 = ebuf; *s1++ = *s2++; ) | ^ | ( ) common.c:683:24: note: use '==' to turn this assignment into an equality comparison 683 | for (s1 = ebuf; *s1++ = *s2++; ) | ^ | == common.c:688:16: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 688 | while (*s1++ = *s3++) | ~~~~~~^~~~~~~ common.c:688:16: note: place parentheses around the assignment to silence this warning 688 | while (*s1++ = *s3++) | ^ | ( ) common.c:688:16: note: use '==' to turn this assignment into an equality comparison 688 | while (*s1++ = *s3++) | ^ | == common.c:646:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | extern char *exptilde(ebuf, file) | ^ In file included from common.c:57: ../include/defs.h:330:16: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 330 | char *exptilde(); | ^ common.c:742:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 742 | extern int setfiletime(file, atime, mtime) | ^ In file included from common.c:57: ../include/defs.h:351: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] 351 | extern int setfiletime(); | ^ common.c:820:48: warning: missing sentinel in function call [-Wsentinel] 820 | (void) execl(_PATH_BSHELL, "sh", "-c", cmd, 0); | ^ | , NULL /usr/include/unistd.h:331:6: note: function has been explicitly marked sentinel here 331 | int execl(const char *, const char *, ...) __null_sentinel; | ^ ~~~~~~~~~~~~~~~ common.c:860:14: warning: call to undeclared function 'wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 860 | while ((i = wait(&status)) != pid && i != -1) | ^ common.c:795:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 795 | void runcommand(cmd) | ^ In file included from common.c:57: ../include/defs.h:365: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] 365 | extern void runcommand(); | ^ common.c:878:18: warning: a function 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] 878 | extern POINTER *malloc(); | ^ common.c:874:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 874 | char *xmalloc(amt) | ^ In file included from common.c:57: ../include/defs.h:333:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 333 | char *xmalloc(); | ^ common.c:894:18: warning: a function 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] 894 | extern POINTER *realloc(); | ^ common.c:889:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 889 | char *xrealloc(baseptr, amt) | ^ In file included from common.c:57: ../include/defs.h:334:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 334 | char *xrealloc(); | ^ common.c:910:18: warning: a function 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] 910 | extern POINTER *calloc(); | ^ common.c:905:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 905 | char *xcalloc(num, esize) | ^ In file included from common.c:57: ../include/defs.h:332:23: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 332 | char *xcalloc(); | ^ common.c:927:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 927 | if (cp = strrchr(path, '/')) | ~~~^~~~~~~~~~~~~~~~~~~~ common.c:927:9: note: place parentheses around the assignment to silence this warning 927 | if (cp = strrchr(path, '/')) | ^ | ( ) common.c:927:9: note: use '==' to turn this assignment into an equality comparison 927 | if (cp = strrchr(path, '/')) | ^ | == common.c:922:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 922 | extern char *xbasename(path) | ^ In file included from common.c:57: ../include/defs.h:335: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] 335 | extern char *xbasename(); | ^ common.c:938:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 938 | extern char *searchpath(path) | ^ In file included from common.c:57: ../include/defs.h:344: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] 344 | extern char *searchpath(); | ^ common.c:967:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 967 | mysetlinebuf(fp) | ^ In file included from common.c:57: ../include/defs.h:307: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] 307 | extern void mysetlinebuf(); /* set line buffering */ | ^ common.c:992:9: warning: call to undeclared function 'socketpair'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 992 | return(socketpair(domain, type, protocol, sv)); | ^ common.c:985:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 985 | getsocketpair(domain, type, protocol, sv) | ^ 50 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c message.c -o message.o In file included from message.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ message.c:128:30: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 128 | (void) sprintf(buf, " %.*s=", | ~~^~ 129 | sizeof(buf) - 7, msgfacility[i].mf_name); | ~~~~~~~~~~~~~~~ message.c:145:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | static MSGFACILITY *getmsgfac(name) | ^ message.c:160:17: 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 MSGTYPE *getmsgtype(name) | ^ message.c:243:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 243 | if (cp = strchr(strptr, ',')) | ~~~^~~~~~~~~~~~~~~~~~~~~ message.c:243:10: note: place parentheses around the assignment to silence this warning 243 | if (cp = strchr(strptr, ',')) | ^ | ( ) message.c:243:10: note: use '==' to turn this assignment into an equality comparison 243 | if (cp = strchr(strptr, ',')) | ^ | == message.c:247:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 247 | if (mtp = getmsgtype(word)) { | ~~~~^~~~~~~~~~~~~~~~~~ message.c:247:11: note: place parentheses around the assignment to silence this warning 247 | if (mtp = getmsgtype(word)) { | ^ | ( ) message.c:247:11: note: use '==' to turn this assignment into an equality comparison 247 | if (mtp = getmsgtype(word)) { | ^ | == message.c:176:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | static char *setmsgtypes(msgfac, str) | ^ message.c:311:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 311 | if (mcp = setmsgtypes(msgfac, cp)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ message.c:311:12: note: place parentheses around the assignment to silence this warning 311 | if (mcp = setmsgtypes(msgfac, cp)) | ^ | ( ) message.c:311:12: note: use '==' to turn this assignment into an equality comparison 311 | if (mcp = setmsgtypes(msgfac, cp)) | ^ | == message.c:270:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | extern char *msgparseopts(msgstr, doset) | ^ In file included from message.c:57: ../include/defs.h:343: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] 343 | extern char *msgparseopts(); | ^ message.c:351:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 351 | (void) sendcmd(cmd, "%s", msgbuf); | ^ message.c:328:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 328 | static void msgsendstdout(msgfac, mtype, flags, msgbuf) | ^ message.c:81: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] 81 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:386:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | static void msgsendsyslog(msgfac, mtype, flags, msgbuf) | ^ message.c:81:45: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 81 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:431:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | static void msgsendfile(msgfac, mtype, flags, msgbuf) | ^ message.c:81:30: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 81 | static void msgsendstdout(), msgsendfile(), msgsendsyslog(), | ^ message.c:473:30: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | tempfile = (char *) xmalloc(strlen(cp) + 1 + | ^ message.c:451:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 451 | static void msgsendnotify(msgfac, mtype, flags, msgbuf) | ^ message.c:82:2: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 82 | msgsendnotify(); | ^ message.c:526:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 526 | if (cp = strchr(msgbuf, '\n')) | ~~~^~~~~~~~~~~~~~~~~~~~~~ message.c:526:10: note: place parentheses around the assignment to silence this warning 526 | if (cp = strchr(msgbuf, '\n')) | ^ | ( ) message.c:526:10: note: use '==' to turn this assignment into an equality comparison 526 | if (cp = strchr(msgbuf, '\n')) | ^ | == message.c:573:34: 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] 573 | (*msgfacility[i].mf_sendfunc)(&msgfacility[i], | ^ message.c:514:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 514 | static void _message(flags, msgbuf) | ^ message.c:640:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 640 | static void _debugmsg(lvl, buf) | ^ message.c:708:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | static void _error(msg) | ^ message.c:788:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 788 | static void _fatalerr(msg) | ^ 29 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c setargs.c -o setargs.o In file included from setargs.c:53: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ setargs.c:69:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 69 | setargs_settup(argc, argv, envp) | ^ | int setargs.c:69:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] setargs.c:90:1: warning: non-void function does not return a value [-Wreturn-type] 90 | } | ^ 7 warnings generated. cc -o rdist gram.o rdist.o client.o child.o docmd.o distopt.o expand.o lookup.o isexec.o signal.o rshrcmd.o common.o message.o setargs.o -lcompat cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c rdistd.c -o rdistd.o In file included from rdistd.c:54: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ rdistd.c:70:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 70 | main(argc, argv, envp) | ^ | int rdistd.c:78:10: warning: passing arguments to 'init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | if (init(argc, argv, envp) < 0) | ^ rdistd.c:111:23: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ rdistd.c:111:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 111 | if (cp = msgparseopts(localmsglist, TRUE)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rdistd.c:111:9: note: place parentheses around the assignment to silence this warning 111 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ | ( ) rdistd.c:111:9: note: use '==' to turn this assignment into an equality comparison 111 | if (cp = msgparseopts(localmsglist, TRUE)) | ^ | == rdistd.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | main(argc, argv, envp) | ^ 9 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c server.c -o server.o In file included from server.c:56: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ server.c:72:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | static int cattarget(string) | ^ server.c:92:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | static int setownership(file, fd, uid, gid) | ^ server.c:141:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 141 | static int setfilemode(file, fd, mode) | ^ server.c:172:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | static struct group *mygetgroup(name) | ^ server.c:255:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 255 | if (gr = mygetgroup(group)) { | ~~~^~~~~~~~~~~~~~~~~~~ server.c:255:10: note: place parentheses around the assignment to silence this warning 255 | if (gr = mygetgroup(group)) { | ^ | ( ) server.c:255:10: note: use '==' to turn this assignment into an equality comparison 255 | if (gr = mygetgroup(group)) { | ^ | == server.c:188:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 188 | static int fchog(fd, file, owner, group, mode) | ^ server.c:365:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 365 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ server.c:365:12: note: place parentheses around the assignment to silence this warning 365 | while (dp = readdir(d)) { | ^ | ( ) server.c:365:12: note: use '==' to turn this assignment into an equality comparison 365 | while (dp = readdir(d)) { | ^ | == server.c:379:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 379 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ server.c:379:21: note: place parentheses around the assignment to silence this warning 379 | while (*ptarget++ = *cp++) | ^ | ( ) server.c:379:21: note: use '==' to turn this assignment into an equality comparison 379 | while (*ptarget++ = *cp++) | ^ | == server.c:323:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | static int removefile(statb) | ^ server.c:435:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 435 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:439:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 439 | while (dp = readdir(d)) { | ~~~^~~~~~~~~~~~ server.c:439:12: note: place parentheses around the assignment to silence this warning 439 | while (dp = readdir(d)) { | ^ | ( ) server.c:439:12: note: use '==' to turn this assignment into an equality comparison 439 | while (dp = readdir(d)) { | ^ | == server.c:453:21: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 453 | while (*ptarget++ = *cp++) | ~~~~~~~~~~~^~~~~~~ server.c:453:21: note: place parentheses around the assignment to silence this warning 453 | while (*ptarget++ = *cp++) | ^ | ( ) server.c:453:21: note: use '==' to turn this assignment into an equality comparison 453 | while (*ptarget++ = *cp++) | ^ | == server.c:463:17: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 463 | (void) remline(cp = buf, sizeof(buf), TRUE); | ^ server.c:416:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 416 | static void doclean(cp) | ^ server.c:487:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 487 | (void) sendcmd(CC_END, NULL); | ^ server.c:488:9: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 488 | (void) response(); | ^ server.c:483:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 483 | static void clean(cp) | ^ server.c:499:12: warning: passing arguments to 'runcommand' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 499 | runcommand(cmd); | ^ server.c:496:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 496 | static void dospecial(cmd) | ^ server.c:518:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 518 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:521:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | n = remline(cp = buf, sizeof(buf), FALSE); | ^ server.c:531:27: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 531 | env = (char *) xmalloc(len); | ^ server.c:536:28: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 536 | env = (char *) xrealloc(env, | ^ server.c:548:28: warning: passing arguments to 'xrealloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | env = (char *) xrealloc(env, | ^ server.c:594:7: warning: call to undeclared function 'is_nfs_mounted'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 594 | s = is_nfs_mounted(target, &stb, &stbvalid); | ^ server.c:596:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 596 | (void) sendcmd(QC_ONNFS, NULL); | ^ server.c:609:7: warning: call to undeclared function 'is_ro_mounted'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 609 | s = is_ro_mounted(target, &stb, &stbvalid); | ^ server.c:611:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 611 | (void) sendcmd(QC_ONRO, NULL); | ^ server.c:623:7: warning: call to undeclared function 'is_symlinked'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 623 | if (is_symlinked(target, &stb, &stbvalid) > 0) { | ^ server.c:624:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 624 | (void) sendcmd(QC_SYM, NULL); | ^ server.c:637:11: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 637 | (void) sendcmd(QC_NO, NULL); | ^ server.c:648:10: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 648 | (void) sendcmd(QC_YES, "%lld %ld %o %s %s", | ^ server.c:652:22: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 652 | getusername(stb.st_uid, target, options), | ^ server.c:653:23: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | getgroupname(stb.st_gid, target, options)); | ^ server.c:583:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 583 | static void query(name) | ^ server.c:666:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 666 | static int chkparent(name, opts) | ^ server.c:704:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 704 | static char *savetarget(file) | ^ server.c:733:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 733 | static int iszeros (buf, size) | ^ server.c:782:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 782 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:794:8: warning: call to undeclared function 'readrem'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 794 | j = readrem(cp, amt); | ^ server.c:816:32: warning: passing arguments to 'xwrite' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 816 | if (wrerr == 0 && xwrite(f, buf, amt) != amt) { | ^ server.c:838:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 838 | if (response() < 0) { | ^ server.c:916:17: warning: passing arguments to 'setfiletime' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 916 | if (setfiletime(new, time((time_t *) 0), mtime) < 0) | ^ server.c:751:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 751 | static void recvfile(new, opts, mode, owner, group, mtime, atime, size) | ^ server.c:1047:25: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1047 | if (cp = getusername(stb.st_uid, target, o)) | ^ server.c:1047:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1047 | if (cp = getusername(stb.st_uid, target, o)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1047:12: note: place parentheses around the assignment to silence this warning 1047 | if (cp = getusername(stb.st_uid, target, o)) | ^ | ( ) server.c:1047:12: note: use '==' to turn this assignment into an equality comparison 1047 | if (cp = getusername(stb.st_uid, target, o)) | ^ | == server.c:1056:26: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1056 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ server.c:1056:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1056 | if (cp = getgroupname(stb.st_gid, target, o)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1056:12: note: place parentheses around the assignment to silence this warning 1056 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ | ( ) server.c:1056:12: note: use '==' to turn this assignment into an equality comparison 1056 | if (cp = getgroupname(stb.st_gid, target, o)) | ^ | == server.c:1067:26: warning: passing arguments to 'getusername' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1067 | (cp = getusername(stb.st_uid, | ^ server.c:1071:27: warning: passing arguments to 'getgroupname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1071 | (cp = getgroupname(stb.st_gid, | ^ server.c:1094:4: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1094 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1100:3: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1100 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1114:5: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1114 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:984:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 984 | static void recvdir(opts, mode, owner, group) | ^ server.c:1144:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1144 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1145:16: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | (void) remline(buf, sizeof(buf), TRUE); | ^ server.c:1147:6: warning: call to undeclared function 'response'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1147 | if (response() < 0) { | ^ server.c:1131:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1131 | static void recvlink(new, opts, mode, size) | ^ server.c:1277:14: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1277 | if (exptilde(expbuf, oldname) == NULL) { | ^ server.c:1310:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1310 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1232:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1232 | static void hardlink(cmd) | ^ server.c:1355:26: warning: passing arguments to 'msgparseopts' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1355 | if (estr = msgparseopts(cp, TRUE)) { | ^ server.c:1355:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1355 | if (estr = msgparseopts(cp, TRUE)) { | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ server.c:1355:12: note: place parentheses around the assignment to silence this warning 1355 | if (estr = msgparseopts(cp, TRUE)) { | ^ | ( ) server.c:1355:12: note: use '==' to turn this assignment into an equality comparison 1355 | if (estr = msgparseopts(cp, TRUE)) { | ^ | == server.c:1321:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1321 | static void setconfig(cmd) | ^ server.c:1472:22: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1472 | while (*ptarget++ = *file++) | ~~~~~~~~~~~^~~~~~~~~ server.c:1472:22: note: place parentheses around the assignment to silence this warning 1472 | while (*ptarget++ = *file++) | ^ | ( ) server.c:1472:22: note: use '==' to turn this assignment into an equality comparison 1472 | while (*ptarget++ = *file++) | ^ | == server.c:1505:7: warning: call to undeclared function 'getfilesysinfo'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1505 | if (getfilesysinfo(target, &freespace, &freefiles) != 0) | ^ server.c:1371:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1371 | static void recvit(cmd, type) | ^ server.c:1575:14: warning: passing arguments to 'exptilde' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1575 | if (exptilde(target, cp) == NULL) | ^ server.c:1581:2: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1581 | ack(); | ^ ../include/defs.h:190:24: note: expanded from macro 'ack' 190 | #define ack() (void) sendcmd(C_ACK, (char *)NULL) | ^ server.c:1553:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1553 | static void settarget(cmd, isdir) | ^ server.c:1624:9: warning: call to undeclared function 'sendcmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1624 | (void) sendcmd(S_VERSION, NULL); | ^ server.c:1626:13: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1626 | if (remline(cmdbuf, sizeof(cmdbuf), TRUE) < 0) { | ^ server.c:1652:14: warning: passing arguments to 'remline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1652 | n = remline(cp = cmdbuf, sizeof(cmdbuf), TRUE); | ^ 77 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c filesys.c -o filesys.o In file included from filesys.c:58: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ filesys.c:128:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 128 | if (p = (char *) strrchr(file, '/')) { | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:128:10: note: place parentheses around the assignment to silence this warning 128 | if (p = (char *) strrchr(file, '/')) { | ^ | ( ) filesys.c:128:10: note: use '==' to turn this assignment into an equality comparison 128 | if (p = (char *) strrchr(file, '/')) { | ^ | == filesys.c:174:10: warning: address of array 'file' will always evaluate to 'true' [-Wpointer-bool-conversion] 174 | return((file && *file) ? file : (char *)NULL); | ^~~~ ~~ filesys.c:67:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 67 | char *find_file(pathname, statbuf, isvalid) | ^ filesys.c:182:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | mntent_t *findmnt(filest, mntinfo) | ^ filesys.c:201:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | int isdupmnt(mnt, mntinfo) | ^ filesys.c:236:25: warning: passing arguments to 'setmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 236 | if (!(mfp = setmountent(MOUNTED_FILE, "r"))) { | ^ filesys.c:250:26: warning: passing arguments to 'getmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | while (mnt = getmountent(mfp)) { | ^ filesys.c:250:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 250 | while (mnt = getmountent(mfp)) { | ~~~~^~~~~~~~~~~~~~~~~~ filesys.c:250:13: note: place parentheses around the assignment to silence this warning 250 | while (mnt = getmountent(mfp)) { | ^ | ( ) filesys.c:250:13: note: use '==' to turn this assignment into an equality comparison 250 | while (mnt = getmountent(mfp)) { | ^ | == filesys.c:272:37: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 272 | newmi = (struct mntinfo *) xcalloc(1, sizeof(struct mntinfo)); | ^ filesys.c:273:30: warning: passing arguments to 'newmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | newmi->mi_mnt = newmountent(mnt); | ^ filesys.c:275:30: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 275 | (struct stat *) xcalloc(1, sizeof(struct stat)); | ^ filesys.c:290:20: warning: passing arguments to 'endmountent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 290 | (void) endmountent(mfp); | ^ filesys.c:227:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | struct mntinfo *makemntinfo(mi) | ^ filesys.c:333:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 333 | if (mnt = findmnt(pstat, mntinfo)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:333:10: note: place parentheses around the assignment to silence this warning 333 | if (mnt = findmnt(pstat, mntinfo)) | ^ | ( ) filesys.c:333:10: note: use '==' to turn this assignment into an equality comparison 333 | if (mnt = findmnt(pstat, mntinfo)) | ^ | == filesys.c:340:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 340 | if (tmpmi = makemntinfo(mntinfo)) { | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ filesys.c:340:12: note: place parentheses around the assignment to silence this warning 340 | if (tmpmi = makemntinfo(mntinfo)) { | ^ | ( ) filesys.c:340:12: note: use '==' to turn this assignment into an equality comparison 340 | if (tmpmi = makemntinfo(mntinfo)) { | ^ | == filesys.c:342:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 342 | if (mnt = findmnt(pstat, mntinfo)) | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ filesys.c:342:11: note: place parentheses around the assignment to silence this warning 342 | if (mnt = findmnt(pstat, mntinfo)) | ^ | ( ) filesys.c:342:11: note: use '==' to turn this assignment into an equality comparison 342 | if (mnt = findmnt(pstat, mntinfo)) | ^ | == filesys.c:302:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | mntent_t *getmntpt(pathname, statbuf, isvalid) | ^ filesys.c:356:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | int is_nfs_mounted(path, statbuf, isvalid) | ^ filesys.c:382:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | int is_ro_mounted(path, statbuf, isvalid) | ^ filesys.c:403:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 403 | int is_symlinked(path, statbuf, isvalid) | ^ filesys.c:431:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 431 | int getfilesysinfo(file, freespace, freefiles) | ^ 25 warnings generated. cc -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DOS_H=\"os-freebsd2.h\" -I. -I../include -I../config -c filesys-os.c -o filesys-os.o In file included from filesys-os.c:57: ../include/defs.h:322:16: warning: a function 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] 322 | char *strchr(); | ^ ../include/defs.h:323: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 previous declaration [-Wdeprecated-non-prototype] 323 | char *strdup(); | ^ ../include/defs.h:324: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 previous declaration [-Wdeprecated-non-prototype] 324 | char *strrchr(); | ^ ../include/defs.h:325: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 previous declaration [-Wdeprecated-non-prototype] 325 | char *strtok(); | ^ filesys-os.c:116:27: warning: passing arguments to 'xmalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | mntbuf = (char *) xmalloc(size); | ^ filesys-os.c:104:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 104 | FILE *setmountent(file, mode) | ^ In file included from filesys-os.c:58: ../include/filesys.h:138: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] 138 | FILE *setmountent(); | ^ filesys-os.c:170:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 170 | mntent_t *getmountent(fptr) | ^ In file included from filesys-os.c:58: ../include/filesys.h:139: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] 139 | mntent_t *getmountent(); | ^ filesys-os.c:224:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | void endmountent(fptr) | ^ In file included from filesys-os.c:58: ../include/filesys.h:141:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 141 | void endmountent(); | ^ filesys-os.c:412:28: warning: passing arguments to 'xcalloc' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | new = (mntent_t *) xcalloc(1, sizeof(mntent_t)); | ^ filesys-os.c:404:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 404 | mntent_t *newmountent(old) | ^ In file included from filesys-os.c:58: ../include/filesys.h:140: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] 140 | mntent_t *newmountent(); | ^ 14 warnings generated. cc -o rdistd rdistd.o server.o filesys.o filesys-os.o common.o message.o setargs.o -lcompat Making "all" in "config" Making "all" in "doc" Making "all" in "support" Making "all" in "mf" =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> rdist-6.1.5_10 depends on executable: rsh - not found ===> Installing existing package /packages/All/bsdrcmds-20171003.01_1.pkg [13amd64-weekly-desktop-job-03] Installing bsdrcmds-20171003.01_1... [13amd64-weekly-desktop-job-03] Extracting bsdrcmds-20171003.01_1: .......... done ===> rdist-6.1.5_10 depends on executable: rsh - found ===> Returning to build of rdist-6.1.5_10 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Staging for rdist-6.1.5_10 ===> Generating temporary packing list Making "install" in "src" install -c rdist /wrkdirs/usr/ports/net/rdist6/work/stage/usr/local/bin/rdist install -c rdistd /wrkdirs/usr/ports/net/rdist6/work/stage/usr/local/bin/rdistd Making "install" in "config" Making "install" in "doc" Making "install" in "support" Making "install" in "mf" Making "install.man" in "src" Making "install.man" in "config" Making "install.man" in "doc" install -c rdist.man /wrkdirs/usr/ports/net/rdist6/work/stage/usr/local/share/man/man1/rdist.1 install -c rdistd.man /wrkdirs/usr/ports/net/rdist6/work/stage/usr/local/share/man/man8/rdistd.8 Making "install.man" in "support" Making "install.man" in "mf" ====> 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-06T03:19:49+0000' 'PKG_NOTE_ports_top_git_hash=57a50b106b87' 'PKG_NOTE_ports_top_checkout_unclean=yes' 'PKG_NOTE_port_git_hash=b4dedc91e8a0' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=nobody UID=65534 GID=65534 ===> Building packages for rdist-6.1.5_10 ===> Building rdist-6.1.5_10 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for rdist-6.1.5_10 build of net/rdist6 | rdist-6.1.5_10 ended at Mon May 5 23:19:56 EDT 2025 build time: 00:00:08