=>> Building net/tcpview build started at Sun Jan 25 00:35:07 EST 2026 port directory: /usr/ports/net/tcpview package name: tcpview-1.0_8 building for: FreeBSD pkg.DaveG.ca 13.5-RELEASE-p7 FreeBSD 13.5-RELEASE-p7 1305000 amd64 maintained by: cy@FreeBSD.org Makefile datestamp: -rw-r--r-- 1 root wheel 889 Aug 27 2024 /usr/ports/net/tcpview/Makefile Ports top last git commit: 076a295eb33c Ports top unclean checkout: no Port dir last git commit: 268db869e823 Port dir unclean checkout: no Poudriere version: poudriere-git-3.4.2 Host OSVERSION: 1500068 Jail OSVERSION: 1305000 Job Id: 05 ---Begin Environment--- SHELL=/bin/csh OSVERSION=1305000 UNAME_v=FreeBSD 13.5-RELEASE-p7 1305000 UNAME_r=13.5-RELEASE-p7 BLOCKSIZE=K MAIL=/var/mail/root MM_CHARSET=UTF-8 LANG=C.UTF-8 STATUS=1 HOME=/root PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin MAKE_OBJDIR_CHECK_WRITABLE=0 LOCALBASE=/usr/local USER=root POUDRIERE_NAME=poudriere-git LIBEXECPREFIX=/usr/local/libexec/poudriere POUDRIERE_VERSION=3.4.2 MASTERMNT=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/ref LC_COLLATE=C POUDRIERE_BUILD_TYPE=bulk PACKAGE_BUILDING=yes SAVED_TERM=tmux-256color OUTPUT_REDIRECTED_STDERR=4 OUTPUT_REDIRECTED=1 PWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/05/.p OUTPUT_REDIRECTED_STDOUT=3 P_PORTS_FEATURES=FLAVORS SUBPACKAGES SELECTED_OPTIONS MASTERNAME=freebsd_13_5_x64-HEAD-ALL SCRIPTPREFIX=/usr/local/share/poudriere SCRIPTNAME=bulk.sh OLDPWD=/usr/local/poudriere/data/.m/freebsd_13_5_x64-HEAD-ALL/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/tcpview/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/tcpview/work/.cache HOME=/wrkdirs/usr/ports/net/tcpview/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/tcpview/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/tcpview/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-- MOTIFLIB="-L/usr/local/lib -lXm" XDG_DATA_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CONFIG_HOME=/wrkdirs/usr/ports/net/tcpview/work XDG_CACHE_HOME=/wrkdirs/usr/ports/net/tcpview/work/.cache HOME=/wrkdirs/usr/ports/net/tcpview/work TMPDIR="/tmp" PATH=/wrkdirs/usr/ports/net/tcpview/work/.bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/bin PKG_CONFIG_LIBDIR=/wrkdirs/usr/ports/net/tcpview/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 -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing " CPP="cpp" CPPFLAGS="" LDFLAGS=" " LIBS="" CXX="c++" CXXFLAGS="-O2 -pipe -Wno-incompatible-function-pointer-types -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-- OSREL=13.5 PREFIX=%D LOCALBASE=/usr/local RESETPREFIX=/usr/local LIB32DIR=lib DOCSDIR="share/doc/tcpview" EXAMPLESDIR="share/examples/tcpview" DATADIR="share/tcpview" WWWDIR="www/tcpview" ETCDIR="etc/tcpview" --End PLIST_SUB-- --SUB_LIST-- PREFIX=/usr/local LOCALBASE=/usr/local DATADIR=/usr/local/share/tcpview DOCSDIR=/usr/local/share/doc/tcpview EXAMPLESDIR=/usr/local/share/examples/tcpview WWWDIR=/usr/local/www/tcpview ETCDIR=/usr/local/etc/tcpview --End SUB_LIST-- ---Begin make.conf--- DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 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 #### #### DEFAULT_VERSIONS+=pgsql=15 DEFAULT_VERSIONS+=php=82 DISABLE_LICENSES=yes SELECTED_OPTIONS+=OPENBLAS ARCHDEF=AMD64K10h64SSE3 WITH_CCACHE_BUILD=yes CCACHE_DIR=/root/.ccache #### Misc Poudriere #### .include "/etc/make.conf.ports_env" GID=0 UID=0 ---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=root UID=0 GID=0 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on file: /usr/local/sbin/pkg - not found ===> Installing existing package /packages/All/pkg-2.5.1.pkg [pkg.DaveG.ca] Installing pkg-2.5.1... [pkg.DaveG.ca] Extracting pkg-2.5.1: .......... done ===> tcpview-1.0_8 depends on file: /usr/local/sbin/pkg - found ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== 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 tcpview-1.0_8 for building =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Fetching all distfiles required by tcpview-1.0_8 for building => SHA256 Checksum OK for tcpview-1.0.tar.Z. =========================================================================== =================================================== ===== 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 tcpview-1.0_8 for building ===> Extracting for tcpview-1.0_8 => SHA256 Checksum OK for tcpview-1.0.tar.Z. =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Patching for tcpview-1.0_8 ===> Applying FreeBSD patches for tcpview-1.0_8 from /usr/ports/net/tcpview/files =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on executable: bison - not found ===> Installing existing package /packages/All/bison-3.8.2_2,1.pkg [pkg.DaveG.ca] Installing bison-3.8.2_2,1... [pkg.DaveG.ca] `-- Installing gettext-runtime-0.26... [pkg.DaveG.ca] | `-- Installing indexinfo-0.3.1_1... [pkg.DaveG.ca] | `-- Extracting indexinfo-0.3.1_1: . done [pkg.DaveG.ca] `-- Extracting gettext-runtime-0.26: .......... done [pkg.DaveG.ca] `-- Installing libtextstyle-0.26... [pkg.DaveG.ca] `-- Extracting libtextstyle-0.26: .......... done [pkg.DaveG.ca] `-- Installing m4-1.4.20,1... [pkg.DaveG.ca] `-- Extracting m4-1.4.20,1: .......... done [pkg.DaveG.ca] Extracting bison-3.8.2_2,1: .......... done ===> tcpview-1.0_8 depends on executable: bison - found ===> Returning to build of tcpview-1.0_8 ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - not found ===> Installing existing package /packages/All/libXpm-3.5.17_1.pkg [pkg.DaveG.ca] Installing libXpm-3.5.17_1... [pkg.DaveG.ca] `-- Installing libX11-1.8.12,1... [pkg.DaveG.ca] | `-- Installing libxcb-1.17.0... [pkg.DaveG.ca] | | `-- Installing libXau-1.0.12... [pkg.DaveG.ca] | | `-- Extracting libXau-1.0.12: .......... done [pkg.DaveG.ca] | | `-- Installing libXdmcp-1.1.5... [pkg.DaveG.ca] | | `-- Installing xorgproto-2024.1... [pkg.DaveG.ca] | | `-- Extracting xorgproto-2024.1: .......... done [pkg.DaveG.ca] | | `-- Extracting libXdmcp-1.1.5: ...... done [pkg.DaveG.ca] | `-- Extracting libxcb-1.17.0: .......... done [pkg.DaveG.ca] `-- Extracting libX11-1.8.12,1: .......... done [pkg.DaveG.ca] `-- Installing libXext-1.3.6,1... [pkg.DaveG.ca] `-- Extracting libXext-1.3.6,1: .......... done [pkg.DaveG.ca] `-- Installing libXt-1.3.0,1... [pkg.DaveG.ca] | `-- Installing libICE-1.1.2,1... [pkg.DaveG.ca] | `-- Extracting libICE-1.1.2,1: .......... done [pkg.DaveG.ca] | `-- Installing libSM-1.2.6,1... [pkg.DaveG.ca] | `-- Extracting libSM-1.2.6,1: ........ done [pkg.DaveG.ca] `-- Extracting libXt-1.3.0,1: .......... done [pkg.DaveG.ca] Extracting libXpm-3.5.17_1: .......... done ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found ===> Returning to build of tcpview-1.0_8 ===> tcpview-1.0_8 depends on file: /usr/local/bin/ccache - not found ===> Installing existing package /packages/All/ccache-3.7.12_8.pkg [pkg.DaveG.ca] Installing ccache-3.7.12_8... [pkg.DaveG.ca] Extracting ccache-3.7.12_8: ......... done Create compiler links... create symlink for cc create symlink for cc (world) create symlink for c++ create symlink for c++ (world) create symlink for CC create symlink for CC (world) create symlink for clang create symlink for clang (world) create symlink for clang++ create symlink for clang++ (world) ===== Message from ccache-3.7.12_8: -- NOTE: Please read /usr/local/share/doc/ccache/ccache-howto-freebsd.txt for information on using ccache with FreeBSD ports and src. ===> tcpview-1.0_8 depends on file: /usr/local/bin/ccache - found ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on shared library: libXm.so.4 - not found ===> Installing existing package /packages/All/open-motif-2.3.8_8.pkg [pkg.DaveG.ca] Installing open-motif-2.3.8_8... [pkg.DaveG.ca] `-- Installing fontconfig-2.17.1,1... [pkg.DaveG.ca] | `-- Installing expat-2.7.3... [pkg.DaveG.ca] | `-- Extracting expat-2.7.3: .......... done [pkg.DaveG.ca] | `-- Installing freetype2-2.14.1... [pkg.DaveG.ca] | | `-- Installing brotli-1.2.0,1... [pkg.DaveG.ca] | | `-- Extracting brotli-1.2.0,1: .......... done [pkg.DaveG.ca] | | `-- Installing png-1.6.53... [pkg.DaveG.ca] | | `-- Extracting png-1.6.53: .......... done [pkg.DaveG.ca] | `-- Extracting freetype2-2.14.1: .......... done [pkg.DaveG.ca] `-- Extracting fontconfig-2.17.1,1: .......... done [pkg.DaveG.ca] `-- Installing jpeg-turbo-3.1.3... [pkg.DaveG.ca] `-- Extracting jpeg-turbo-3.1.3: .......... done [pkg.DaveG.ca] `-- Installing libXaw-1.0.16,2... [pkg.DaveG.ca] | `-- Installing libXmu-1.1.4,1... [pkg.DaveG.ca] | `-- Extracting libXmu-1.1.4,1: .......... done [pkg.DaveG.ca] `-- Extracting libXaw-1.0.16,2: .......... done [pkg.DaveG.ca] `-- Installing libXft-2.3.8... [pkg.DaveG.ca] | `-- Installing libXrender-0.9.12... [pkg.DaveG.ca] | `-- Extracting libXrender-0.9.12: ....... done [pkg.DaveG.ca] `-- Extracting libXft-2.3.8: .......... done [pkg.DaveG.ca] `-- Installing xbitmaps-1.1.3... [pkg.DaveG.ca] `-- Extracting xbitmaps-1.1.3: .......... done [pkg.DaveG.ca] Extracting open-motif-2.3.8_8: .......... done ==> Running trigger: fontconfig.ucl Running fc-cache to build fontconfig cache... ===== Message from freetype2-2.14.1: -- The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as the default, emulating a modern version of ClearType. This change inevitably leads to different rendering results, and you might change port's options to adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment variable). The environment variable "FREETYPE_PROPERTIES" can be used to control the driver properties. Example: FREETYPE_PROPERTIES=truetype:interpreter-version=35 \ cff:no-stem-darkening=1 \ autofitter:warping=1 This allows to select, say, the subpixel hinting mode at runtime for a given application. If LONG_PCF_NAMES port's option was enabled, the PCF family names may include the foundry and information whether they contain wide characters. For example, "Sony Fixed" or "Misc Fixed Wide", instead of "Fixed". This can be disabled at run time with using pcf:no-long-family-names property, if needed. Example: FREETYPE_PROPERTIES=pcf:no-long-family-names=1 How to recreate fontconfig cache with using such environment variable, if needed: # env FREETYPE_PROPERTIES=pcf:no-long-family-names=1 fc-cache -fsv The controllable properties are listed in the section "Controlling FreeType Modules" in the reference's table of contents (/usr/local/share/doc/freetype2/reference/index.html, if documentation was installed). ===> tcpview-1.0_8 depends on shared library: libXm.so.4 - found (/usr/local/lib/libXm.so.4) ===> Returning to build of tcpview-1.0_8 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Configuring for tcpview-1.0_8 =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building for tcpview-1.0_8 + mkdir 386-bsd-tcpdump + chmod ug+w 386-bsd-tcpdump + ln -s ../snmp.h ../filter.h ../motif.h ../tcpview.h ../ospf.h ../extract.h ../gencode.h ../ntp.h ../etherent.h ../nametoaddr.h ../etherproto.h ../savefile.h ../bootp.h ../ip_icmp.h ../addrtoname.h ../appletalk.h ../interface.h ../search.c ../gwtm2secs.c ../tcpslice.c ../tcplex.l ../tcpgram.y ../sniffer_file.c ../bpf_image.c ../bpf_filter.c ../bpf_dump.c ../optimize.c ../gencode.c ../inet.c ../etherent.c ../util.c ../savefile.c ../print-sunrpc.c ../print-fddi.c ../print-ospf.c ../print-egp.c ../print-null.c ../print-ntp.c ../print-snmp.c ../print-rip.c ../print-ppp.c ../print-sl.c ../nametoaddr.c ../print-icmp.c ../print-nfs.c ../print-bootp.c ../print-tftp.c ../print-domain.c ../print-atalk.c ../print-udp.c ../print-tcp.c ../print-arp.c ../print-ip.c ../print-ether.c ../hd.c ../addrtoname.c ../tcpdump.c 386-bsd-tcpdump + ln -s ../md-386.c 386-bsd-tcpdump/md.c + ln -s ../md-386.h 386-bsd-tcpdump/md.h + ln -s ../os-bsd.c 386-bsd-tcpdump/os.c + ln -s ../os-bsd.h 386-bsd-tcpdump/os.h + ln -s ../pcap-bpf.c 386-bsd-tcpdump/pcap.c + ln -s ../VERSION 386-bsd-tcpdump/VERSION + ln -s ../TCPVIEW_VERSION 386-bsd-tcpdump/TCPVIEW_VERSION + ln -s ../net 386-bsd-tcpdump/net + sed -e /^all:/d -e 's/^#386-bsd-tcpdump#//' Makefile + chmod ug+w 386-bsd-tcpdump/Makefile + make -C 386-bsd-tcpdump depend1 + rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + grep '^#include' tcpgram.y + grep '^#include' tcplex.l + touch version.h tokdefs.h ../mkdep -UCSLIP -DPPP -I.. -I/usr/local/include tcpdump.c addrtoname.c hd.c print-ether.c print-ip.c print-arp.c print-tcp.c print-udp.c print-atalk.c print-domain.c print-tftp.c print-bootp.c print-nfs.c print-icmp.c nametoaddr.c print-sl.c print-ppp.c print-rip.c print-snmp.c print-ntp.c print-null.c print-egp.c print-ospf.c print-fddi.c print-sunrpc.c savefile.c util.c etherent.c inet.c gencode.c optimize.c bpf_dump.c bpf_filter.c bpf_image.c sniffer_file.c tcpslice.c gwtm2secs.c search.c tcpgram.c tcplex.c rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + make -C 386-bsd-tcpdump tcpdump tcpslice cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcpdump.c In file included from tcpdump.c:40: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ tcpdump.c:97:3: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | (*lookup_printer(type))() | ^ tcpdump.c:108:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 108 | } | ^ tcpdump.c:110:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 110 | void | ^ tcpdump.c:110:1: note: change return type to 'int' 110 | void | ^~~~ | int tcpdump.c:140:2: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 140 | bzero(UserOpt,10*sizeof(int)); | ^ tcpdump.c:140:2: note: include the header or explicitly provide a declaration for 'bzero' tcpdump.c:143:15: warning: call to undeclared function 'getopt'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | while ((op = getopt(argc, argv, "ac:defF:i:lnNOpqr:Rs:Stvw:WxXYzZ0123456789")) != EOF) { | ^ tcpdump.c:144:6: warning: call to undeclared library function 'isdigit' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 144 | if(isdigit(op)) { | ^ tcpdump.c:144:6: note: include the header or explicitly provide a declaration for 'isdigit' tcpdump.c:153:10: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 153 | cnt = atoi(optarg); | ^ tcpdump.c:263:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | exit(1); | ^ tcpdump.c:263:4: note: include the header or explicitly provide a declaration for 'exit' tcpdump.c:276:3: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 276 | setuid(getuid()); | ^ tcpdump.c:276:10: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 276 | setuid(getuid()); | ^ tcpdump.c:279:22: warning: passing arguments to 'sf_read_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | err = sf_read_init(RFileName, &linktype, &thiszone, &snaplen, | ^ tcpdump.c:285:21: warning: passing arguments to 'sniff_rinit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | err = sniff_rinit(RFileName, &linktype, &thiszone, &snaplen, | ^ tcpdump.c:291:11: warning: passing arguments to 'sf_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | sf_err(err); | ^ tcpdump.c:303:11: warning: call to undeclared function 'initdevice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 303 | if_fd = initdevice(device, pflag, &linktype); | ^ tcpdump.c:304:3: warning: call to undeclared function 'lookup_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 304 | lookup_net(device, &localnet, &netmask); | ^ tcpdump.c:308:3: warning: call to undeclared function 'setuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | setuid(getuid()); | ^ tcpdump.c:308:10: warning: call to undeclared function 'getuid'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 308 | setuid(getuid()); | ^ tcpdump.c:312:23: warning: passing arguments to 'read_infile' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 312 | cmdbuf = read_infile(infile); | ^ tcpdump.c:314:21: warning: passing arguments to 'copy_argv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | cmdbuf = copy_argv(&argv[optind]); | ^ tcpdump.c:316:15: warning: passing arguments to 'parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | fcode = parse(cmdbuf, Oflag, linktype, netmask); | ^ tcpdump.c:318:11: warning: passing arguments to 'bpf_dump' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 318 | bpf_dump(fcode, dflag); | ^ tcpdump.c:321:17: warning: passing arguments to 'init_addrtoname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 321 | init_addrtoname(fflag, localnet, netmask); | ^ tcpdump.c:331:15: warning: passing arguments to 'sniff_winit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | sniff_winit(WFileName, linktype, thiszone, snaplen, | ^ tcpdump.c:335:17: warning: passing arguments to 'sf_write_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | sf_write_init(WFileName, linktype, thiszone, snaplen, | ^ tcpdump.c:341:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 341 | err = (*readit)(fcode, cnt, snaplen, printit); | ^ tcpdump.c:343:10: warning: passing arguments to 'sf_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | sf_err(err); | ^ tcpdump.c:347:3: warning: call to undeclared function 'readloop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 347 | readloop(cnt, if_fd, fcode, printit); | ^ tcpdump.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | main(argc, argv) | ^ tcpdump.c:358:3: warning: call to undeclared function 'wrapup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 358 | wrapup(if_fd); | ^ tcpdump.c:361:13: warning: passing arguments to 'sniff_end' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 361 | sniff_end("w"); | ^ tcpdump.c:376:22: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 376 | buffer = (char *)malloc(10000); | ^ tcpdump.c:376:22: note: include the header or explicitly provide a declaration for 'malloc' tcpdump.c:377:5: warning: passing arguments to 'hd' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 377 | hd( buffer, sp, length ); | ^ tcpdump.c:367:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 367 | default_print(sp, length) | ^ In file included from tcpdump.c:45: ./interface.h:80: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] 80 | extern void default_print(); | ^ 35 warnings generated. bison -y -d tcpgram.y tcpgram.y:92.13-14: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 92 | %type ID | ^~ tcpgram.y:93.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 93 | %type EID | ^~~ tcpgram.y:94.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type HID | ^~~ tcpgram.y:95.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type NUM | ^~~ mv y.tab.c tcpgram.c mv y.tab.h tokdefs.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcpgram.c y.tab.c:1353:16: warning: call to undeclared function 'yylex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1353 | yychar = yylex (); | ^ tcpgram.y:108:14: warning: passing arguments to 'finish_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | finish_parse((yyvsp[0].blk).b); | ^ tcpgram.y:115:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:116:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:117:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:118:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:125:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | { (yyval.blk).b = gen_ncode((u_long)(yyvsp[0].i), | ^ tcpgram.y:129:60: warning: passing arguments to 'gen_scode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | { (yyval.blk).b = gen_scode((yyvsp[0].s), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:130:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | { (yyval.blk).b = gen_ncode((yyvsp[0].h), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:131:60: warning: passing arguments to 'gen_ecode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | { (yyval.blk).b = gen_ecode((yyvsp[0].e), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:132:42: warning: passing arguments to 'gen_not' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:139:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:140:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:142:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | { (yyval.blk).b = gen_ncode((u_long)(yyvsp[0].i), | ^ tcpgram.y:147:42: warning: passing arguments to 'gen_not' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:157:67: warning: passing arguments to 'gen_proto_abbrev' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | { (yyval.blk).b = gen_proto_abbrev((yyvsp[0].i)); (yyval.blk).q = qerr; } | ^ tcpgram.y:158:63: warning: passing arguments to 'gen_relation' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | { (yyval.blk).b = gen_relation((yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0); | ^ tcpgram.y:160:63: warning: passing arguments to 'gen_relation' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | { (yyval.blk).b = gen_relation((yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1); | ^ tcpgram.y:192:63: warning: passing arguments to 'gen_broadcast' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | { (yyval.rblk) = gen_broadcast((yyvsp[-1].i)); } | ^ tcpgram.y:193:63: warning: passing arguments to 'gen_multicast' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | { (yyval.rblk) = gen_multicast((yyvsp[-1].i)); } | ^ tcpgram.y:194:58: warning: passing arguments to 'gen_less' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | { (yyval.rblk) = gen_less((yyvsp[0].i)); } | ^ tcpgram.y:195:61: warning: passing arguments to 'gen_greater' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | { (yyval.rblk) = gen_greater((yyvsp[0].i)); } | ^ tcpgram.y:196:60: warning: passing arguments to 'gen_byteop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | { (yyval.rblk) = gen_byteop((yyvsp[-1].i), (yyvsp[-2].i), (yyvsp[0].i)); } | ^ tcpgram.y:206:56: warning: passing arguments to 'gen_loadi' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | { (yyval.a) = gen_loadi((yyvsp[0].i)); } | ^ tcpgram.y:209:63: warning: passing arguments to 'gen_load' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | { (yyval.a) = gen_load((yyvsp[-3].i), (yyvsp[-1].a), 1); } | ^ tcpgram.y:210:63: warning: passing arguments to 'gen_load' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | { (yyval.a) = gen_load((yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].i)); } | ^ tcpgram.y:211:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | { (yyval.a) = gen_arth(BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:212:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | { (yyval.a) = gen_arth(BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:213:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | { (yyval.a) = gen_arth(BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:214:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | { (yyval.a) = gen_arth(BPF_DIV, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:215:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | { (yyval.a) = gen_arth(BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:216:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | { (yyval.a) = gen_arth(BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:217:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | { (yyval.a) = gen_arth(BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:218:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | { (yyval.a) = gen_arth(BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:219:62: warning: passing arguments to 'gen_neg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | { (yyval.a) = gen_neg((yyvsp[0].a)); } | ^ y.tab.c:1974:35: warning: too many arguments in call to 'yyerror' 1974 | yyerror (YY_("syntax error")); | ~~~~~~~ ^ y.tab.c:1974:15: warning: passing arguments to 'yyerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1974 | yyerror (YY_("syntax error")); | ^ y.tab.c:2085:35: warning: too many arguments in call to 'yyerror' 2085 | yyerror (YY_("memory exhausted")); | ~~~~~~~ ^ y.tab.c:2085:11: warning: passing arguments to 'yyerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2085 | yyerror (YY_("memory exhausted")); | ^ 39 warnings generated. lex tcplex.l mv -f lex.yy.c tcplex.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c tcplex.c tcplex.l:127:14: warning: call to undeclared function 'stoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | { yylval.i = stoi(yytext); return NUM; } | ^ tcplex.l:129:15: warning: call to undeclared function 'atoin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | yylval.h = atoin(yytext); return HID; | ^ tcplex.l:131:24: warning: passing arguments to 'ETHER_aton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | { yylval.e = ETHER_aton(yytext); return EID; } | ^ tcplex.l:132:3: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | { error("bogus ethernet address %s", yytext); } | ^ tcplex.l:135:3: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 135 | { error("illegal token: %s\n", yytext); } | ^ tcplex.l:136:3: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | { error("illegal char '%c'", *yytext); } | ^ tcplex.l:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | lex_init(buf) | ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c addrtoname.c addrtoname.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 78 | intoa(addr) | ^ In file included from addrtoname.c:42: ./addrtoname.h:67: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] 67 | extern char *intoa(); | ^ addrtoname.c:145:10: warning: cast to smaller integer type 'int' from 'u_char *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 145 | switch ((int)ap & 3) { | ^~~~~~~ addrtoname.c:182:30: warning: call to undeclared library function 'calloc' with type 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 182 | p->nxt = (struct hnamemem *)calloc(1, sizeof (*p)); | ^ addrtoname.c:182:30: note: include the header or explicitly provide a declaration for 'calloc' addrtoname.c:197:10: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 197 | (void)alarm(20); | ^ addrtoname.c:201:11: warning: a function 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] 201 | char *index(); | ^ addrtoname.c:203:17: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | u_int len = strlen(hp->h_name) + 1; | ^ addrtoname.c:203:17: note: include the header or explicitly provide a declaration for 'strlen' addrtoname.c:204:23: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 204 | p->name = (char *)malloc(len); | ^ addrtoname.c:204:23: note: include the header or explicitly provide a declaration for 'malloc' addrtoname.c:205:11: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 205 | (void)strcpy(p->name, hp->h_name); | ^ addrtoname.c:205:11: note: include the header or explicitly provide a declaration for 'strcpy' addrtoname.c:131:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | getname(ap) | ^ In file included from addrtoname.c:42: ./addrtoname.h:66: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] 66 | extern char *getname(); | ^ addrtoname.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | lookup_emem(ep) | ^ addrtoname.c:277:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 277 | if (j = *ep >> 4) | ~~^~~~~~~~~~ addrtoname.c:277:8: note: place parentheses around the assignment to silence this warning 277 | if (j = *ep >> 4) | ^ | ( ) addrtoname.c:277:8: note: use '==' to turn this assignment into an equality comparison 277 | if (j = *ep >> 4) | ^ | == addrtoname.c:282:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 282 | if (j = *ep >> 4) | ~~^~~~~~~~~~ addrtoname.c:282:9: note: place parentheses around the assignment to silence this warning 282 | if (j = *ep >> 4) | ^ | ( ) addrtoname.c:282:9: note: use '==' to turn this assignment into an equality comparison 282 | if (j = *ep >> 4) | ^ | == addrtoname.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | etheraddr_string(ep) | ^ In file included from addrtoname.c:42: ./addrtoname.h:62: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] 62 | extern char *etheraddr_string(); | ^ addrtoname.c:291:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | etherproto_string(port) | ^ In file included from addrtoname.c:42: ./addrtoname.h:63: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] 63 | extern char *etherproto_string(); | ^ addrtoname.c:316:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 316 | tcpport_string(port) | ^ In file included from addrtoname.c:42: ./addrtoname.h:64: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] 64 | extern char *tcpport_string(); | ^ addrtoname.c:335:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 335 | udpport_string(port) | ^ In file included from addrtoname.c:42: ./addrtoname.h:65: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] 65 | extern char *udpport_string(); | ^ addrtoname.c:361:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 361 | while (sv = getservent()) { | ~~~^~~~~~~~~~~~~~ addrtoname.c:361:12: note: place parentheses around the assignment to silence this warning 361 | while (sv = getservent()) { | ^ | ( ) addrtoname.c:361:12: note: use '==' to turn this assignment into an equality comparison 361 | while (sv = getservent()) { | ^ | == addrtoname.c:364:7: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 364 | if (strcmp(sv->s_proto, "tcp") == 0) | ^ addrtoname.c:364:7: note: include the header or explicitly provide a declaration for 'strcmp' addrtoname.c:449:27: warning: passing arguments to 'next_etherent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 449 | while (ep = next_etherent(fp)) { | ^ addrtoname.c:449:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 449 | while (ep = next_etherent(fp)) { | ~~~^~~~~~~~~~~~~~~~~~~ addrtoname.c:449:12: note: place parentheses around the assignment to silence this warning 449 | while (ep = next_etherent(fp)) { | ^ | ( ) addrtoname.c:449:12: note: use '==' to turn this assignment into an equality comparison 449 | while (ep = next_etherent(fp)) { | ^ | == addrtoname.c:464:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 464 | init_addrtoname(fflag, localnet, mask) | ^ In file included from addrtoname.c:42: ./addrtoname.h:69: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] 69 | extern void init_addrtoname(); | ^ 28 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ether.c print-ether.c:57:11: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 57 | (void)printf("%s %s %d: ", | ^ print-ether.c:57:11: note: include the header or explicitly provide a declaration for 'printf' print-ether.c:58:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | etheraddr_string(ESRC(ep)), | ^ print-ether.c:59:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 59 | etheraddr_string(EDST(ep)), | ^ print-ether.c:63:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | etheraddr_string(ESRC(ep)), | ^ print-ether.c:64:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 64 | etheraddr_string(EDST(ep)), | ^ print-ether.c:65:21: warning: passing arguments to 'etherproto_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | etherproto_string(ep->ether_type), | ^ print-ether.c:52:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | static inline void ether_print(ep, length) | ^ print-ether.c:84:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | ts_print(tvp); | ^ print-ether.c:118:13: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | ip_print((struct ip *)p, length); | ^ print-ether.c:122:14: warning: passing arguments to 'arp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | arp_print((struct ether_arp *)p, length, caplen - sizeof(*ep)); | ^ print-ether.c:128:20: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | default_print((u_short *)p, caplen - sizeof(*ep)); | ^ print-ether.c:132:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | default_print((u_short *)p, caplen - sizeof(*ep)); | ^ print-ether.c:136:16: warning: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 136 | if( !zflag ) putchar('\n'); | ^ print-ether.c:75:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | void ether_if_print(p, tvp, length, caplen) | ^ In file included from print-ether.c:46: ./interface.h: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 | extern void ether_if_print(); | ^ 15 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ip.c print-ip.c:54:15: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 54 | (void)printf("%s > %s: ", | ^ print-ip.c:54:15: note: include the header or explicitly provide a declaration for 'printf' print-ip.c:55:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:56:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:66:32: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | (void)printf(" [gaddr %s]", ipaddr_string(&cp[4])); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:71:34: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | (void)printf("igmp report %s", ipaddr_string(&cp[4])); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:76:30: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:76:30: warning: data argument not used by format string [-Wformat-extra-args] 76 | (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); | ~~~~~~~~~~~~ ^ ./addrtoname.h:72:26: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | igmp_print(cp, len, ip) | ^ print-ip.c:117:3: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | bcopy((char *)&cp[len], (char *)&addr, sizeof(addr)); | ^ print-ip.c:117:3: note: include the header or explicitly provide a declaration for 'bcopy' print-ip.c:118:24: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | printf("%s%s", type, ipaddr_string(&addr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | ip_printroute(type, cp, length) | ^ print-ip.c:131:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | static void ip_optprint(cp, length) | ^ print-ip.c:206:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] 206 | if ((int)ip & (sizeof(long)-1)) { | ^~~~~~~ print-ip.c:211:24: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 211 | abuf = (u_char *)malloc(snaplen); | ^ print-ip.c:211:24: note: include the header or explicitly provide a declaration for 'malloc' print-ip.c:247:16: warning: passing arguments to 'tcp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | tcp_print((struct tcphdr *)cp, len, ip); | ^ print-ip.c:250:16: warning: passing arguments to 'udp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | udp_print((struct udphdr *)cp, len, ip); | ^ print-ip.c:253:17: warning: passing arguments to 'icmp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | icmp_print((struct icmp *)cp, ip); | ^ print-ip.c:256:32: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:257:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:262:16: warning: passing arguments to 'egp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | egp_print((struct egp_packet *)cp, len, ip); | ^ print-ip.c:268:7: warning: call to undeclared function 'ospf_print'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 268 | ospf_print((struct ospfhdr *)cp, len, ip); | ^ print-ip.c:278:32: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:279:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:295:32: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:296:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ip.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | void ip_print(ip, length) | ^ In file included from print-ip.c:43: ./interface.h:76: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] 76 | extern void ip_print(); | ^ 27 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-arp.c print-arp.c:48:5: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | printf("[|arp]"); | ^ print-arp.c:48:5: note: include the header or explicitly provide a declaration for 'printf' print-arp.c:53:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | default_print((u_short *)ap, length); | ^ print-arp.c:73:4: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | ipaddr_string(TPA(ap)), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-arp.c:74:4: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | ipaddr_string(SPA(ap))); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-arp.c:79:4: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | ipaddr_string(SPA(ap)), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-arp.c:80:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | etheraddr_string(SHA(ap))); | ^ print-arp.c:85:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | etheraddr_string(THA(ap)), | ^ print-arp.c:86:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | etheraddr_string(SHA(ap))); | ^ print-arp.c:91:20: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 91 | etheraddr_string(THA(ap)), | ^ print-arp.c:92:4: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | ipaddr_string(TPA(ap))); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-arp.c:97:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | default_print((u_short *)ap, caplen); | ^ print-arp.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | void arp_print(ap, length, caplen) | ^ In file included from print-arp.c:39: ./interface.h:75: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] 75 | extern void arp_print(); | ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-tcp.c print-tcp.c:148:16: warning: passing arguments to 'assemble' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | assemble(seq, (u_long)len, data, (int)tp->th_flags&TH_SYN, ip->ip_src ); | ^ print-tcp.c:151:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | default_print(data, len); | ^ print-tcp.c:163:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | ipaddr_string(&ip->ip_src), tcpport_string(sport), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-tcp.c:163:45: warning: passing arguments to 'tcpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | ipaddr_string(&ip->ip_src), tcpport_string(sport), | ^ print-tcp.c:164:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | ipaddr_string(&ip->ip_dst), tcpport_string(dport)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-tcp.c:164:45: warning: passing arguments to 'tcpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | ipaddr_string(&ip->ip_dst), tcpport_string(dport)); | ^ print-tcp.c:206:9: warning: call to undeclared library function 'bcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 206 | if (!bcmp((char *)&tha, (char *)&th->addr, | ^ print-tcp.c:206:9: note: include the header or explicitly provide a declaration for 'bcmp' print-tcp.c:214:6: warning: call to undeclared library function 'calloc' with type 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | calloc(1, sizeof (*th)); | ^ print-tcp.c:214:6: note: include the header or explicitly provide a declaration for 'calloc' print-tcp.c:300:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | bcopy((char *)cp + 1, (char *)&mss, | ^ print-tcp.c:300:5: note: include the header or explicitly provide a declaration for 'bcopy' print-tcp.c:386:16: warning: passing arguments to 'assemble' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | assemble(seq, (u_long)length, data, (int)tp->th_flags&TH_SYN, ip->ip_src ); | ^ print-tcp.c:389:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | default_print(data, length); | ^ print-tcp.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | tcp_print(tp, length, ip) | ^ In file included from print-tcp.c:73: ./interface.h:77: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] 77 | extern void tcp_print(); | ^ print-tcp.c:452:15: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | default_print(data,len); | ^ print-tcp.c:453:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 453 | else { | ^ print-tcp.c:477:15: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | default_print(data,len); | ^ print-tcp.c:478:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 478 | else { | ^ print-tcp.c:485:23: warning: passing arguments to 'check_frags' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | while (check_frags(i)) ; | ^ print-tcp.c:492:30: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | t = (struct tcp_frag *)malloc(sizeof(struct tcp_frag)); | ^ print-tcp.c:492:30: note: include the header or explicitly provide a declaration for 'malloc' print-tcp.c:415:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | static void assemble( seq, len, data, syn, srcx ) | ^ print-tcp.c:112: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] 112 | static void assemble(); | ^ print-tcp.c:521:17: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | default_print(t->data,t->len); | ^ print-tcp.c:522:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 522 | else { | ^ print-tcp.c:534:7: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 534 | free(t->data); | ^ print-tcp.c:534:7: note: include the header or explicitly provide a declaration for 'free' print-tcp.c:506:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | static int check_frags(i) | ^ print-tcp.c:413: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] 413 | static int check_frags(); | ^ 26 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-udp.c print-udp.c:132:3: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 132 | printf("[|udp]"); | ^ print-udp.c:132:3: note: include the header or explicitly provide a declaration for 'printf' print-udp.c:152:16: warning: passing arguments to 'nfsreq_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | nfsreq_print(rp, length, ip); | ^ print-udp.c:156:18: warning: passing arguments to 'nfsreply_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | nfsreply_print(rp, length, ip); | ^ print-udp.c:161:4: warning: call to undeclared function 'sunrpcrequest_print'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | sunrpcrequest_print(rp, length, ip); | ^ print-udp.c:167:13: warning: passing arguments to 'ddp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | ddp_print((struct atDDP *)(&cp[3]), length - 3); | ^ print-udp.c:172:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | ipaddr_string(&ip->ip_src), udpport_string(sport), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-udp.c:172:45: warning: passing arguments to 'udpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | ipaddr_string(&ip->ip_src), udpport_string(sport), | ^ print-udp.c:173:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | ipaddr_string(&ip->ip_dst), udpport_string(dport)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-udp.c:173:45: warning: passing arguments to 'udpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | ipaddr_string(&ip->ip_dst), udpport_string(dport)); | ^ print-udp.c:178:12: warning: passing arguments to 'ns_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | ns_print((HEADER *)(up + 1), length); | ^ print-udp.c:180:14: warning: passing arguments to 'tftp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | tftp_print((struct tftphdr *)(up + 1), length); | ^ print-udp.c:182:15: warning: passing arguments to 'bootp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | bootp_print((struct bootp *)(up + 1), length, | ^ print-udp.c:185:13: warning: passing arguments to 'rip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | rip_print((u_char *)(up + 1), length); | ^ print-udp.c:187:14: warning: passing arguments to 'snmp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | snmp_print((u_char *)(up + 1), length); | ^ print-udp.c:189:13: warning: passing arguments to 'ntp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | ntp_print((struct ntpdata *)(up + 1), length); | ^ print-udp.c:191:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 191 | (void)printf(" udp %d", ulen - sizeof(*up)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lu print-udp.c:194:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 194 | (void)printf(" udp %d", ulen - sizeof(*up)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lu print-udp.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | udp_print(up, length, ip) | ^ In file included from print-udp.c:52: ./interface.h:78: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] 78 | extern void udp_print(); | ^ 19 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-atalk.c print-atalk.c:75:21: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | ataddr_string(EXTRACT_SHORT(&dp->srcNet), dp->srcNode), | ^ print-atalk.c:77:21: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | ataddr_string(EXTRACT_SHORT(&dp->dstNet), dp->dstNode), | ^ print-atalk.c:99:12: warning: passing arguments to 'nbp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | nbp_print((struct atNBP *)((u_char *)dp + ddpSize), | ^ print-atalk.c:103:12: warning: passing arguments to 'atp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | atp_print((struct atATP *)((u_char *)dp + ddpSize), length); | ^ print-atalk.c:118:26: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 118 | (void)printf(" at-#%d %d", length); | ~^ print-atalk.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | ddp_print(dp, length) | ^ In file included from print-atalk.c:49: ./interface.h:86: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] 86 | extern void ddp_print(); | ^ print-atalk.c:144:19: warning: passing arguments to 'atp_bitmap_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | atp_bitmap_print(ap->bitmap); | ^ print-atalk.c:182:19: warning: passing arguments to 'atp_bitmap_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | atp_bitmap_print(ap->bitmap); | ^ print-atalk.c:214:25: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 214 | (void)printf(" 0x%x", data); | ~~ ^~~~ | %lx print-atalk.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | atp_print(ap, length) | ^ print-atalk.c:58: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] 58 | static void atp_print(); | ^ print-atalk.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | atp_bitmap_print(bm) | ^ print-atalk.c:60: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] 60 | static void atp_bitmap_print(); | ^ print-atalk.c:282:23: warning: passing arguments to 'nbp_name_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | (void)nbp_name_print(tp, ep); | ^ print-atalk.c:295:23: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | ataddr_string(EXTRACT_SHORT(&tp->net), | ^ print-atalk.c:305:24: warning: passing arguments to 'nbp_tuple_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | tp = nbp_tuple_print(tp, ep, dp); | ^ print-atalk.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | nbp_print(np, length, dp) | ^ print-atalk.c:59: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] 59 | static void nbp_print(); | ^ print-atalk.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | print_cstring(cp, ep) | ^ print-atalk.c:356:22: warning: passing arguments to 'nbp_name_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | tpn = nbp_name_print(tp, ep); | ^ print-atalk.c:370:22: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | ataddr_string(EXTRACT_SHORT(&tp->net), tp->node)); | ^ print-atalk.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | nbp_tuple_print(tp, ep, dp) | ^ print-atalk.c:56:27: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | static struct atNBPtuple *nbp_tuple_print(); | ^ print-atalk.c:386:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 386 | if (cp = print_cstring(cp, ep)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:386:9: note: place parentheses around the assignment to silence this warning 386 | if (cp = print_cstring(cp, ep)) { | ^ | ( ) print-atalk.c:386:9: note: use '==' to turn this assignment into an equality comparison 386 | if (cp = print_cstring(cp, ep)) { | ^ | == print-atalk.c:389:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 389 | if (cp = print_cstring(cp, ep)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:389:10: note: place parentheses around the assignment to silence this warning 389 | if (cp = print_cstring(cp, ep)) { | ^ | ( ) print-atalk.c:389:10: note: use '==' to turn this assignment into an equality comparison 389 | if (cp = print_cstring(cp, ep)) { | ^ | == print-atalk.c:392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 392 | if (cp = print_cstring(cp, ep)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:392:11: note: place parentheses around the assignment to silence this warning 392 | if (cp = print_cstring(cp, ep)) | ^ | ( ) print-atalk.c:392:11: note: use '==' to turn this assignment into an equality comparison 392 | if (cp = print_cstring(cp, ep)) | ^ | == print-atalk.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | nbp_name_print(tp, ep) | ^ print-atalk.c:57:27: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static struct atNBPtuple *nbp_name_print(); | ^ print-atalk.c:449:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 449 | i3 = strlen(nambuf) + 1; | ^ print-atalk.c:449:9: note: include the header or explicitly provide a declaration for 'strlen' print-atalk.c:450:15: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 450 | tp->name = strcpy(malloc((unsigned) i3), nambuf); | ^ print-atalk.c:450:15: note: include the header or explicitly provide a declaration for 'strcpy' print-atalk.c:411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | ataddr_string(atnet, athost) | ^ print-atalk.c:55: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] 55 | static char *ataddr_string(); | ^ 33 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-domain.c print-domain.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | ns_nskip(cp) | ^ print-domain.c:88:2: warning: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 88 | putchar(' '); | ^ print-domain.c:89:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 89 | if (i = *cp++) | ~~^~~~~~~ print-domain.c:89:8: note: place parentheses around the assignment to silence this warning 89 | if (i = *cp++) | ^ | ( ) print-domain.c:89:8: note: use '==' to turn this assignment into an equality comparison 89 | if (i = *cp++) | ^ | == print-domain.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | ns_nprint(cp, bp, ep) | ^ print-domain.c:125:12: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 125 | case T_A: printf(" A"); break; | ^ print-domain.c:125:12: note: include the header or explicitly provide a declaration for 'printf' print-domain.c:156:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 156 | else | ^ print-domain.c:159:2: warning: call to undeclared function 'putchar'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 159 | putchar('?'); | ^ print-domain.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | ns_qprint(cp, bp, ep) | ^ print-domain.c:186:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 186 | else | ^ print-domain.c:192:28: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | case T_A: printf(" A %s", ipaddr_string(cp)); break; | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-domain.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | ns_rprint(cp, bp, ep) | ^ print-domain.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | ns_print(np, length) | ^ In file included from print-domain.c:46: ./interface.h:85: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] 85 | extern void ns_print(); | ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-tftp.c print-tftp.c:62:21: warning: '/*' within block comment [-Wcomment] 62 | EBADOP, "EBADOP", /* illegal TFTP operation */ | ^ print-tftp.c:91:11: warning: call to undeclared function 'ntohs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | opcode = ntohs(tp->th_opcode); | ^ print-tftp.c:109:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | if (printfn((u_char *)tp->th_stuff, ep)) { | ^ print-tftp.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | tftp_print(tp, length) | ^ In file included from print-tftp.c:37: ./interface.h:88: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] 88 | extern void tftp_print(); | ^ 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-bootp.c print-bootp.c:108:23: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 108 | printf(" xid:0x%x", xid); | ~~ ^~~ | %lx print-bootp.c:115:19: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | printf(" C:%s", ipaddr_string(&bp->bp_ciaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:120:19: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | printf(" Y:%s", ipaddr_string(&bp->bp_yiaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:125:19: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | printf(" S:%s", ipaddr_string(&bp->bp_siaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:130:19: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | printf(" G:%s", ipaddr_string(&bp->bp_giaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:146:40: warning: passing arguments to 'etheraddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | printf(" ether %s", etheraddr_string(bp->bp_chaddr)); | ^ print-bootp.c:152:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | if (printfn(bp->bp_sname, ep)) { | ^ print-bootp.c:160:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | if (printfn(bp->bp_file, ep)) { | ^ print-bootp.c:173:16: warning: passing arguments to 'rfc1048_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | rfc1048_print(bp->bp_vend, sizeof(bp->bp_vend)); | ^ print-bootp.c:175:12: warning: passing arguments to 'cmu_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | cmu_print(bp->bp_vend, sizeof(bp->bp_vend)); | ^ print-bootp.c:180:20: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 180 | printf("-#0x%x", ul); | ~~ ^~ | %lx print-bootp.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | bootp_print(bp, length, sport, dport) | ^ In file included from print-bootp.c:43: ./interface.h:89: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] 89 | extern void bootp_print(); | ^ print-bootp.c:219:21: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | printf(" SM:%s", ipaddr_string(&ul)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:225:21: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | printf(" TS:%s", ipaddr_string(&ul)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:231:20: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | printf(" G:%s", ipaddr_string(&ul)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-bootp.c:247:21: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 247 | printf(":0x%x", ul); | ~~ ^~ | %lx print-bootp.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | rfc1048_print(bp, length) | ^ print-bootp.c:47:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 47 | void rfc1048_print(); | ^ print-bootp.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | cmu_print(bp, length) | ^ print-bootp.c:48:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 48 | void cmu_print(); | ^ 21 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-nfs.c print-nfs.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | bswap(bp, n) | ^ print-nfs.c:110:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:111:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:117:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:119:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | nfsreply_print(rp, length, ip) | ^ In file included from print-nfs.c:53: ./interface.h:84: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] 84 | extern void nfsreply_print(); | ^ print-nfs.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 | parsereq(rp, length) | ^ print-nfs.c:162:14: warning: passing arguments to 'nfs_printfh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | nfs_printfh(dp); | ^ print-nfs.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | parsefh(dp) | ^ print-nfs.c:192:13: warning: passing arguments to 'nfs_printfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | nfs_printfn(cp, len); | ^ print-nfs.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | parsefn(dp) | ^ print-nfs.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | parsefhn(dp) | ^ print-nfs.c:229:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:231:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:235:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:237:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-nfs.c:290:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:290:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:290:39: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:315:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:315:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:316:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), 316 | ntohl(dp[1]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:316:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), 316 | ntohl(dp[1]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:380:31: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 380 | printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); | ~~~ ^~~~~~~~~~~~ | %u /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:380:45: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 380 | printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); | ~~~ ^~~~~~~~~~~~ | %u /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:392:23: warning: format specifies type 'unsigned long' but the argument has type 'rpcproc_t' (aka 'unsigned int') [-Wformat] 392 | printf(" proc-%lu", rp->rm_call.cb_proc); | ~~~ ^~~~~~~~~~~~~~~~~~~ | %u print-nfs.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | nfsreq_print(rp, length, ip) | ^ In file included from print-nfs.c:53: ./interface.h:83: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] 83 | extern void nfsreq_print(); | ^ print-nfs.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | nfs_printfh(dp) | ^ print-nfs.c:76: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] 76 | static void nfs_printfh(); | ^ print-nfs.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | nfs_printfn(cp, len) | ^ print-nfs.c:77: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] 77 | static void nfs_printfn(); | ^ 33 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-icmp.c print-icmp.c:71:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:72:3: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:73:2: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | strcpy(str, "[?]"); | ^ print-icmp.c:73:2: note: include the header or explicitly provide a declaration for 'strcpy' print-icmp.c:85:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:89:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:94:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:107:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | ipaddr_string(&oip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:108:20: warning: passing arguments to 'tcpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | tcpport_string(dport)); | ^ print-icmp.c:113:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | ipaddr_string(&oip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:114:20: warning: passing arguments to 'udpport_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | udpport_string(dport)); | ^ print-icmp.c:119:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ipaddr_string(&oip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:126:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:131:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:143:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:144:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | ipaddr_string(&dp->icmp_gwaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:148:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:149:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | ipaddr_string(&dp->icmp_gwaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:153:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:154:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | ipaddr_string(&dp->icmp_gwaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:158:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:159:12: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | ipaddr_string(&dp->icmp_gwaddr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-icmp.c:172:10: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | inet_ntoa(dp->icmp_adv[0].addr), | ^ print-icmp.c:172:10: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 170 | (void)sprintf(buf, "disc. adv.: [num = %d, lifetime = %d] %s/%d...", | ~~ | %d 171 | dp->icmp_num, ntohs(dp->icmp_lifetime), 172 | inet_ntoa(dp->icmp_adv[0].addr), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-icmp.c:216:48: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 216 | (void)sprintf(buf, "address mask is 0x%08x", dp->icmp_mask); | ~~~~ ^~~~~~~~~~~~~ | %08lx print-icmp.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | icmp_print(dp, ip) | ^ In file included from print-icmp.c:49: ./interface.h:79: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] 79 | extern void icmp_print(); | ^ 26 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c nametoaddr.c nametoaddr.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (hp = gethostbyname(name)) { | ~~~^~~~~~~~~~~~~~~~~~~~~ nametoaddr.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (hp = gethostbyname(name)) { | ^ | ( ) nametoaddr.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (hp = gethostbyname(name)) { | ^ | == nametoaddr.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | s_nametoaddr(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:26: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] 26 | extern u_long **s_nametoaddr(); | ^ nametoaddr.c:90:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 90 | if (np = getnetbyname(name)) | ~~~^~~~~~~~~~~~~~~~~~~~ nametoaddr.c:90:9: note: place parentheses around the assignment to silence this warning 90 | if (np = getnetbyname(name)) | ^ | ( ) nametoaddr.c:90:9: note: use '==' to turn this assignment into an equality comparison 90 | if (np = getnetbyname(name)) | ^ | == nametoaddr.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | s_nametonetaddr(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:27: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] 27 | extern u_long s_nametonetaddr(); | ^ nametoaddr.c:101:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 101 | s_nametoport(name, port, proto) | ^ | int nametoaddr.c:117:25: warning: passing arguments to 's_nametoproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | *proto = s_nametoproto(sp->s_proto); | ^ nametoaddr.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | s_nametoport(name, port, proto) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:29: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] 29 | extern int s_nametoport(); | ^ nametoaddr.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | s_nametoproto(str) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:30: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] 30 | extern int s_nametoproto(); | ^ nametoaddr.c:178:7: warning: call to undeclared library function 'strcasecmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | if (strcasecmp(p->s, s) == 0) | ^ nametoaddr.c:178:7: note: include the header or explicitly provide a declaration for 'strcasecmp' nametoaddr.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | s_nametoeproto(s) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:31:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | extern int s_nametoeproto(); | ^ nametoaddr.c:187:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 187 | xdtoi(c) | ^ 188 | { nametoaddr.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | xdtoi(c) | ^ nametoaddr.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | atoin(s) | ^ nametoaddr.c:229:21: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | e = ep = (u_char *)malloc(6); | ^ nametoaddr.c:229:21: note: include the header or explicitly provide a declaration for 'malloc' nametoaddr.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | ETHER_aton(s) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:34: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] 34 | extern u_char *ETHER_aton(); | ^ nametoaddr.c:260:28: warning: passing arguments to 'next_etherent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | while (ep = next_etherent(fp)) { | ^ nametoaddr.c:260:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 260 | while (ep = next_etherent(fp)) { | ~~~^~~~~~~~~~~~~~~~~~~ nametoaddr.c:260:13: note: place parentheses around the assignment to silence this warning 260 | while (ep = next_etherent(fp)) { | ^ | ( ) nametoaddr.c:260:13: note: use '==' to turn this assignment into an equality comparison 260 | while (ep = next_etherent(fp)) { | ^ | == nametoaddr.c:261:8: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 261 | if (strcmp(ep->name, name) == 0) { | ^ nametoaddr.c:261:8: note: include the header or explicitly provide a declaration for 'strcmp' nametoaddr.c:263:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | bcopy(ep->addr, ap, 6); | ^ nametoaddr.c:263:5: note: include the header or explicitly provide a declaration for 'bcopy' nametoaddr.c:247:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | ETHER_hostton(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:33: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] 33 | extern u_char *ETHER_hostton(); | ^ 27 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-sl.c print-sl.c:247:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | error("not configured for slip"); | ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ppp.c In file included from print-ppp.c:36: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ print-ppp.c:68:10: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | ts_print(tvp); | ^ print-ppp.c:89:10: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ip_print(ip, length); | ^ print-ppp.c:92:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | default_print((u_short *)ip, caplen - PPP_HDRLEN); | ^ print-ppp.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | ppp_if_print(p, tvp, length, caplen) | ^ In file included from print-ppp.c:53: ./interface.h:92: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] 92 | extern void ppp_if_print(); | ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-rip.c print-rip.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | rip_print(dat, length) | ^ In file included from print-rip.c:44: ./interface.h:87: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] 87 | extern void rip_print(); | ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-snmp.c print-snmp.c:185:1: warning: 'static' ignored on this declaration [-Wmissing-declarations] 185 | static struct tree { | ^ print-snmp.c:273:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | char *DECODE_ErrorStatus( e ) | ^ In file included from print-snmp.c:58: ./snmp.h:10: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] 10 | char *DECODE_ErrorStatus(); | ^ print-snmp.c:282:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | char *DECODE_GenericTrap( e ) | ^ In file included from print-snmp.c:58: ./snmp.h:11: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] 11 | char *DECODE_GenericTrap(); | ^ print-snmp.c:380:36: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 380 | printf("[len%dasnlen); | ~~ ^~~~~~~~~~~~ | %lu print-snmp.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | asn1_parse(p, len, elem) | ^ In file included from print-snmp.c:58: ./snmp.h:46:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | int asn1_parse(); | ^ print-snmp.c:541:7: warning: call to undeclared library function 'memcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | if (!memcmp(a->oid, p, strlen(a->oid))) { | ^ print-snmp.c:541:7: note: include the header or explicitly provide a declaration for 'memcmp' print-snmp.c:541:25: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | if (!memcmp(a->oid, p, strlen(a->oid))) { | ^ print-snmp.c:541:25: note: include the header or explicitly provide a declaration for 'strlen' print-snmp.c:564:2: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 564 | OBJ_PRINT(o/OIDMUX, first); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:564:2: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:564:2: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:567:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 567 | OBJ_PRINT(o, first); | ^~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:567:7: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:567:7: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:590:13: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 590 | (void)printfn(p, p+asnlen); | ^ print-snmp.c:600:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 600 | printf("Seq(%d)", elem->asnlen); | ~~ ^~~~~~~~~~~~ | %lu print-snmp.c:618:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 617 | printf("%s(%d)", | ~~ | %lu 618 | Class[CONTEXT].Id[elem->id], elem->asnlen); | ^~~~~~~~~~~~ print-snmp.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | void asn1_print(elem) | ^ In file included from print-snmp.c:58: ./snmp.h:47:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 47 | void asn1_print(); | ^ print-snmp.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | varbind_print (pduid, np, length, error) | ^ print-snmp.c:833:33: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 833 | printf("[errorIndex(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:837:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 836 | printf("[errorIndex(%d) w/o errorStatus]", | ~~ | %ld 837 | elem.data.integer); | ^~~~~~~~~~~~~~~~~ print-snmp.c:839:18: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 839 | printf("@%d", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | snmppdu_print (pduid, np, length) | ^ print-snmp.c:916:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 916 | printf("[specific-trap(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:918:19: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 918 | printf(" s=%d", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | trap_print (np, length) | ^ print-snmp.c:987:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 987 | printf("[version(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:1002:6: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1002 | if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) | ^ print-snmp.c:1002:6: note: include the header or explicitly provide a declaration for 'strncmp' print-snmp.c:1002:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1002 | if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) | ^~~~~~~~~~~~~ print-snmp.c:1004:15: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 1004 | printf("C=%.*s ", elem.asnlen, elem.data.str); | ~~^~ ~~~~~~~~~~~ print-snmp.c:944:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | snmp_print (np, length) | ^ In file included from print-snmp.c:56: ./interface.h:90: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] 90 | extern void snmp_print(); | ^ print-snmp.c:1042:16: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | file = getenv("MIBFILE"); | ^ print-snmp.c:1044:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | Mib = read_mib(file); | ^ print-snmp.c:1046:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | Mib = read_mib("mib.txt"); | ^ print-snmp.c:1048:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | Mib = read_mib("/usr/local/lib/tcpview/mib/mib.txt"); | ^ print-snmp.c:1051:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1051 | exit(2); | ^ print-snmp.c:1051:5: note: include the header or explicitly provide a declaration for 'exit' print-snmp.c:1055:21: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1055 | a->node = lookup(a->name); | ^ print-snmp.c:1077:14: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | iso = enter("iso"); | ^ print-snmp.c:1088:5: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1088 | strncpy(name,buf,sizeof(name)); | ^ print-snmp.c:1088:5: note: include the header or explicitly provide a declaration for 'strncpy' print-snmp.c:1096:20: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1096 | parent = lookup(stp); | ^ print-snmp.c:1105:16: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | hp = lookup(name); | ^ print-snmp.c:1107:17: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | hp = enter(name); | ^ print-snmp.c:1110:23: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1110 | if(hp->subid==atoi(stp)) | ^ print-snmp.c:1117:19: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1117 | hp = enter(name); | ^ print-snmp.c:1119:17: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1119 | hp->subid = atoi(stp); | ^ print-snmp.c:1120:14: warning: passing arguments to 'add_child' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | add_child(parent,hp); | ^ print-snmp.c:1128:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1128 | if(!strcmp(stp,"INTEGER")) | ^ print-snmp.c:1128:9: note: include the header or explicitly provide a declaration for 'strcmp' print-snmp.c:1063:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1063 | static struct tree *read_mib(filename) | ^ print-snmp.c:197:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 197 | static struct tree *read_mib(); | ^ print-snmp.c:1165:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | static struct tree *lookup(name) | ^ print-snmp.c:199:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 199 | static struct tree *lookup(); | ^ print-snmp.c:1192:23: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1192 | hp = (struct tree *)malloc(sizeof(struct tree)); | ^ print-snmp.c:1192:23: note: include the header or explicitly provide a declaration for 'malloc' print-snmp.c:1195:3: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1195 | strcpy(hp->label,name); | ^ print-snmp.c:1195:3: note: include the header or explicitly provide a declaration for 'strcpy' print-snmp.c:1185:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | static struct tree *enter(name) | ^ print-snmp.c:198:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 198 | static struct tree *enter(); | ^ print-snmp.c:1221:84: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 1221 | err_print("Warning: node %s has 2 children with subid %d!\n",parent->label,child->subid); | ~~ ^~~~~~~~~~~~ | %lu print-snmp.c:1203:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | static int add_child(parent, child) | ^ print-snmp.c:200: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] 200 | static int add_child(); | ^ 58 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ntp.c print-ntp.c:143:2: warning: call to undeclared function 'p_sfix'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | p_sfix(&bp->distance); | ^ print-ntp.c:156:3: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 156 | strncpy(rclock, (char *)&(bp->refid), 4); | ^ print-ntp.c:156:3: note: include the header or explicitly provide a declaration for 'strncpy' print-ntp.c:162:27: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | printf("%s INFO_QUERY", ipaddr_string(&(bp->refid))); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ntp.c:167:27: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | printf("%s INFO_REPLY", ipaddr_string(&(bp->refid))); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ntp.c:172:16: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | printf("%s", ipaddr_string(&(bp->refid))); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ntp.c:178:2: warning: call to undeclared function 'p_ntp_time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | p_ntp_time(&(bp->reftime)); | ^ print-ntp.c:186:2: warning: call to undeclared function 'p_ntp_delta'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | p_ntp_delta(&(bp->org), &(bp->rec)); | ^ print-ntp.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | ntp_print(bp, length) | ^ In file included from print-ntp.c:46: ./interface.h:82: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] 82 | extern void ntp_print(); | ^ print-ntp.c:199:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 199 | p_sfix(sfp) | ^ | int print-ntp.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ntp.c:211:1: warning: non-void function does not return a value [-Wreturn-type] 211 | } | ^ print-ntp.c:215:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 215 | p_ntp_time(lfp) | ^ | int print-ntp.c:230:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 230 | printf("%lu.%09d", i, f); | ~~~~ ^ | %09lu print-ntp.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | p_ntp_time(lfp) | ^ print-ntp.c:231:1: warning: non-void function does not return a value [-Wreturn-type] 231 | } | ^ print-ntp.c:234:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 234 | p_ntp_delta(olfp, lfp) | ^ | int print-ntp.c:280:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 280 | printf("%d.%09d", i, f); | ~~ ^ | %ld print-ntp.c:280:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 280 | printf("%d.%09d", i, f); | ~~~~ ^ | %09lu print-ntp.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | p_ntp_delta(olfp, lfp) | ^ print-ntp.c:281:1: warning: non-void function does not return a value [-Wreturn-type] 281 | } | ^ 21 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-null.c In file included from print-null.c:31: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ print-null.c:67:2: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | bcopy(p, &family, sizeof(family)); | ^ print-null.c:67:2: note: include the header or explicitly provide a declaration for 'bcopy' print-null.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | null_print(p, ip, length) | ^ print-null.c:106:10: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | ts_print(tvp); | ^ print-null.c:123:10: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | ip_print(ip, length); | ^ print-null.c:126:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | default_print((u_short *)ip, caplen - NULL_HDRLEN); | ^ print-null.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | null_if_print(p, tvp, length, caplen) | ^ In file included from print-null.c:54: ./interface.h:94: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] 94 | extern void null_if_print(); | ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-egp.c print-egp.c:185:15: warning: passing arguments to 'intoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | intoa(addr)); | ^ print-egp.c:206:24: warning: passing arguments to 'intoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | printf(" %s", intoa(addr)); | ^ print-egp.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | egpnrprint(egp, length) | ^ print-egp.c:227:8: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-egp.c:228:8: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-egp.c:278:22: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 278 | printf("[status %d], status"); | ~^ print-egp.c:298:23: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 298 | printf(" [status %d], status"); | ~^ print-egp.c:302:25: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 302 | printf("[reach code %d], code"); | ~^ print-egp.c:313:26: warning: passing arguments to 'intoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 313 | printf(" net:%s", intoa(egp->egp_sourcenet)); | ^ print-egp.c:327:15: warning: passing arguments to 'intoa' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 327 | intoa(egp->egp_sourcenet), | ^ print-egp.c:339:24: warning: data argument not used by format string [-Wformat-extra-args] 339 | printf(" [status]", status); | ~~~~~~~~~~~ ^ print-egp.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | egp_print(egp, length, ip) | ^ In file included from print-egp.c:33: ./interface.h:95: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] 95 | extern void egp_print(); | ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-ospf.c print-ospf.c:92:5: warning: call to undeclared library function 'printf' with type 'int (const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 92 | printf(" S %X age ", | ^ print-ospf.c:92:5: note: include the header or explicitly provide a declaration for 'printf' print-ospf.c:93:5: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 92 | printf(" S %X age ", | ~~ | %lX 93 | seq); | ^~~ print-ospf.c:96:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~ | %ld 96 | hour, | ^~~~ print-ospf.c:97:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~~~ | %02ld 96 | hour, 97 | mins, | ^~~~ print-ospf.c:98:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~~~ | %02ld 96 | hour, 97 | mins, 98 | sec); | ^~~ print-ospf.c:101:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 100 | printf("%d:%02d", | ~~ | %ld 101 | mins, | ^~~~ print-ospf.c:102:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 100 | printf("%d:%02d", | ~~~~ | %02ld 101 | mins, 102 | sec); | ^~~ print-ospf.c:105:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 104 | printf("%d", | ~~ | %ld 105 | sec); | ^~~ print-ospf.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | ospf_print_seqage(seq, us) | ^ print-ospf.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | ospf_print_bits(bp, options) | ^ print-ospf.c:160:21: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 160 | ospf_print_bits(ospf_option_bits, lshp->ls_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | LS_PRINT(lshp, lshp->ls_type); | ^ print-ospf.c:130:21: note: expanded from macro 'LS_PRINT' 130 | printf(" rtr %s ", ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:29: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:61: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:27: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:60: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:27: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:59: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:28: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:61: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:29: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:164:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:62: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | ospf_print_lshdr(lshp, end) | ^ print-ospf.c:201:18: warning: passing 'const struct bits[5]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 201 | ospf_print_bits(ospf_rla_flag_bits, lsap->lsa_un.un_rla.rla_flags); | ^~~~~~~~~~~~~~~~~~ print-ospf.c:220:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | ipaddr_string(&rlp->link_id), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:221:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | ipaddr_string(&rlp->link_data)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:226:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | ipaddr_string(&rlp->link_id), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:227:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | ipaddr_string(&rlp->link_data)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:232:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | ipaddr_string(&rlp->link_id), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:233:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | ipaddr_string(&rlp->link_data)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:256:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | ipaddr_string(&lsap->lsa_un.un_nla.nla_mask)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:261:6: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | ipaddr_string(ap)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:267:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | ipaddr_string(&lsap->lsa_un.un_sla.sla_mask)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:278:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 277 | printf(" tos %d metric %d", | ~~ | %lu 278 | (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:279:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 277 | printf(" tos %d metric %d", | ~~ | %lu 278 | (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, 279 | ul & SLA_MASK_METRIC); | ^~~~~~~~~~~~~~~~~~~~ print-ospf.c:285:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | ipaddr_string(&lsap->lsa_un.un_asla.asla_mask)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:294:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 292 | printf(" type %d tos %d metric %d", | ~~ | %lu 293 | (ul & ASLA_FLAG_EXTERNAL) ? 2 : 1, 294 | (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:295:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 292 | printf(" type %d tos %d metric %d", | ~~ | %lu 293 | (ul & ASLA_FLAG_EXTERNAL) ? 2 : 1, 294 | (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, 295 | (ul & ASLA_MASK_METRIC)); | ^~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:298:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | ipaddr_string(&almp->asla_forward)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:302:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | ipaddr_string(&almp->asla_tag)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:315:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | ipaddr_string(&mcp->mcla_vid)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:320:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | ipaddr_string(&mcp->mcla_vid)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | ospf_print_lsa(lsap, end) | ^ print-ospf.c:353:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:354:5: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | ipaddr_string(&ip->ip_dst)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:388:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | ipaddr_string(&op->ospf_routerid)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:397:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | ipaddr_string(&op->ospf_areaid)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:424:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | ipaddr_string((struct in_addr *) op->ospf_authdata), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:425:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | ipaddr_string((struct in_addr *) &op->ospf_authdata[sizeof (struct in_addr)])); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:454:19: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 454 | ospf_print_bits(ospf_option_bits, op->ospf_hello.hello_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:456:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | ipaddr_string(&op->ospf_hello.hello_mask), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:467:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | ipaddr_string(&op->ospf_hello.hello_dr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:475:10: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | ipaddr_string(&op->ospf_hello.hello_bdr)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:487:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | ipaddr_string(ap)); | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:496:22: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 496 | ospf_print_bits(ospf_option_bits, op->ospf_db.db_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:539:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 538 | printf(" ??LinkStateType %d }", | ~~ | %ld 539 | type); | ^~~~ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | LS_PRINT(lsrp, type); | ^ print-ospf.c:130:21: note: expanded from macro 'LS_PRINT' 130 | printf(" rtr %s ", ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:29: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:61: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:27: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:60: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:27: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:59: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:28: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:61: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:29: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:544:7: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:62: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-ospf.c:337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | ospf_print(dat, length, ip) | ^ 68 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-fddi.c print-fddi.c:241:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | error("not configured for fddi"); | ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c print-sunrpc.c print-sunrpc.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | bswap(bp, n) | ^ print-sunrpc.c:95:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-sunrpc.c:97:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-sunrpc.c:101:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ipaddr_string(&ip->ip_src), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-sunrpc.c:103:9: warning: passing arguments to 'getname' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | ipaddr_string(&ip->ip_dst), | ^ ./addrtoname.h:72:33: note: expanded from macro 'ipaddr_string' 72 | #define ipaddr_string(p) getname((u_char *)(p)) | ^ print-sunrpc.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | sunrpcrequest_print(rp, length, ip) | ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c pcap.c In file included from pcap.c:33: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ pcap.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | bpf_stats(fd) | ^ pcap.c:72:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | exit(1); | ^ pcap.c:72:3: note: include the header or explicitly provide a declaration for 'exit' pcap.c:74:18: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | buf = (u_char *)malloc(bufsize); | ^ pcap.c:74:18: note: include the header or explicitly provide a declaration for 'malloc' pcap.c:83:13: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | if ((cc = read(if_fd, (char *)buf, (int)bufsize)) < 0) { | ^ pcap.c:112:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | (*printit)(bp + (hdrlen = bhp->bh_hdrlen), | ^ pcap.c:120:2: warning: call to undeclared function 'wrapup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | wrapup(if_fd); | ^ pcap.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | readloop(cnt, if_fd, fp, printit) | ^ pcap.c:123:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 123 | wrapup(fd) | ^ | int pcap.c:127:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | close(fd); | ^ pcap.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | wrapup(fd) | ^ pcap.c:128:1: warning: non-void function does not return a value [-Wreturn-type] 128 | } | ^ pcap.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | initdevice(device, pflag, linktype) | ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c md.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c os.c sed 's/.*/char version[] = "&";/' VERSION > version.c sed 's/.*/char tcpview_version[] = "&";/' TCPVIEW_VERSION >> version.c set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; { echo '#define VERSION_MAJOR' $1 ; echo '#define VERSION_MINOR' $2 ; } > version.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c savefile.c savefile.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 | sf_write_header(fp, linktype, thiszone, snaplen, precision) | ^ savefile.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | swap_hdr(hp) | ^ savefile.c:126:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 126 | exit(1); | ^ savefile.c:126:4: note: include the header or explicitly provide a declaration for 'exit' savefile.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | sf_read_init(fname, linktypep, thiszonep, snaplenp, precision) | ^ In file included from savefile.c:45: ./savefile.h:64:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 64 | int sf_read_init(); | ^ savefile.c:176:18: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 176 | buf = (u_char *)malloc(snaplen); | ^ savefile.c:176:18: note: include the header or explicitly provide a declaration for 'malloc' savefile.c:179:26: warning: passing arguments to 'sf_next_packet' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | status = sf_next_packet(&h, buf, snaplen); | ^ savefile.c:192:7: warning: call to undeclared function 'bpf_filter'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 192 | if (bpf_filter(fcode, buf, h.len, h.caplen)) { | ^ savefile.c:195:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | (*printit)(buf, &h.ts, h.len, h.caplen); | ^ savefile.c:203:2: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | free((char *)buf); | ^ savefile.c:203:2: note: include the header or explicitly provide a declaration for 'free' savefile.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | sf_read(filtp, cnt, snaplen, printit) | ^ In file included from savefile.c:45: ./savefile.h:65:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 65 | int sf_read(); | ^ savefile.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | sf_next_packet(hdr, buf, buflen) | ^ In file included from savefile.c:45: ./savefile.h:66:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 66 | int sf_next_packet(); | ^ savefile.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | sf_write_init(fname, linktype, thiszone, snaplen, precision) | ^ In file included from savefile.c:45: ./savefile.h:70:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 70 | void sf_write_init(); | ^ savefile.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | sf_write(sp, tvp, length, caplen) | ^ In file included from savefile.c:45: ./savefile.h:72:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | void sf_write(); | ^ savefile.c:313:3: warning: call to undeclared function 'error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 313 | error("archaic file format"); | ^ savefile.c:332:2: warning: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | abort(); | ^ savefile.c:332:2: note: include the header or explicitly provide a declaration for 'abort' savefile.c:308:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | void sf_err(code) | ^ In file included from savefile.c:45: ./savefile.h:73:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 73 | void sf_err(); | ^ 22 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c util.c util.c:79:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 79 | xdtoi(c) | ^ 80 | { util.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | xdtoi(c) | ^ util.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | stoi(s) | ^ util.c:127:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 127 | while (c = *s++) { | ~~^~~~~~ util.c:127:11: note: place parentheses around the assignment to silence this warning 127 | while (c = *s++) { | ^ | ( ) util.c:127:11: note: use '==' to turn this assignment into an equality comparison 127 | while (c = *s++) { | ^ | == util.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | printfn(s, ep) | ^ util.c:204:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 204 | (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); | ~~ ^~~~~~~~~~~ | %ld util.c:204:42: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 204 | (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); | ~~~~ ^~~~~~~~~~~~ | %06ld util.c:221:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 221 | (void)printf("%d.%06d ", i,j); | ~~ ^ | %ld util.c:221:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 221 | (void)printf("%d.%06d ", i,j); | ~~~~ ^ | %06ld util.c:235:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 235 | (void)printf("%d.%06d ", i,j); | ~~ ^ | %ld util.c:235:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 235 | (void)printf("%d.%06d ", i,j); | ~~~~ ^ | %06ld util.c:241:10: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~ util.c:241:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~~~~~~~~ util.c:241:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~ util.c:241:45: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %06ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~~~~~ util.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | ts_print(tvp) | ^ In file included from util.c:71: ./interface.h:57: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] 57 | extern void ts_print(); | ^ util.c:269:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | stripdir(s) | ^ util.c:290:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 290 | cp += strlen(cp); | ^ util.c:290:9: note: include the header or explicitly provide a declaration for 'strlen' util.c:342:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 342 | while (src = *p++) { | ~~~~^~~~~~ util.c:342:13: note: place parentheses around the assignment to silence this warning 342 | while (src = *p++) { | ^ | ( ) util.c:342:13: note: use '==' to turn this assignment into an equality comparison 342 | while (src = *p++) { | ^ | == util.c:343:17: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 343 | while (*dst++ = *src++) | ~~~~~~~^~~~~~~~ util.c:343:17: note: place parentheses around the assignment to silence this warning 343 | while (*dst++ = *src++) | ^ | ( ) util.c:343:17: note: use '==' to turn this assignment into an equality comparison 343 | while (*dst++ = *src++) | ^ | == util.c:323:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 323 | copy_argv(argv) | ^ In file included from util.c:71: ./interface.h:66: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] 66 | extern char *copy_argv(); | ^ util.c:369:6: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 369 | if (read(fd, p, (int)buf.st_size) != buf.st_size) | ^ util.c:354:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | read_infile(fname) | ^ In file included from util.c:71: ./interface.h:65: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] 65 | extern char *read_infile(); | ^ util.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | net_mask(addr) | ^ 27 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c etherent.c etherent.c:37:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 37 | xdtoi(c) | ^ 38 | { etherent.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 | xdtoi(c) | ^ etherent.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | skip_space(f) | ^ etherent.c:61:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 61 | skip_line(f) | ^ etherent.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | next_etherent(fp) | ^ In file included from etherent.c:33: ./etherent.h:31: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 subsequent definition [-Wdeprecated-non-prototype] 31 | struct etherent *next_etherent(); | ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c inet.c inet.c:65:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | exit(1); | ^ inet.c:65:3: note: include the header or explicitly provide a declaration for 'exit' inet.c:97:8: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 97 | n = atoi(cp); | ^ inet.c:113:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | close(fd); | ^ inet.c:117:8: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | (void)strcpy(device, mp->ifr_name); | ^ inet.c:117:8: note: include the header or explicitly provide a declaration for 'strcpy' inet.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | ipaddrtonetmask(addr) | ^ inet.c:137:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 137 | } | ^ inet.c:154:8: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | (void)strncpy(ifr.ifr_name, device, sizeof ifr.ifr_name); | ^ inet.c:154:8: note: include the header or explicitly provide a declaration for 'strncpy' inet.c:171:8: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | (void)close(fd); | ^ inet.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | lookup_net(device, netp, maskp) | ^ 9 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c gencode.c gencode.c:130:3: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | bzero((char *)cp->m, size); | ^ gencode.c:130:3: note: include the header or explicitly provide a declaration for 'bzero' gencode.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | newchunk(n) | ^ gencode.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | new_block(code) | ^ gencode.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | new_stmt(code) | ^ gencode.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | gen_retblk(v) | ^ gencode.c:219:2: warning: call to undeclared function 'lex_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | lex_init(buf ? buf : ""); | ^ gencode.c:227:15: warning: passing arguments to 'init_linktype' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | init_linktype(linktype); | ^ gencode.c:228:2: warning: call to undeclared function 'yyparse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 228 | yyparse(); | ^ gencode.c:237:11: warning: passing arguments to 'optimize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | optimize(&root); | ^ gencode.c:242:20: warning: passing arguments to 'icode_to_fcode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | p = icode_to_fcode(root, &len); | ^ gencode.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | parse(buf, Oflag, linktype, mask) | ^ gencode.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | backpatch(list, target) | ^ gencode.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | merge(b0, b1) | ^ gencode.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | finish_parse(p) | ^ In file included from gencode.c:47: ./gencode.h:145: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] 145 | extern void finish_parse(); | ^ gencode.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | gen_and(b0, b1) | ^ In file included from gencode.c:47: ./gencode.h:128: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] 128 | extern void gen_and(); | ^ gencode.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | gen_or(b0, b1) | ^ In file included from gencode.c:47: ./gencode.h:129: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] 129 | extern void gen_or(); | ^ gencode.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | gen_not(b) | ^ In file included from gencode.c:47: ./gencode.h:130: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] 130 | extern void gen_not(); | ^ gencode.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | gen_cmp(offset, size, v) | ^ gencode.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | gen_mcmp(offset, size, v, mask) | ^ gencode.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | gen_bcmp(offset, size, v) | ^ gencode.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | init_linktype(type) | ^ gencode.c:75: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] 75 | static void init_linktype(); | ^ gencode.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | gen_uncond(rsense) | ^ gencode.c:485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | gen_linktype(proto) | ^ gencode.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | gen_hostop(addr, mask, dir, proto, src_off, dst_off) | ^ gencode.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | gen_ehostop(eaddr, dir) | ^ gencode.c:577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | gen_host(addr, mask, proto, dir) | ^ gencode.c:621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | gen_gateway(eaddr, alist, proto, dir) | ^ gencode.c:650:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 650 | } | ^ gencode.c:653:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | gen_proto_abbrev(proto) | ^ In file included from gencode.c:47: ./gencode.h:135: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] 135 | extern struct block *gen_proto_abbrev(); | ^ gencode.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | gen_portatom(off, v) | ^ gencode.c:738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | gen_portop(port, proto, dir) | ^ gencode.c:781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | gen_port(port, ip_proto, dir) | ^ gencode.c:820:20: warning: passing arguments to 's_nametoproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | v = s_nametoproto(name); | ^ gencode.c:827:21: warning: passing arguments to 's_nametoeproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | v = s_nametoeproto(name); | ^ gencode.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | lookup_proto(name, proto) | ^ gencode.c:840:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 840 | gen_proto(v, proto, dir) | ^ gencode.c:897:25: warning: passing arguments to 's_nametonetaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | addr = s_nametonetaddr(name); | ^ gencode.c:900:18: warning: passing arguments to 'net_mask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | mask = net_mask(&addr); | ^ gencode.c:907:25: warning: passing arguments to 'ETHER_hostton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | eaddr = ETHER_hostton(name); | ^ gencode.c:913:24: warning: passing arguments to 's_nametoaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | alist = s_nametoaddr(name); | ^ gencode.c:929:19: warning: passing arguments to 's_nametoport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | if (s_nametoport(name, &port, &real_proto) == 0) | ^ gencode.c:948:24: warning: passing arguments to 'ETHER_hostton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | eaddr = ETHER_hostton(name); | ^ gencode.c:952:23: warning: passing arguments to 's_nametoaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | alist = s_nametoaddr(name); | ^ gencode.c:883:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | gen_scode(name, q) | ^ In file included from gencode.c:47: ./gencode.h:132: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] 132 | extern struct block *gen_scode(); | ^ gencode.c:986:18: warning: passing arguments to 'net_mask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 986 | mask = net_mask(&v); | ^ gencode.c:973:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | gen_ncode(v, q) | ^ In file included from gencode.c:47: ./gencode.h:134: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] 134 | extern struct block *gen_ncode(); | ^ gencode.c:1017:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | gen_ecode(eaddr, q) | ^ In file included from gencode.c:47: ./gencode.h:133: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] 133 | extern struct block *gen_ecode(); | ^ gencode.c:1026:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1026 | } | ^ gencode.c:1029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | sappend(s0, s1) | ^ gencode.c:1042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | xfer_to_x(a) | ^ gencode.c:1053:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | xfer_to_a(a) | ^ gencode.c:1073:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1073 | free_reg(index->regno); | ^ gencode.c:1064:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1064 | gen_load(proto, index, size) | ^ In file included from gencode.c:47: ./gencode.h:123:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 123 | extern struct arth *gen_load(); | ^ gencode.c:1167:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1167 | free_reg(a0->regno); | ^ gencode.c:1168:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1168 | free_reg(a1->regno); | ^ gencode.c:1145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | gen_relation(code, a0, a1, reversed) | ^ In file included from gencode.c:47: ./gencode.h:136: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] 136 | extern struct block *gen_relation(); | ^ gencode.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | gen_loadi(val) | ^ In file included from gencode.c:47: ./gencode.h:122:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 122 | extern struct arth *gen_loadi(); | ^ gencode.c:1225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1225 | gen_neg(a) | ^ In file included from gencode.c:47: ./gencode.h:125:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 125 | extern struct arth *gen_neg(); | ^ gencode.c:1258:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1258 | free_reg(a1->regno); | ^ gencode.c:1243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | gen_arth(code, a0, a1) | ^ In file included from gencode.c:47: ./gencode.h:126:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 126 | extern struct arth *gen_arth(); | ^ gencode.c:1292:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1292 | } | ^ gencode.c:1299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1299 | free_reg(n) | ^ gencode.c:78: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] 78 | static void free_reg(); | ^ gencode.c:1315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1315 | gen_len(jmp, n) | ^ gencode.c:1332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1332 | gen_greater(n) | ^ In file included from gencode.c:47: ./gencode.h:138: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] 138 | extern struct block *gen_greater(); | ^ gencode.c:1339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1339 | gen_less(n) | ^ In file included from gencode.c:47: ./gencode.h:137: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] 137 | extern struct block *gen_less(); | ^ gencode.c:1351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1351 | gen_byteop(op, idx, val) | ^ In file included from gencode.c:47: ./gencode.h:139: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] 139 | extern struct block *gen_byteop(); | ^ gencode.c:1394:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1394 | gen_broadcast(proto) | ^ In file included from gencode.c:47: ./gencode.h:140: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] 140 | extern struct block *gen_broadcast(); | ^ gencode.c:1421:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1421 | } | ^ gencode.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | gen_multicast(proto) | ^ In file included from gencode.c:47: ./gencode.h:141: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] 141 | extern struct block *gen_multicast(); | ^ gencode.c:1453:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1453 | } | ^ 90 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c optimize.c optimize.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | find_levels_r(b) | ^ optimize.c:179:2: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 179 | bzero((char *)levels, n_blocks * sizeof(*levels)); | ^ optimize.c:179:2: note: include the header or explicitly provide a declaration for 'bzero' optimize.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | find_levels(root) | ^ optimize.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | find_dom(root) | ^ optimize.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | propedom(ep) | ^ optimize.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | find_edom(root) | ^ optimize.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | find_closure(root) | ^ optimize.c:330:2: warning: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 330 | abort(); | ^ optimize.c:330:2: note: include the header or explicitly provide a declaration for 'abort' optimize.c:296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | atomuse(s) | ^ optimize.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | atomdef(s) | ^ optimize.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | compute_local_ud(b) | ^ optimize.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | find_ud(root) | ^ optimize.c:478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | F(code, v0, v1) | ^ optimize.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | vstore(s, valp, newval, alter) | ^ optimize.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | fold_op(s, v0, v1) | ^ optimize.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | this_op(s) | ^ optimize.c:590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | opt_not(b) | ^ optimize.c:600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | opt_peep(b) | ^ optimize.c:792:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | opt_stmt(s, val, alter) | ^ optimize.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | deadstmt(s, last) | ^ optimize.c:1004:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1004 | opt_deadstores(b) | ^ optimize.c:1025:12: warning: parameter 'do_stmts' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1025 | opt_blk(b, do_stmts) | ^ 1026 | struct block *b; 1027 | { optimize.c:1044:3: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1044 | bcopy((char *)p->pred->val, (char *)b->val, sizeof(b->val)); | ^ optimize.c:1044:3: note: include the header or explicitly provide a declaration for 'bcopy' optimize.c:1045:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1045 | while (p = p->next) { | ~~^~~~~~~~~ optimize.c:1045:12: note: place parentheses around the assignment to silence this warning 1045 | while (p = p->next) { | ^ | ( ) optimize.c:1045:12: note: use '==' to turn this assignment into an equality comparison 1045 | while (p = p->next) { | ^ | == optimize.c:1025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | opt_blk(b, do_stmts) | ^ optimize.c:1084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | use_conflict(b, succ) | ^ optimize.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | fold_edge(child, ep) | ^ optimize.c:1178:8: warning: call to undeclared function 'ffs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1178 | k = ffs(x) - 1; | ^ optimize.c:1147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | opt_j(ep) | ^ optimize.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | or_pullup(b) | ^ optimize.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1296 | and_pullup(b) | ^ optimize.c:1388:16: warning: parameter 'do_stmts' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1388 | opt_blks(root, do_stmts) | ^ 1389 | struct block *root; 1390 | { optimize.c:1388:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1388 | opt_blks(root, do_stmts) | ^ optimize.c:1422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1422 | link_inedge(parent, child) | ^ optimize.c:1431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1431 | find_inedges(root) | ^ optimize.c:1466:3: warning: call to undeclared function 'sappend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1466 | sappend(s, tmp); | ^ optimize.c:1454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1454 | opt_root(b) | ^ optimize.c:1471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1471 | opt_loop(root, do_stmts) | ^ optimize.c:1507:10: warning: passing arguments to 'opt_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1507 | opt_init(root); | ^ optimize.c:1510:15: warning: passing arguments to 'intern_blocks' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1510 | intern_blocks(root); | ^ optimize.c:1500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1500 | optimize(rootp) | ^ In file included from optimize.c:35: ./gencode.h:143: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] 143 | extern void optimize(); | ^ optimize.c:1516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1516 | make_marks(p) | ^ optimize.c:69: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] 69 | static void make_marks(); | ^ optimize.c:1533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1533 | mark_code(p) | ^ optimize.c:70: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] 70 | static void mark_code(); | ^ optimize.c:1545:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1545 | eq_slist(x, y) | ^ optimize.c:74: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] 74 | static int eq_slist(); | ^ optimize.c:1565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1565 | eq_blk(b0, b1) | ^ optimize.c:1577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1577 | intern_blocks(root) | ^ optimize.c:72: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] 72 | static void intern_blocks(); | ^ optimize.c:1623:2: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1623 | free((void *)vnode_base); | ^ optimize.c:1623:2: note: include the header or explicitly provide a declaration for 'free' optimize.c:1635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1635 | slength(s) | ^ optimize.c:1651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | count_blocks(p) | ^ optimize.c:1665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1665 | number_blks_r(p) | ^ optimize.c:1687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1687 | count_stmts(p) | ^ optimize.c:1717:28: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1717 | blocks = (struct block **)malloc(n * sizeof(*blocks)); | ^ optimize.c:1717:28: note: include the header or explicitly provide a declaration for 'malloc' optimize.c:1705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1705 | opt_init(root) | ^ optimize.c:66: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] 66 | static void opt_init(); | ^ optimize.c:1788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1788 | convert_code_r(p) | ^ optimize.c:1838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1838 | icode_to_fcode(root, lenp) | ^ 61 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bpf_dump.c bpf_dump.c:68:53: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 68 | printf("%lu %lu %lu %lu\n", insn->code, | ~~~ ^~~~~~~~~~ | %hu bpf_dump.c:69:32: warning: format specifies type 'unsigned long' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] 68 | printf("%lu %lu %lu %lu\n", insn->code, | ~~~ | %hhu 69 | insn->jt, insn->jf, insn->k); | ^~~~~~~~ bpf_dump.c:69:42: warning: format specifies type 'unsigned long' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] 68 | printf("%lu %lu %lu %lu\n", insn->code, | ~~~ | %hhu 69 | insn->jt, insn->jf, insn->k); | ^~~~~~~~ bpf_dump.c:76:64: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 75 | printf("{ 0x%x, %d, %d, 0x%08x },\n", | ~~~~ | %08lx 76 | insn->code, insn->jt, insn->jf, insn->k); | ^~~~~~~ bpf_dump.c:84:22: warning: call to undeclared function 'bpf_image'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 84 | puts(bpf_image(insn, i)); | ^ bpf_dump.c:84:22: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const char *' [-Wint-conversion] 84 | puts(bpf_image(insn, i)); | ^~~~~~~~~~~~~~~~~~ /usr/include/stdio.h:278:23: note: passing argument to parameter here 278 | int puts(const char *); | ^ bpf_dump.c:32:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 32 | bpf_dump(p, option) | ^ 6 warnings and 1 error generated. *** Error code 1 Stop. make[1]: stopped in /wrkdirs/usr/ports/net/tcpview/work/tcpview-1.0/386-bsd-tcpdump + mkdir 386-bsd-tcpview + chmod ug+w 386-bsd-tcpview + ln -s ../telnet.c ../generic.c ../bgp.c ../hex.c ../snmp.h ../filter.h ../motif.h ../tcpview.h ../ospf.h ../extract.h ../gencode.h ../ntp.h ../etherent.h ../nametoaddr.h ../etherproto.h ../savefile.h ../bootp.h ../ip_icmp.h ../addrtoname.h ../appletalk.h ../interface.h ../tcplex.l ../tcpgram.y ../detail-snmp.c ../detail-domain.c ../detail-icmp.c ../detail-rip.c ../capture.c ../inet.c ../text.c ../filter-stream.c ../getservent.c ../bpf_filter.c ../print.c ../util.c ../hd.c ../sniffer_file.c ../tv_etherent.c ../savefile.c ../nametoaddr.c ../optimize.c ../gencode.c ../print-null.c ../print-sl.c ../print-ppp.c ../print-fddi.c ../detail-udp.c ../detail-tcp.c ../detail-ip.c ../detail-arp.c ../detail-ether.c ../tv_addrtoname.c ../print-egp.c ../print-ospf.c ../print-domain.c ../print-ntp.c ../print-snmp.c ../print-bootp.c ../print-icmp.c ../print-rip.c ../print-sunrpc.c ../print-tftp.c ../print-atalk.c ../print-nfs.c ../print-udp.c ../print-tcp.c ../print-ip.c ../print-arp.c ../print-ether.c ../filter-dialog.c ../dialogs.c ../motifutils.c ../callbacks.c ../tcpview.c 386-bsd-tcpview + ln -s ../md-386.c 386-bsd-tcpview/md.c + ln -s ../md-386.h 386-bsd-tcpview/md.h + ln -s ../os-bsd.c 386-bsd-tcpview/os.c + ln -s ../os-bsd.h 386-bsd-tcpview/os.h + ln -s ../pcap-bpf.c 386-bsd-tcpview/pcap.c + ln -s ../VERSION 386-bsd-tcpview/VERSION + ln -s ../TCPVIEW_VERSION 386-bsd-tcpview/TCPVIEW_VERSION + sed -e /^all:/d -e 's/^#386-bsd-tcpview#//' Makefile + chmod ug+w 386-bsd-tcpview/Makefile + make -C 386-bsd-tcpview depend2 + rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + grep '^#include' tcpgram.y + grep '^#include' tcplex.l + touch version.h tokdefs.h ../mkdep -UCSLIP -DPPP -I.. -I/usr/local/include tcpview.c callbacks.c motifutils.c dialogs.c filter-dialog.c print-ether.c print-arp.c print-ip.c print-tcp.c print-udp.c print-nfs.c print-atalk.c print-tftp.c print-sunrpc.c print-rip.c print-icmp.c print-bootp.c print-snmp.c print-ntp.c print-domain.c print-ospf.c print-egp.c tv_addrtoname.c detail-ether.c detail-arp.c detail-ip.c detail-tcp.c detail-udp.c print-fddi.c print-ppp.c print-sl.c print-null.c gencode.c optimize.c nametoaddr.c savefile.c tv_etherent.c sniffer_file.c hd.c util.c print.c bpf_filter.c getservent.c filter-stream.c text.c inet.c capture.c detail-rip.c detail-icmp.c detail-domain.c detail-snmp.c tcpgram.c tcplex.c rm -f tokdefs.h tcpgram.c tcplex.c version.h version.c + make -C 386-bsd-tcpview 'DEFINES=-UCSLIP -DPPP -DTCPVIEW' tcpview cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcpview.c tcpview.c:193:1: warning: return type of 'main' is not 'int' [-Wmain-return-type] 193 | void main(argc, argv) | ^ tcpview.c:193:1: note: change return type to 'int' 193 | void main(argc, argv) | ^~~~ | int tcpview.c:255:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | simple_menu_call(file_menu,"Open",'O',False,open_callback); | ^ tcpview.c:256:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | simple_menu_call(file_menu,"Save",'S',False,SaveDialog); | ^ tcpview.c:257:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | simple_menu_call(file_menu,"Print",'P',False,PrintDialog); | ^ tcpview.c:258:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 258 | simple_menu_call(file_menu,"About",'A',False,AboutDialog); | ^ tcpview.c:259:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 259 | simple_menu_call(file_menu,"Exit",'x',True,quit_callback); | ^ tcpview.c:262:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | simple_menu_call(capture_menu,"Set Options",'S',False,cap_opt_callback); | ^ tcpview.c:263:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | simple_menu_call(capture_menu,"GO",'G',False,capture_callback); | ^ tcpview.c:266:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | simple_menu_call(filter_menu,"Edit",'E',False,FilterDialog); | ^ tcpview.c:267:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | simple_menu_call(filter_menu,"Follow Stream",'F',False,FilterStream); | ^ tcpview.c:271:19: warning: passing arguments to 'simple_menu_call' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | simple_menu_call(opt_menu,"Summary Options",'S',False,SummaryOptionDialog); | ^ tcpview.c:193:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | void main(argc, argv) | ^ tcpview.c:328:22: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 328 | buffer = (char *)malloc(10000); | ^ tcpview.c:328:22: note: include the header or explicitly provide a declaration for 'malloc' tcpview.c:329:7: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 329 | hd( buffer, sp, length ); | ^~~~~~ tcpview.c:319:19: note: passing argument to parameter here 319 | void hd(u_char *, u_char *, int); | ^ tcpview.c:311:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | void default_print(sp, length) | ^ In file included from tcpview.c:46: ./tcpview.h:107:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 107 | void default_print(); | ^ tcpview.c:351:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | void hex( start, stop ) | ^ tcpview.c:370:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | int hex_start( position ) | ^ tcpview.c:376:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | int hex_stop( position ) | ^ 19 warnings generated. sed 's/.*/char version[] = "&";/' VERSION > version.c sed 's/.*/char tcpview_version[] = "&";/' TCPVIEW_VERSION >> version.c set `sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; { echo '#define VERSION_MAJOR' $1 ; echo '#define VERSION_MINOR' $2 ; } > version.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c version.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c motifutils.c motifutils.c:38:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 38 | XmString Str2XmString( string ) | ^ motifutils.c:52:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | Widget simple_menu( menu_bar, name, mnemonic ) | ^ motifutils.c:95:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | Widget simple_menu_item( menu_widget, name, mnemonic, NeedsSeparator ) | ^ In file included from motifutils.c:19: ./motif.h:30:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 30 | Widget simple_menu_item (); | ^ motifutils.c:123:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | Widget simple_menu_call( menu_widget, name, mnemonic, NeedsSeparator, callback ) | ^ In file included from motifutils.c:19: ./motif.h:31:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | Widget simple_menu_call (); | ^ motifutils.c:150:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 150 | Widget CreateHelpWidget( parent, message ) | ^ motifutils.c:192:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | void quit_callback( widget, client_data, call_data ) | ^ motifutils.c:210:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | static void really_quit( widget, client_data, call_data ) | ^ motifutils.c:216:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 216 | exit( 0 ); | ^ motifutils.c:216:3: note: include the header or explicitly provide a declaration for 'exit' motifutils.c:225:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | Widget CreateQuitButton( parent ) | ^ motifutils.c:250:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | Widget CreatePulldownMenu( parent, name_on_bar, title, mnemonic ) | ^ motifutils.c:305:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | Widget FillMenu( menu_widget, name, callback_func ) | ^ motifutils.c:333:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | void AddToList( widget, string, position ) | ^ motifutils.c:349:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 349 | Widget CreateScrolledList( parent, name, args, n, list_callback ) | ^ motifutils.c:388:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | Widget ErrorDialog( parent, name, message ) | ^ motifutils.c:421:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 421 | static void present_help( widget, client_data, call_data ) | ^ motifutils.c:428:32: warning: passing arguments to 'SetUpHelp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 428 | help_widget = SetUpHelp( widget, | ^ motifutils.c:440:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 440 | Widget SetUpHelp( parent, name, message ) | ^ motifutils.c:485:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | void RemoveDialButton( widget, which_button ) | ^ motifutils.c:507:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 507 | Widget PromptDialog( parent, name, message, callback_func ) | ^ motifutils.c:546:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | Widget WarningDialog( parent, name, message, callback_func ) | ^ motifutils.c:590:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | Widget CreateLabelWidget( parent, name, message, args, n ) | ^ motifutils.c:627:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | void SetLabel( widget, string ) | ^ motifutils.c:646:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 646 | Widget CreatePushButton( parent, name, label, args, n, callback_func ) | ^ motifutils.c:675:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 675 | Widget CreateSimpleButton( parent, label, callback_func, data ) | ^ motifutils.c:709:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 709 | void BulletinDefaultButton( bulletin, button ) | ^ motifutils.c:729:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 729 | Widget CreateToggle( parent, name, message, state, type, callback_func ) | ^ motifutils.c:733:14: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Boolean' (aka 'char') declared in a previous prototype [-Wknr-promoted-parameter] 733 | Boolean state; /* initial state */ | ^ ./motif.h:35:53: note: previous declaration is here 35 | Widget CreateToggle( Widget, char *, char *, Boolean, int, void (*)() ); | ^ motifutils.c:763:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 763 | Widget CreateSimpleToggle( parent, name, state, type, callback_func, data ) | ^ motifutils.c:766:14: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'Boolean' (aka 'char') declared in a previous prototype [-Wknr-promoted-parameter] 766 | Boolean state; /* initial state */ | ^ ./motif.h:36:51: note: previous declaration is here 36 | Widget CreateSimpleToggle (Widget, char *, Boolean, int, void (*)(), caddr_t); | ^ motifutils.c:804:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 804 | void SetToggle( widget, state ) | ^ motifutils.c:824:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 824 | Widget CreateRadioBox( parent, name ) | ^ 33 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c dialogs.c dialogs.c:83:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 83 | void save_callback( widget, name, call_data ) | ^ dialogs.c:116:5: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 116 | system( str ); | ^ dialogs.c:117:5: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | unlink( filename ); | ^ dialogs.c:97:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | void print_callback( widget, name, call_data ) | ^ dialogs.c:130:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 130 | int i = (int)data; | ^~~~~~~~~ dialogs.c:125:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | void tog_callback( widget, data, call_data ) | ^ dialogs.c:153:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | static void sumopts_callback( widget, name, call_data ) | ^ dialogs.c:171:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 171 | static void cancel_callback( widget, name, call_data ) | ^ dialogs.c:204:47: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 204 | sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~~~~ | %lu dialogs.c:204:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 204 | sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~ | %lu dialogs.c:184:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 184 | void SaveDialog (parent, name, callback) | ^ dialogs.c:297:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 297 | void SummaryOptionDialog (parent, name, callback) | ^ dialogs.c:450:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 450 | static void timea_callback( widget, name, x ) | ^ dialogs.c:56: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] 56 | static void timea_callback(), timer_callback(), timed_callback(); | ^ dialogs.c:458:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | static void timer_callback( widget, name, x ) | ^ dialogs.c:56: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] 56 | static void timea_callback(), timer_callback(), timed_callback(); | ^ dialogs.c:466:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 466 | static void timed_callback( widget, name, x ) | ^ dialogs.c:56:49: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | static void timea_callback(), timer_callback(), timed_callback(); | ^ dialogs.c:474:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 474 | static void times_callback( widget, name, x ) | ^ dialogs.c:57: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] 57 | static void times_callback(), timen_callback(), line_callback(); | ^ dialogs.c:482:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 482 | static void timen_callback( widget, name, x ) | ^ dialogs.c:57: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] 57 | static void times_callback(), timen_callback(), line_callback(); | ^ dialogs.c:490:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 490 | static void addr1_callback( widget, name, call_data ) | ^ dialogs.c:58: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] 58 | static void addr1_callback(), addr2_callback(), addr3_callback(), addr4_callback(); | ^ dialogs.c:498:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | static void addr2_callback( widget, name, call_data ) | ^ dialogs.c:58: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] 58 | static void addr1_callback(), addr2_callback(), addr3_callback(), addr4_callback(); | ^ dialogs.c:506:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | static void addr3_callback( widget, name, x ) | ^ dialogs.c:58:49: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void addr1_callback(), addr2_callback(), addr3_callback(), addr4_callback(); | ^ dialogs.c:517:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | static void addr4_callback( widget, name, x ) | ^ dialogs.c:58:67: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 58 | static void addr1_callback(), addr2_callback(), addr3_callback(), addr4_callback(); | ^ dialogs.c:528:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 528 | static void verbose_callback( widget, name, call_data ) | ^ dialogs.c:59: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] 59 | static void verbose_callback(), brief_callback(), seq_callback(), dlc_callback(); | ^ dialogs.c:538:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 538 | static void brief_callback( widget, name, call_data ) | ^ dialogs.c:59:33: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | static void verbose_callback(), brief_callback(), seq_callback(), dlc_callback(); | ^ dialogs.c:548:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 548 | static void dlc_callback( widget, name, call_data ) | ^ dialogs.c:59:67: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | static void verbose_callback(), brief_callback(), seq_callback(), dlc_callback(); | ^ dialogs.c:559:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 559 | static void seq_callback( widget, name, call_data ) | ^ dialogs.c:59:51: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | static void verbose_callback(), brief_callback(), seq_callback(), dlc_callback(); | ^ dialogs.c:570:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 570 | static void line_callback( widget, name, call_data ) | ^ dialogs.c:57:49: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static void times_callback(), timen_callback(), line_callback(); | ^ dialogs.c:601:47: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 601 | sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~~~~ | %lu dialogs.c:601:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 601 | sprintf(buf,"%d packets selected out of %d",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~ | %lu dialogs.c:581:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | void PrintDialog (parent, name, callback) | ^ dialogs.c:708:20: warning: passing arguments to 'Str2XmString' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 708 | ms = Str2XmString(buf); | ^ dialogs.c:694:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 694 | void AboutDialog (parent, name, callback) | ^ 45 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c filter-dialog.c filter-dialog.c:112:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | static void clear_callback( widget, foo, call_data ) | ^ filter-dialog.c:135:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | void my_callback( widget, name, call_data ) | ^ filter-dialog.c:143:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | static void current_callback( widget, name, call_data ) | ^ filter-dialog.c:156:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | static void all_callback( widget, name, call_data ) | ^ filter-dialog.c:182:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 182 | d = (int)data>>1; | ^~~~~~~~~ filter-dialog.c:185:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 185 | if( (int)data & 1 ) { /* address 2 */ | ^~~~~~~~~ filter-dialog.c:189:51: warning: passing arguments to 'GetEtherFromName' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | strcpy( Filter.addr[d].address2, GetEtherFromName(string) ); | ^ filter-dialog.c:205:51: warning: passing arguments to 'GetEtherFromName' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | strcpy( Filter.addr[d].address1, GetEtherFromName(string) ); | ^ filter-dialog.c:218:17: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 218 | SetLabel(name[(int)data], str); | ^~~~~~~~~ filter-dialog.c:173:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | void sel_callback( parent, data, cd ) | ^ filter-dialog.c:231:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 231 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:235:7: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 235 | n = (int)data & 1; | ^~~~~~~~~ filter-dialog.c:223:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | void addr_name_callback( parent, data, call_data ) | ^ filter-dialog.c:276:7: warning: call to undeclared function 's_nametoport'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 276 | if( s_nametoport(string,&port,&proto) ) | ^ filter-dialog.c:279:19: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 279 | Filter.port = atoi(string); | ^ filter-dialog.c:266:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 266 | static void port_sel_callback( parent, data, cd ) | ^ filter-dialog.c:302:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | static void port_name_callback( parent, data, call_data ) | ^ filter-dialog.c:324:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 324 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:319:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | void addr_dir_callback( widget, data, call_data ) | ^ filter-dialog.c:339:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 339 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:364:54: warning: passing arguments to 'GetEtherFromName' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 364 | strcpy( Filter.addr[d].address1, GetEtherFromName(Filter.addr[d].name1) ); | ^ filter-dialog.c:365:54: warning: passing arguments to 'GetEtherFromName' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 365 | strcpy( Filter.addr[d].address2, GetEtherFromName(Filter.addr[d].name2) ); | ^ filter-dialog.c:368:17: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 368 | SetLabel(name[(int)data<<1], Filter.addr[d].name1); | ^~~~~~~~~ filter-dialog.c:369:18: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 369 | SetLabel(name[((int)data<<1)+1], Filter.addr[d].name2); | ^~~~~~~~~ filter-dialog.c:333:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | void addr_level_callback( widget, data, call_data ) | ^ filter-dialog.c:378:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 378 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:373:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 373 | void addr_include_callback( widget, data, call_data ) | ^ filter-dialog.c:393:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 393 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:411:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 411 | else { | ^ filter-dialog.c:388:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | void addr_and_callback( widget, data, call_data ) | ^ filter-dialog.c:432:11: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 432 | int d = (int)data; | ^~~~~~~~~ filter-dialog.c:427:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 427 | void proto_callback( widget, data, X_data ) | ^ filter-dialog.c:496:31: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 496 | addr_and_callback, (caddr_t)i); | ^~~~~~~~~~ filter-dialog.c:500:31: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 500 | addr_and_callback, (caddr_t)i); | ^~~~~~~~~~ filter-dialog.c:503:26: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 503 | addr_level_callback, (caddr_t)i); | ^~~~~~~~~~ filter-dialog.c:506:66: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 506 | name[i+i] = CreateSimpleButton( rc2, str, addr_name_callback,(caddr_t)(i+i) ); | ^~~~~~~~~~~~~~ filter-dialog.c:509:24: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 509 | addr_dir_callback, (caddr_t)i); | ^~~~~~~~~~ filter-dialog.c:512:69: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 512 | name[i+i+1] = CreateSimpleButton( rc2, str, addr_name_callback, (caddr_t)(i+i+1) ); | ^~~~~~~~~~~~~~~~ filter-dialog.c:514:32: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'int' [-Wint-to-pointer-cast] 514 | addr_include_callback, (caddr_t)i); | ^~~~~~~~~~ filter-dialog.c:452:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | void FilterDialog (parent, nam, callback) | ^ filter-dialog.c:614:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | void update_fstr( filt ) | ^ 41 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ether.c print-ether.c:52:20: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | static inline void ether_print(ep, length) | ^ print-ether.c:84:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | ts_print(tvp); | ^ print-ether.c:118:13: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | ip_print((struct ip *)p, length); | ^ print-ether.c:122:14: warning: passing arguments to 'arp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 122 | arp_print((struct ether_arp *)p, length, caplen - sizeof(*ep)); | ^ print-ether.c:128:20: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | default_print((u_short *)p, caplen - sizeof(*ep)); | ^ print-ether.c:132:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | default_print((u_short *)p, caplen - sizeof(*ep)); | ^ print-ether.c:75:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | void ether_if_print(p, tvp, length, caplen) | ^ In file included from print-ether.c:46: ./interface.h: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 | extern void ether_if_print(); | ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-arp.c print-arp.c:53:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | default_print((u_short *)ap, length); | ^ print-arp.c:73:17: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | ipaddr_string(TPA(ap)), | ^ print-arp.c:74:17: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | ipaddr_string(SPA(ap))); | ^ print-arp.c:79:17: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | ipaddr_string(SPA(ap)), | ^ print-arp.c:92:17: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | ipaddr_string(TPA(ap))); | ^ print-arp.c:97:18: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | default_print((u_short *)ap, caplen); | ^ print-arp.c:41:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 41 | void arp_print(ap, length, caplen) | ^ In file included from print-arp.c:39: ./interface.h:75: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] 75 | extern void arp_print(); | ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ip.c print-ip.c:55:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 55 | ipaddr_string(&ip->ip_src), | ^ print-ip.c:56:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | ipaddr_string(&ip->ip_dst)); | ^ print-ip.c:55:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 55 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-ip.c:56:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 56 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-ip.c:66:45: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | (void)printf(" [gaddr %s]", ipaddr_string(&cp[4])); | ^ print-ip.c:71:47: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | (void)printf("igmp report %s", ipaddr_string(&cp[4])); | ^ print-ip.c:76:43: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 76 | (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); | ^ print-ip.c:76:30: warning: data argument not used by format string [-Wformat-extra-args] 76 | (void)printf("igmp dvmrp", ipaddr_string(&cp[4])); | ~~~~~~~~~~~~ ^ print-ip.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 47 | igmp_print(cp, len, ip) | ^ print-ip.c:206:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] 206 | if ((int)ip & (sizeof(long)-1)) { | ^~~~~~~ print-ip.c:209:24: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 209 | abuf = (u_char *)malloc(MAX_SNAPLEN); | ^ print-ip.c:209:24: note: include the header or explicitly provide a declaration for 'malloc' print-ip.c:213:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 213 | bcopy((char *)ip, (char *)abuf, min(length, snaplen)); | ^ print-ip.c:213:5: note: include the header or explicitly provide a declaration for 'bcopy' print-ip.c:247:16: warning: passing arguments to 'tcp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | tcp_print((struct tcphdr *)cp, len, ip); | ^ print-ip.c:250:16: warning: passing arguments to 'udp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | udp_print((struct udphdr *)cp, len, ip); | ^ print-ip.c:253:17: warning: passing arguments to 'icmp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 253 | icmp_print((struct icmp *)cp, ip); | ^ print-ip.c:256:45: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ print-ip.c:257:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | ipaddr_string(&ip->ip_dst)); | ^ print-ip.c:256:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 256 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-ip.c:257:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 257 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-ip.c:262:16: warning: passing arguments to 'egp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 262 | egp_print((struct egp_packet *)cp, len, ip); | ^ print-ip.c:268:7: warning: call to undeclared function 'ospf_print'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 268 | ospf_print((struct ospfhdr *)cp, len, ip); | ^ print-ip.c:278:45: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 278 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ print-ip.c:279:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | ipaddr_string(&ip->ip_dst)); | ^ print-ip.c:278:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 278 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-ip.c:279:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 279 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-ip.c:295:45: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^ print-ip.c:296:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | ipaddr_string(&ip->ip_dst)); | ^ print-ip.c:295:47: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 295 | (void)printf("%s > %s:", ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-ip.c:296:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 296 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-ip.c:190:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | void ip_print(ip, length) | ^ In file included from print-ip.c:43: ./interface.h:76: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] 76 | extern void ip_print(); | ^ 31 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-tcp.c print-tcp.c:148:16: warning: passing arguments to 'assemble' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | assemble(seq, (u_long)len, data, (int)tp->th_flags&TH_SYN, ip->ip_src ); | ^ print-tcp.c:151:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | default_print(data, len); | ^ print-tcp.c:163:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | ipaddr_string(&ip->ip_src), tcpport_string(sport), | ^ print-tcp.c:164:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | ipaddr_string(&ip->ip_dst), tcpport_string(dport)); | ^ print-tcp.c:163:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 163 | ipaddr_string(&ip->ip_src), tcpport_string(sport), | ^~~~~~~~~~ print-tcp.c:164:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 164 | ipaddr_string(&ip->ip_dst), tcpport_string(dport)); | ^~~~~~~~~~ print-tcp.c:206:9: warning: call to undeclared library function 'bcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 206 | if (!bcmp((char *)&tha, (char *)&th->addr, | ^ print-tcp.c:206:9: note: include the header or explicitly provide a declaration for 'bcmp' print-tcp.c:214:6: warning: call to undeclared library function 'calloc' with type 'void *(unsigned long, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 214 | calloc(1, sizeof (*th)); | ^ print-tcp.c:214:6: note: include the header or explicitly provide a declaration for 'calloc' print-tcp.c:300:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 300 | bcopy((char *)cp + 1, (char *)&mss, | ^ print-tcp.c:300:5: note: include the header or explicitly provide a declaration for 'bcopy' print-tcp.c:386:16: warning: passing arguments to 'assemble' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | assemble(seq, (u_long)length, data, (int)tp->th_flags&TH_SYN, ip->ip_src ); | ^ print-tcp.c:389:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 389 | default_print(data, length); | ^ print-tcp.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | tcp_print(tp, length, ip) | ^ In file included from print-tcp.c:73: ./interface.h:77: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] 77 | extern void tcp_print(); | ^ print-tcp.c:452:15: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 452 | default_print(data,len); | ^ print-tcp.c:453:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 453 | else { | ^ print-tcp.c:477:15: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 477 | default_print(data,len); | ^ print-tcp.c:478:7: warning: add explicit braces to avoid dangling else [-Wdangling-else] 478 | else { | ^ print-tcp.c:485:23: warning: passing arguments to 'check_frags' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | while (check_frags(i)) ; | ^ print-tcp.c:492:30: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 492 | t = (struct tcp_frag *)malloc(sizeof(struct tcp_frag)); | ^ print-tcp.c:492:30: note: include the header or explicitly provide a declaration for 'malloc' print-tcp.c:415:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 415 | static void assemble( seq, len, data, syn, srcx ) | ^ print-tcp.c:112: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] 112 | static void assemble(); | ^ print-tcp.c:521:17: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 521 | default_print(t->data,t->len); | ^ print-tcp.c:522:2: warning: add explicit braces to avoid dangling else [-Wdangling-else] 522 | else { | ^ print-tcp.c:534:7: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 534 | free(t->data); | ^ print-tcp.c:534:7: note: include the header or explicitly provide a declaration for 'free' print-tcp.c:506:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 506 | static int check_frags(i) | ^ print-tcp.c:413: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] 413 | static int check_frags(); | ^ print-tcp.c:572:3: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 572 | bzero(&tcp_seq_hash[0],sizeof(struct tcp_seq_hash)*TSEQ_HASHSIZE); | ^ print-tcp.c:572:3: note: include the header or explicitly provide a declaration for 'bzero' 27 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-udp.c print-udp.c:152:16: warning: passing arguments to 'nfsreq_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 152 | nfsreq_print(rp, length, ip); | ^ print-udp.c:156:18: warning: passing arguments to 'nfsreply_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 156 | nfsreply_print(rp, length, ip); | ^ print-udp.c:161:4: warning: call to undeclared function 'sunrpcrequest_print'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 161 | sunrpcrequest_print(rp, length, ip); | ^ print-udp.c:167:13: warning: passing arguments to 'ddp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | ddp_print((struct atDDP *)(&cp[3]), length - 3); | ^ print-udp.c:172:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | ipaddr_string(&ip->ip_src), udpport_string(sport), | ^ print-udp.c:173:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | ipaddr_string(&ip->ip_dst), udpport_string(dport)); | ^ print-udp.c:172:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 172 | ipaddr_string(&ip->ip_src), udpport_string(sport), | ^~~~~~~~~~ print-udp.c:173:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 173 | ipaddr_string(&ip->ip_dst), udpport_string(dport)); | ^~~~~~~~~~ print-udp.c:178:12: warning: passing arguments to 'ns_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 178 | ns_print((HEADER *)(up + 1), length); | ^ print-udp.c:180:14: warning: passing arguments to 'tftp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | tftp_print((struct tftphdr *)(up + 1), length); | ^ print-udp.c:182:15: warning: passing arguments to 'bootp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | bootp_print((struct bootp *)(up + 1), length, | ^ print-udp.c:185:13: warning: passing arguments to 'rip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | rip_print((u_char *)(up + 1), length); | ^ print-udp.c:187:14: warning: passing arguments to 'snmp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | snmp_print((u_char *)(up + 1), length); | ^ print-udp.c:189:13: warning: passing arguments to 'ntp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | ntp_print((struct ntpdata *)(up + 1), length); | ^ print-udp.c:191:28: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 191 | (void)printf(" udp %d", ulen - sizeof(*up)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lu print-udp.c:194:27: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 194 | (void)printf(" udp %d", ulen - sizeof(*up)); | ~~ ^~~~~~~~~~~~~~~~~~ | %lu print-udp.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | udp_print(up, length, ip) | ^ In file included from print-udp.c:52: ./interface.h:78: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] 78 | extern void udp_print(); | ^ 18 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-nfs.c print-nfs.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 86 | bswap(bp, n) | ^ print-nfs.c:110:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | ipaddr_string(&ip->ip_src), | ^ print-nfs.c:111:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | ipaddr_string(&ip->ip_dst), | ^ print-nfs.c:110:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 110 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-nfs.c:111:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 111 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-nfs.c:117:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | ipaddr_string(&ip->ip_src), | ^ print-nfs.c:119:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ipaddr_string(&ip->ip_dst), | ^ print-nfs.c:117:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 117 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-nfs.c:119:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 119 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-nfs.c:100:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 100 | nfsreply_print(rp, length, ip) | ^ In file included from print-nfs.c:53: ./interface.h:84: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] 84 | extern void nfsreply_print(); | ^ print-nfs.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 | parsereq(rp, length) | ^ print-nfs.c:162:14: warning: passing arguments to 'nfs_printfh' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | nfs_printfh(dp); | ^ print-nfs.c:158:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | parsefh(dp) | ^ print-nfs.c:192:13: warning: passing arguments to 'nfs_printfn' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | nfs_printfn(cp, len); | ^ print-nfs.c:173:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | parsefn(dp) | ^ print-nfs.c:203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 203 | parsefhn(dp) | ^ print-nfs.c:229:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 229 | ipaddr_string(&ip->ip_src), | ^ print-nfs.c:231:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | ipaddr_string(&ip->ip_dst), | ^ print-nfs.c:229:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 229 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-nfs.c:231:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 231 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-nfs.c:235:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | ipaddr_string(&ip->ip_src), | ^ print-nfs.c:237:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | ipaddr_string(&ip->ip_dst), | ^ print-nfs.c:235:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 235 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-nfs.c:237:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 237 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-nfs.c:290:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:290:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:290:39: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 289 | printf(" %lu (%lu) bytes @ %lu", | ~~~ | %u 290 | ntohl(dp[1]), ntohl(dp[2]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:315:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:315:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:316:11: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), 316 | ntohl(dp[1]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:316:25: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 314 | printf(" %lu (%lu) bytes @ %lu (%lu)", | ~~~ | %u 315 | ntohl(dp[3]), ntohl(dp[2]), 316 | ntohl(dp[1]), ntohl(dp[0])); | ^~~~~~~~~~~~ /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:380:31: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 380 | printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); | ~~~ ^~~~~~~~~~~~ | %u /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:380:45: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 380 | printf(" %lu bytes @ %lu", ntohl(dp[1]), ntohl(dp[0])); | ~~~ ^~~~~~~~~~~~ | %u /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ print-nfs.c:392:23: warning: format specifies type 'unsigned long' but the argument has type 'rpcproc_t' (aka 'unsigned int') [-Wformat] 392 | printf(" proc-%lu", rp->rm_call.cb_proc); | ~~~ ^~~~~~~~~~~~~~~~~~~ | %u print-nfs.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | nfsreq_print(rp, length, ip) | ^ In file included from print-nfs.c:53: ./interface.h:83: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] 83 | extern void nfsreq_print(); | ^ print-nfs.c:405:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 405 | nfs_printfh(dp) | ^ print-nfs.c:76: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] 76 | static void nfs_printfh(); | ^ print-nfs.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | nfs_printfn(cp, len) | ^ print-nfs.c:77: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] 77 | static void nfs_printfn(); | ^ 41 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-atalk.c print-atalk.c:75:21: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 75 | ataddr_string(EXTRACT_SHORT(&dp->srcNet), dp->srcNode), | ^ print-atalk.c:77:21: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | ataddr_string(EXTRACT_SHORT(&dp->dstNet), dp->dstNode), | ^ print-atalk.c:99:12: warning: passing arguments to 'nbp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | nbp_print((struct atNBP *)((u_char *)dp + ddpSize), | ^ print-atalk.c:103:12: warning: passing arguments to 'atp_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | atp_print((struct atATP *)((u_char *)dp + ddpSize), length); | ^ print-atalk.c:118:26: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 118 | (void)printf(" at-#%d %d", length); | ~^ print-atalk.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | ddp_print(dp, length) | ^ In file included from print-atalk.c:49: ./interface.h:86: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] 86 | extern void ddp_print(); | ^ print-atalk.c:144:19: warning: passing arguments to 'atp_bitmap_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | atp_bitmap_print(ap->bitmap); | ^ print-atalk.c:182:19: warning: passing arguments to 'atp_bitmap_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 182 | atp_bitmap_print(ap->bitmap); | ^ print-atalk.c:214:25: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 214 | (void)printf(" 0x%x", data); | ~~ ^~~~ | %lx print-atalk.c:124:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 124 | atp_print(ap, length) | ^ print-atalk.c:58: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] 58 | static void atp_print(); | ^ print-atalk.c:218:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | atp_bitmap_print(bm) | ^ print-atalk.c:60: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] 60 | static void atp_bitmap_print(); | ^ print-atalk.c:282:23: warning: passing arguments to 'nbp_name_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | (void)nbp_name_print(tp, ep); | ^ print-atalk.c:295:23: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 295 | ataddr_string(EXTRACT_SHORT(&tp->net), | ^ print-atalk.c:305:24: warning: passing arguments to 'nbp_tuple_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 305 | tp = nbp_tuple_print(tp, ep, dp); | ^ print-atalk.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 250 | nbp_print(np, length, dp) | ^ print-atalk.c:59: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] 59 | static void nbp_print(); | ^ print-atalk.c:317:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 317 | print_cstring(cp, ep) | ^ print-atalk.c:356:22: warning: passing arguments to 'nbp_name_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 356 | tpn = nbp_name_print(tp, ep); | ^ print-atalk.c:370:22: warning: passing arguments to 'ataddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 370 | ataddr_string(EXTRACT_SHORT(&tp->net), tp->node)); | ^ print-atalk.c:345:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 345 | nbp_tuple_print(tp, ep, dp) | ^ print-atalk.c:56:27: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 56 | static struct atNBPtuple *nbp_tuple_print(); | ^ print-atalk.c:386:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 386 | if (cp = print_cstring(cp, ep)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:386:9: note: place parentheses around the assignment to silence this warning 386 | if (cp = print_cstring(cp, ep)) { | ^ | ( ) print-atalk.c:386:9: note: use '==' to turn this assignment into an equality comparison 386 | if (cp = print_cstring(cp, ep)) { | ^ | == print-atalk.c:389:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 389 | if (cp = print_cstring(cp, ep)) { | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:389:10: note: place parentheses around the assignment to silence this warning 389 | if (cp = print_cstring(cp, ep)) { | ^ | ( ) print-atalk.c:389:10: note: use '==' to turn this assignment into an equality comparison 389 | if (cp = print_cstring(cp, ep)) { | ^ | == print-atalk.c:392:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 392 | if (cp = print_cstring(cp, ep)) | ~~~^~~~~~~~~~~~~~~~~~~~~~~ print-atalk.c:392:11: note: place parentheses around the assignment to silence this warning 392 | if (cp = print_cstring(cp, ep)) | ^ | ( ) print-atalk.c:392:11: note: use '==' to turn this assignment into an equality comparison 392 | if (cp = print_cstring(cp, ep)) | ^ | == print-atalk.c:376:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 376 | nbp_name_print(tp, ep) | ^ print-atalk.c:57:27: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 57 | static struct atNBPtuple *nbp_name_print(); | ^ print-atalk.c:449:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 449 | i3 = strlen(nambuf) + 1; | ^ print-atalk.c:449:9: note: include the header or explicitly provide a declaration for 'strlen' print-atalk.c:450:15: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 450 | tp->name = strcpy(malloc((unsigned) i3), nambuf); | ^ print-atalk.c:450:15: note: include the header or explicitly provide a declaration for 'strcpy' print-atalk.c:411:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 411 | ataddr_string(atnet, athost) | ^ print-atalk.c:55: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] 55 | static char *ataddr_string(); | ^ 33 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-tftp.c print-tftp.c:62:21: warning: '/*' within block comment [-Wcomment] 62 | EBADOP, "EBADOP", /* illegal TFTP operation */ | ^ print-tftp.c:91:11: warning: call to undeclared function 'ntohs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 91 | opcode = ntohs(tp->th_opcode); | ^ print-tftp.c:109:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | if (printfn((u_char *)tp->th_stuff, ep)) { | ^ print-tftp.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 73 | tftp_print(tp, length) | ^ In file included from print-tftp.c:37: ./interface.h:88: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] 88 | extern void tftp_print(); | ^ 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-sunrpc.c print-sunrpc.c:66:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 66 | bswap(bp, n) | ^ print-sunrpc.c:95:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 95 | ipaddr_string(&ip->ip_src), | ^ print-sunrpc.c:97:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | ipaddr_string(&ip->ip_dst), | ^ print-sunrpc.c:95:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 95 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-sunrpc.c:97:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 97 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-sunrpc.c:101:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | ipaddr_string(&ip->ip_src), | ^ print-sunrpc.c:103:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | ipaddr_string(&ip->ip_dst), | ^ print-sunrpc.c:101:24: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 101 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-sunrpc.c:103:24: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 103 | ipaddr_string(&ip->ip_dst), | ^~~~~~~~~~ print-sunrpc.c:80:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 80 | sunrpcrequest_print(rp, length, ip) | ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-rip.c print-rip.c:48:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 48 | rip_print(dat, length) | ^ In file included from print-rip.c:44: ./interface.h:87: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] 87 | extern void rip_print(); | ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-icmp.c print-icmp.c:71:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 71 | ipaddr_string(&ip->ip_src), | ^ print-icmp.c:72:16: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 72 | ipaddr_string(&ip->ip_dst)); | ^ print-icmp.c:71:18: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 71 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-icmp.c:72:18: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 72 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-icmp.c:73:2: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 73 | strcpy(str, "[?]"); | ^ print-icmp.c:73:2: note: include the header or explicitly provide a declaration for 'strcpy' print-icmp.c:85:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ print-icmp.c:89:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ print-icmp.c:94:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ print-icmp.c:107:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 107 | ipaddr_string(&oip->ip_dst), | ^ print-icmp.c:107:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 107 | ipaddr_string(&oip->ip_dst), | ^~~~~~~~~~~ print-icmp.c:113:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 113 | ipaddr_string(&oip->ip_dst), | ^ print-icmp.c:113:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 113 | ipaddr_string(&oip->ip_dst), | ^~~~~~~~~~~ print-icmp.c:119:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 119 | ipaddr_string(&oip->ip_dst), | ^ print-icmp.c:119:21: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 119 | ipaddr_string(&oip->ip_dst), | ^~~~~~~~~~~ print-icmp.c:126:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ print-icmp.c:131:18: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | ipaddr_string(&dp->icmp_ip.ip_dst)); | ^ print-icmp.c:143:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ print-icmp.c:144:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | ipaddr_string(&dp->icmp_gwaddr)); | ^ print-icmp.c:148:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ print-icmp.c:149:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | ipaddr_string(&dp->icmp_gwaddr)); | ^ print-icmp.c:153:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 153 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ print-icmp.c:154:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | ipaddr_string(&dp->icmp_gwaddr)); | ^ print-icmp.c:158:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | ipaddr_string(&dp->icmp_ip.ip_dst), | ^ print-icmp.c:159:25: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 159 | ipaddr_string(&dp->icmp_gwaddr)); | ^ print-icmp.c:172:10: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | inet_ntoa(dp->icmp_adv[0].addr), | ^ print-icmp.c:172:10: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 170 | (void)sprintf(buf, "disc. adv.: [num = %d, lifetime = %d] %s/%d...", | ~~ | %d 171 | dp->icmp_num, ntohs(dp->icmp_lifetime), 172 | inet_ntoa(dp->icmp_adv[0].addr), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-icmp.c:216:48: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 216 | (void)sprintf(buf, "address mask is 0x%08x", dp->icmp_mask); | ~~~~ ^~~~~~~~~~~~~ | %08lx print-icmp.c:53:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 53 | icmp_print(dp, ip) | ^ In file included from print-icmp.c:49: ./interface.h:79: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] 79 | extern void icmp_print(); | ^ 29 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-bootp.c print-bootp.c:108:23: warning: format specifies type 'unsigned int' but the argument has type 'long' [-Wformat] 108 | printf(" xid:0x%x", xid); | ~~ ^~~ | %lx print-bootp.c:115:32: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | printf(" C:%s", ipaddr_string(&bp->bp_ciaddr)); | ^ print-bootp.c:120:32: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 120 | printf(" Y:%s", ipaddr_string(&bp->bp_yiaddr)); | ^ print-bootp.c:125:32: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | printf(" S:%s", ipaddr_string(&bp->bp_siaddr)); | ^ print-bootp.c:130:32: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | printf(" G:%s", ipaddr_string(&bp->bp_giaddr)); | ^ print-bootp.c:152:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | if (printfn(bp->bp_sname, ep)) { | ^ print-bootp.c:160:7: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 160 | if (printfn(bp->bp_file, ep)) { | ^ print-bootp.c:173:16: warning: passing arguments to 'rfc1048_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 173 | rfc1048_print(bp->bp_vend, sizeof(bp->bp_vend)); | ^ print-bootp.c:175:12: warning: passing arguments to 'cmu_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | cmu_print(bp->bp_vend, sizeof(bp->bp_vend)); | ^ print-bootp.c:180:20: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 180 | printf("-#0x%x", ul); | ~~ ^~ | %lx print-bootp.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | bootp_print(bp, length, sport, dport) | ^ In file included from print-bootp.c:43: ./interface.h:89: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] 89 | extern void bootp_print(); | ^ print-bootp.c:219:34: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | printf(" SM:%s", ipaddr_string(&ul)); | ^ print-bootp.c:225:34: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | printf(" TS:%s", ipaddr_string(&ul)); | ^ print-bootp.c:231:33: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | printf(" G:%s", ipaddr_string(&ul)); | ^ print-bootp.c:247:21: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 247 | printf(":0x%x", ul); | ~~ ^~ | %lx print-bootp.c:190:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 190 | rfc1048_print(bp, length) | ^ print-bootp.c:47:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 47 | void rfc1048_print(); | ^ print-bootp.c:263:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 263 | cmu_print(bp, length) | ^ print-bootp.c:48:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 48 | void cmu_print(); | ^ 20 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-snmp.c print-snmp.c:185:1: warning: 'static' ignored on this declaration [-Wmissing-declarations] 185 | static struct tree { | ^ print-snmp.c:273:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 273 | char *DECODE_ErrorStatus( e ) | ^ In file included from print-snmp.c:58: ./snmp.h:10: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] 10 | char *DECODE_ErrorStatus(); | ^ print-snmp.c:282:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 282 | char *DECODE_GenericTrap( e ) | ^ In file included from print-snmp.c:58: ./snmp.h:11: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] 11 | char *DECODE_GenericTrap(); | ^ print-snmp.c:380:36: warning: format specifies type 'unsigned int' but the argument has type 'unsigned long' [-Wformat] 380 | printf("[len%dasnlen); | ~~ ^~~~~~~~~~~~ | %lu print-snmp.c:307:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 307 | asn1_parse(p, len, elem) | ^ In file included from print-snmp.c:58: ./snmp.h:46:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 46 | int asn1_parse(); | ^ print-snmp.c:541:7: warning: call to undeclared library function 'memcmp' with type 'int (const void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | if (!memcmp(a->oid, p, strlen(a->oid))) { | ^ print-snmp.c:541:7: note: include the header or explicitly provide a declaration for 'memcmp' print-snmp.c:541:25: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 541 | if (!memcmp(a->oid, p, strlen(a->oid))) { | ^ print-snmp.c:541:25: note: include the header or explicitly provide a declaration for 'strlen' print-snmp.c:564:2: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 564 | OBJ_PRINT(o/OIDMUX, first); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:564:2: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:564:2: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:567:7: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 567 | OBJ_PRINT(o, first); | ^~~~~~~~~~~~~~~~~~~ print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ~~~~~^~~~~~~~~~~~~~~~~ print-snmp.c:567:7: note: place parentheses around the assignment to silence this warning print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:567:7: note: use '==' to turn this assignment into an equality comparison print-snmp.c:232:17: note: expanded from macro 'OBJ_PRINT' 232 | } while (objp = objp->next_peer); \ | ^ print-snmp.c:590:13: warning: call to undeclared function 'printfn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 590 | (void)printfn(p, p+asnlen); | ^ print-snmp.c:600:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 600 | printf("Seq(%d)", elem->asnlen); | ~~ ^~~~~~~~~~~~ | %lu print-snmp.c:618:34: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 617 | printf("%s(%d)", | ~~ | %lu 618 | Class[CONTEXT].Id[elem->id], elem->asnlen); | ^~~~~~~~~~~~ print-snmp.c:518:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 518 | void asn1_print(elem) | ^ In file included from print-snmp.c:58: ./snmp.h:47:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 47 | void asn1_print(); | ^ print-snmp.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 703 | varbind_print (pduid, np, length, error) | ^ print-snmp.c:833:33: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 833 | printf("[errorIndex(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:837:5: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 836 | printf("[errorIndex(%d) w/o errorStatus]", | ~~ | %ld 837 | elem.data.integer); | ^~~~~~~~~~~~~~~~~ print-snmp.c:839:18: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 839 | printf("@%d", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:784:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 784 | snmppdu_print (pduid, np, length) | ^ print-snmp.c:916:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 916 | printf("[specific-trap(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:918:19: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 918 | printf(" s=%d", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:857:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 857 | trap_print (np, length) | ^ print-snmp.c:987:30: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 987 | printf("[version(%d)!=0]", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld print-snmp.c:1002:6: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1002 | if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) | ^ print-snmp.c:1002:6: note: include the header or explicitly provide a declaration for 'strncmp' print-snmp.c:1002:14: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 1002 | if (strncmp(elem.data.str, DEF_COMMUNITY, sizeof(DEF_COMMUNITY)-1)) | ^~~~~~~~~~~~~ print-snmp.c:1004:15: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 1004 | printf("C=%.*s ", elem.asnlen, elem.data.str); | ~~^~ ~~~~~~~~~~~ print-snmp.c:944:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 944 | snmp_print (np, length) | ^ In file included from print-snmp.c:56: ./interface.h:90: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] 90 | extern void snmp_print(); | ^ print-snmp.c:1042:16: warning: passing arguments to 'getenv' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | file = getenv("MIBFILE"); | ^ print-snmp.c:1044:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1044 | Mib = read_mib(file); | ^ print-snmp.c:1046:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1046 | Mib = read_mib("mib.txt"); | ^ print-snmp.c:1048:19: warning: passing arguments to 'read_mib' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1048 | Mib = read_mib("/usr/local/lib/tcpview/mib/mib.txt"); | ^ print-snmp.c:1051:5: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1051 | exit(2); | ^ print-snmp.c:1051:5: note: include the header or explicitly provide a declaration for 'exit' print-snmp.c:1055:21: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1055 | a->node = lookup(a->name); | ^ print-snmp.c:1077:14: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1077 | iso = enter("iso"); | ^ print-snmp.c:1088:5: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1088 | strncpy(name,buf,sizeof(name)); | ^ print-snmp.c:1088:5: note: include the header or explicitly provide a declaration for 'strncpy' print-snmp.c:1096:20: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1096 | parent = lookup(stp); | ^ print-snmp.c:1105:16: warning: passing arguments to 'lookup' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1105 | hp = lookup(name); | ^ print-snmp.c:1107:17: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1107 | hp = enter(name); | ^ print-snmp.c:1110:23: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1110 | if(hp->subid==atoi(stp)) | ^ print-snmp.c:1117:19: warning: passing arguments to 'enter' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1117 | hp = enter(name); | ^ print-snmp.c:1119:17: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1119 | hp->subid = atoi(stp); | ^ print-snmp.c:1120:14: warning: passing arguments to 'add_child' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1120 | add_child(parent,hp); | ^ print-snmp.c:1128:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1128 | if(!strcmp(stp,"INTEGER")) | ^ print-snmp.c:1128:9: note: include the header or explicitly provide a declaration for 'strcmp' print-snmp.c:1063:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1063 | static struct tree *read_mib(filename) | ^ print-snmp.c:197:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 197 | static struct tree *read_mib(); | ^ print-snmp.c:1165:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1165 | static struct tree *lookup(name) | ^ print-snmp.c:199:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 199 | static struct tree *lookup(); | ^ print-snmp.c:1192:23: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1192 | hp = (struct tree *)malloc(sizeof(struct tree)); | ^ print-snmp.c:1192:23: note: include the header or explicitly provide a declaration for 'malloc' print-snmp.c:1195:3: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1195 | strcpy(hp->label,name); | ^ print-snmp.c:1195:3: note: include the header or explicitly provide a declaration for 'strcpy' print-snmp.c:1185:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1185 | static struct tree *enter(name) | ^ print-snmp.c:198:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 198 | static struct tree *enter(); | ^ print-snmp.c:1203:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | static int add_child(parent, child) | ^ print-snmp.c:200: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] 200 | static int add_child(); | ^ 57 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ntp.c print-ntp.c:143:2: warning: call to undeclared function 'p_sfix'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 143 | p_sfix(&bp->distance); | ^ print-ntp.c:156:3: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 156 | strncpy(rclock, (char *)&(bp->refid), 4); | ^ print-ntp.c:156:3: note: include the header or explicitly provide a declaration for 'strncpy' print-ntp.c:162:40: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | printf("%s INFO_QUERY", ipaddr_string(&(bp->refid))); | ^ print-ntp.c:167:40: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 167 | printf("%s INFO_REPLY", ipaddr_string(&(bp->refid))); | ^ print-ntp.c:172:29: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | printf("%s", ipaddr_string(&(bp->refid))); | ^ print-ntp.c:178:2: warning: call to undeclared function 'p_ntp_time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | p_ntp_time(&(bp->reftime)); | ^ print-ntp.c:186:2: warning: call to undeclared function 'p_ntp_delta'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 186 | p_ntp_delta(&(bp->org), &(bp->rec)); | ^ print-ntp.c:54:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 54 | ntp_print(bp, length) | ^ In file included from print-ntp.c:46: ./interface.h:82: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] 82 | extern void ntp_print(); | ^ print-ntp.c:199:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 199 | p_sfix(sfp) | ^ | int print-ntp.c:199:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ntp.c:211:1: warning: non-void function does not return a value [-Wreturn-type] 211 | } | ^ print-ntp.c:215:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 215 | p_ntp_time(lfp) | ^ | int print-ntp.c:230:24: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 230 | printf("%lu.%09d", i, f); | ~~~~ ^ | %09lu print-ntp.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | p_ntp_time(lfp) | ^ print-ntp.c:231:1: warning: non-void function does not return a value [-Wreturn-type] 231 | } | ^ print-ntp.c:234:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 234 | p_ntp_delta(olfp, lfp) | ^ | int print-ntp.c:280:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 280 | printf("%d.%09d", i, f); | ~~ ^ | %ld print-ntp.c:280:23: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 280 | printf("%d.%09d", i, f); | ~~~~ ^ | %09lu print-ntp.c:234:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 234 | p_ntp_delta(olfp, lfp) | ^ print-ntp.c:281:1: warning: non-void function does not return a value [-Wreturn-type] 281 | } | ^ 21 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-domain.c print-domain.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | ns_nskip(cp) | ^ print-domain.c:89:8: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 89 | if (i = *cp++) | ~~^~~~~~~ print-domain.c:89:8: note: place parentheses around the assignment to silence this warning 89 | if (i = *cp++) | ^ | ( ) print-domain.c:89:8: note: use '==' to turn this assignment into an equality comparison 89 | if (i = *cp++) | ^ | == print-domain.c:81:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | ns_nprint(cp, bp, ep) | ^ print-domain.c:156:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 156 | else | ^ print-domain.c:109:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 109 | ns_qprint(cp, bp, ep) | ^ print-domain.c:186:3: warning: add explicit braces to avoid dangling else [-Wdangling-else] 186 | else | ^ print-domain.c:192:41: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | case T_A: printf(" A %s", ipaddr_string(cp)); break; | ^ print-domain.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 166 | ns_rprint(cp, bp, ep) | ^ print-domain.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | ns_print(np, length) | ^ In file included from print-domain.c:46: ./interface.h:85: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] 85 | extern void ns_print(); | ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ospf.c print-ospf.c:93:5: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 92 | printf(" S %X age ", | ~~ | %lX 93 | seq); | ^~~ print-ospf.c:96:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~ | %ld 96 | hour, | ^~~~ print-ospf.c:97:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~~~ | %02ld 96 | hour, 97 | mins, | ^~~~ print-ospf.c:98:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 95 | printf("%d:%02d:%02d", | ~~~~ | %02ld 96 | hour, 97 | mins, 98 | sec); | ^~~ print-ospf.c:101:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 100 | printf("%d:%02d", | ~~ | %ld 101 | mins, | ^~~~ print-ospf.c:102:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 100 | printf("%d:%02d", | ~~~~ | %02ld 101 | mins, 102 | sec); | ^~~ print-ospf.c:105:9: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 104 | printf("%d", | ~~ | %ld 105 | sec); | ^~~ print-ospf.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 84 | ospf_print_seqage(seq, us) | ^ print-ospf.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 111 | ospf_print_bits(bp, options) | ^ print-ospf.c:160:21: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 160 | ospf_print_bits(ospf_option_bits, lshp->ls_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 164 | LS_PRINT(lshp, lshp->ls_type); | ^ print-ospf.c:130:34: note: expanded from macro 'LS_PRINT' 130 | printf(" rtr %s ", ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:42: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:74: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:40: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:73: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:40: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:72: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:41: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:74: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:42: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:164:5: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:75: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:144:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 144 | ospf_print_lshdr(lshp, end) | ^ print-ospf.c:201:18: warning: passing 'const struct bits[5]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 201 | ospf_print_bits(ospf_rla_flag_bits, lsap->lsa_un.un_rla.rla_flags); | ^~~~~~~~~~~~~~~~~~ print-ospf.c:220:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | ipaddr_string(&rlp->link_id), | ^ print-ospf.c:221:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 221 | ipaddr_string(&rlp->link_data)); | ^ print-ospf.c:226:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 226 | ipaddr_string(&rlp->link_id), | ^ print-ospf.c:227:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | ipaddr_string(&rlp->link_data)); | ^ print-ospf.c:232:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 232 | ipaddr_string(&rlp->link_id), | ^ print-ospf.c:233:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | ipaddr_string(&rlp->link_data)); | ^ print-ospf.c:256:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | ipaddr_string(&lsap->lsa_un.un_nla.nla_mask)); | ^ print-ospf.c:261:19: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 261 | ipaddr_string(ap)); | ^ print-ospf.c:267:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 267 | ipaddr_string(&lsap->lsa_un.un_sla.sla_mask)); | ^ print-ospf.c:278:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 277 | printf(" tos %d metric %d", | ~~ | %lu 278 | (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:279:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 277 | printf(" tos %d metric %d", | ~~ | %lu 278 | (ul & SLA_MASK_TOS) >> SLA_SHIFT_TOS, 279 | ul & SLA_MASK_METRIC); | ^~~~~~~~~~~~~~~~~~~~ print-ospf.c:285:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | ipaddr_string(&lsap->lsa_un.un_asla.asla_mask)); | ^ print-ospf.c:294:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 292 | printf(" type %d tos %d metric %d", | ~~ | %lu 293 | (ul & ASLA_FLAG_EXTERNAL) ? 2 : 1, 294 | (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:295:6: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 292 | printf(" type %d tos %d metric %d", | ~~ | %lu 293 | (ul & ASLA_FLAG_EXTERNAL) ? 2 : 1, 294 | (ul & ASLA_MASK_TOS) >> ASLA_SHIFT_TOS, 295 | (ul & ASLA_MASK_METRIC)); | ^~~~~~~~~~~~~~~~~~~~~~~ print-ospf.c:298:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 298 | ipaddr_string(&almp->asla_forward)); | ^ print-ospf.c:302:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 302 | ipaddr_string(&almp->asla_tag)); | ^ print-ospf.c:315:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | ipaddr_string(&mcp->mcla_vid)); | ^ print-ospf.c:320:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 320 | ipaddr_string(&mcp->mcla_vid)); | ^ print-ospf.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | ospf_print_lsa(lsap, end) | ^ print-ospf.c:353:18: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 353 | ipaddr_string(&ip->ip_src), | ^ print-ospf.c:354:18: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 354 | ipaddr_string(&ip->ip_dst)); | ^ print-ospf.c:353:20: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 353 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-ospf.c:354:20: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 354 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-ospf.c:388:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 388 | ipaddr_string(&op->ospf_routerid)); | ^ print-ospf.c:397:22: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 397 | ipaddr_string(&op->ospf_areaid)); | ^ print-ospf.c:424:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 424 | ipaddr_string((struct in_addr *) op->ospf_authdata), | ^ print-ospf.c:425:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 425 | ipaddr_string((struct in_addr *) &op->ospf_authdata[sizeof (struct in_addr)])); | ^ print-ospf.c:454:19: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 454 | ospf_print_bits(ospf_option_bits, op->ospf_hello.hello_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:456:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 456 | ipaddr_string(&op->ospf_hello.hello_mask), | ^ print-ospf.c:467:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 467 | ipaddr_string(&op->ospf_hello.hello_dr)); | ^ print-ospf.c:475:23: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 475 | ipaddr_string(&op->ospf_hello.hello_bdr)); | ^ print-ospf.c:487:20: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 487 | ipaddr_string(ap)); | ^ print-ospf.c:496:22: warning: passing 'const struct bits[4]' to parameter of type 'struct bits *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 496 | ospf_print_bits(ospf_option_bits, op->ospf_db.db_options); | ^~~~~~~~~~~~~~~~ print-ospf.c:539:11: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 538 | printf(" ??LinkStateType %d }", | ~~ | %ld 539 | type); | ^~~~ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | LS_PRINT(lsrp, type); | ^ print-ospf.c:130:34: note: expanded from macro 'LS_PRINT' 130 | printf(" rtr %s ", ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:42: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:132:74: note: expanded from macro 'LS_PRINT' 132 | printf(" net dr %s if %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:40: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:134:73: note: expanded from macro 'LS_PRINT' 134 | printf(" sum %s abr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:40: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:136:72: note: expanded from macro 'LS_PRINT' 136 | printf(" abr %s rtr %s", ipaddr_string(&lsp->ls_router), ipaddr_string(&lsp->ls_stateid)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:41: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:138:74: note: expanded from macro 'LS_PRINT' 138 | printf(" ase %s asbr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:42: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:544:7: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] print-ospf.c:140:75: note: expanded from macro 'LS_PRINT' 140 | printf(" group %s rtr %s", ipaddr_string(&lsp->ls_stateid), ipaddr_string(&lsp->ls_router)); break; \ | ^ print-ospf.c:337:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 337 | ospf_print(dat, length, ip) | ^ 69 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-egp.c print-egp.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | egpnrprint(egp, length) | ^ print-egp.c:227:21: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | ipaddr_string(&ip->ip_src), | ^ print-egp.c:228:21: warning: passing arguments to 'ipaddr_string' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | ipaddr_string(&ip->ip_dst)); | ^ print-egp.c:227:23: warning: taking address of packed member 'ip_src' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 227 | ipaddr_string(&ip->ip_src), | ^~~~~~~~~~ print-egp.c:228:23: warning: taking address of packed member 'ip_dst' of class or structure 'ip' may result in an unaligned pointer value [-Waddress-of-packed-member] 228 | ipaddr_string(&ip->ip_dst)); | ^~~~~~~~~~ print-egp.c:278:22: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 278 | printf("[status %d], status"); | ~^ print-egp.c:298:23: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 298 | printf(" [status %d], status"); | ~^ print-egp.c:302:25: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] 302 | printf("[reach code %d], code"); | ~^ print-egp.c:339:24: warning: data argument not used by format string [-Wformat-extra-args] 339 | printf(" [status]", status); | ~~~~~~~~~~~ ^ print-egp.c:217:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | egp_print(egp, length, ip) | ^ In file included from print-egp.c:33: ./interface.h:95: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] 95 | extern void egp_print(); | ^ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tv_addrtoname.c tv_addrtoname.c:170: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 previous declaration [-Wdeprecated-non-prototype] 170 | int strcasecmp(); | ^ tv_addrtoname.c:162:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | int GetEtherList (list, size) | ^ tv_addrtoname.c:217:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | char *GetEtherFromName(str) | ^ tv_addrtoname.c:271:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | lookup_manuf(ep, enter) | ^ tv_addrtoname.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | intoa(addr) | ^ tv_addrtoname.c:333:25: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | static struct hnamemem *lookup_name(addr) | ^ tv_addrtoname.c:362:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | ipaddr_string(ap) | ^ In file included from tv_addrtoname.c:76: ./addrtoname.h:56: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] 56 | char *ipaddr_string(); | ^ tv_addrtoname.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 399 | getname(ap,flag) | ^ tv_addrtoname.c:416:10: warning: cast to smaller integer type 'int' from 'u_char *' (aka 'unsigned char *') [-Wpointer-to-int-cast] 416 | switch ((int)ap & 3) { | ^~~~~~~ tv_addrtoname.c:498:12: warning: call to undeclared function 'alarm'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 498 | (void)alarm(20); | ^ tv_addrtoname.c:530:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 530 | get_manuf(str, addr) | ^ tv_addrtoname.c:544:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 544 | lookup_emem(ep) | ^ tv_addrtoname.c:600:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | char *etheraddr_string(ep) | ^ tv_addrtoname.c:611:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 611 | etheraddr_str(ep, flag) | ^ tv_addrtoname.c:639:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 639 | etherproto_str(port, flag) | ^ tv_addrtoname.c:640:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] 640 | u_short port; | ^ ./addrtoname.h:31:29: note: previous declaration is here 31 | char *etherproto_str(u_short, int); | ^ tv_addrtoname.c:667:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 667 | ipproto_string(pro) | ^ tv_addrtoname.c:668:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] 668 | u_short pro; | ^ ./addrtoname.h:36:29: note: previous declaration is here 36 | char *ipproto_string(u_short); | ^ tv_addrtoname.c:683:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 683 | lookup_port(port, mode) | ^ tv_addrtoname.c:724:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 724 | tcpport_string(port) | ^ tv_addrtoname.c:725:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] 725 | u_short port; | ^ ./addrtoname.h:32:29: note: previous declaration is here 32 | char *tcpport_string(u_short); | ^ tv_addrtoname.c:736:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 736 | udpport_string(port) | ^ tv_addrtoname.c:737:9: warning: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'u_short' (aka 'unsigned short') declared in a previous prototype [-Wknr-promoted-parameter] 737 | u_short port; | ^ ./addrtoname.h:33:29: note: previous declaration is here 33 | char *udpport_string(u_short); | ^ tv_addrtoname.c:753:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 753 | while (sv = GetServent()) { | ~~~^~~~~~~~~~~~~~ tv_addrtoname.c:753:13: note: place parentheses around the assignment to silence this warning 753 | while (sv = GetServent()) { | ^ | ( ) tv_addrtoname.c:753:13: note: use '==' to turn this assignment into an equality comparison 753 | while (sv = GetServent()) { | ^ | == tv_addrtoname.c:779:30: warning: passing arguments to 'next_manufent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 779 | while (mf = next_manufent(fp)) { | ^ tv_addrtoname.c:779:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 779 | while (mf = next_manufent(fp)) { | ~~~^~~~~~~~~~~~~~~~~~~ tv_addrtoname.c:779:15: note: place parentheses around the assignment to silence this warning 779 | while (mf = next_manufent(fp)) { | ^ | ( ) tv_addrtoname.c:779:15: note: use '==' to turn this assignment into an equality comparison 779 | while (mf = next_manufent(fp)) { | ^ | == tv_addrtoname.c:783:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 783 | close(fp); | ^ tv_addrtoname.c:789:29: warning: passing arguments to 'next_etherent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 789 | while (e = next_etherent(fp)) { | ^ tv_addrtoname.c:789:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 789 | while (e = next_etherent(fp)) { | ~~^~~~~~~~~~~~~~~~~~~ tv_addrtoname.c:789:14: note: place parentheses around the assignment to silence this warning 789 | while (e = next_etherent(fp)) { | ^ | ( ) tv_addrtoname.c:789:14: note: use '==' to turn this assignment into an equality comparison 789 | while (e = next_etherent(fp)) { | ^ | == tv_addrtoname.c:793:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 793 | close(fp); | ^ 31 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-ether.c detail-ether.c:68:10: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 67 | printf("%02d:%02d:%02d.%04d ",i / 3600, (i % 3600) / 60, | ~~~~ | %04ld 68 | i % 60,tvp->tv_usec/100); | ^~~~~~~~~~~~~~~~ detail-ether.c:69:53: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 69 | printf(" Frame size is %d (%d captured) bytes\n",Phdr->len,Phdr->caplen); | ~~ ^~~~~~~~~ | %lu detail-ether.c:69:63: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 69 | printf(" Frame size is %d (%d captured) bytes\n",Phdr->len,Phdr->caplen); | ~~ ^~~~~~~~~~~~ | %lu detail-ether.c:99:14: warning: passing arguments to 'detail_ip' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | detail_ip(p); | ^ detail-ether.c:103:15: warning: passing arguments to 'detail_arp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | detail_arp(p); | ^ detail-ether.c:52:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 52 | void detail_ether( p ) | ^ In file included from detail-ether.c:46: ./tcpview.h:103:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 103 | void detail_ether(); | ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-arp.c detail-arp.c:50:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | detail_arp(ap) | ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-ip.c detail-ip.c:46:7: warning: cast to smaller integer type 'int' from 'struct ip *' [-Wpointer-to-int-cast] 46 | if ((int)ip & (sizeof(long)-1)) { | ^~~~~~~ detail-ip.c:48:24: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 48 | abuf = (u_char *)malloc(MAX_SNAPLEN); | ^ detail-ip.c:48:24: note: include the header or explicitly provide a declaration for 'malloc' detail-ip.c:49:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 49 | bcopy((char *)ip, (char *)abuf, Phdr->caplen-Offset); | ^ detail-ip.c:49:5: note: include the header or explicitly provide a declaration for 'bcopy' detail-ip.c:74:5: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | strcpy(buf,Precedence[prec]); | ^ detail-ip.c:74:5: note: include the header or explicitly provide a declaration for 'strcpy' detail-ip.c:76:18: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 76 | if( *buf ) strcat(buf,", "); | ^ detail-ip.c:76:18: note: include the header or explicitly provide a declaration for 'strcat' detail-ip.c:146:15: warning: passing arguments to 'detail_tcp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 146 | detail_tcp((struct tcphdr *)cp, len); | ^ detail-ip.c:149:15: warning: passing arguments to 'detail_udp' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | detail_udp((struct udphdr *)cp, len); | ^ detail-ip.c:157:5: warning: call to undeclared function 'detail_icmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 157 | detail_icmp((struct icmp *)cp, len); | ^ detail-ip.c:31:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 31 | void detail_ip(ip) | ^ detail-ip.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 ip_optprint(cp, length) | ^ detail-ip.c:246:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 246 | static void ip_printroute(cp, length) | ^ detail-ip.c:279:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | static void do_addr( ptr, len, addr) | ^ detail-ip.c:290:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 290 | if( strcmp(str1,str2) ) | ^ detail-ip.c:290:9: note: include the header or explicitly provide a declaration for 'strcmp' 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-tcp.c detail-tcp.c:85:3: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 85 | bcopy(&tp->th_seq,&seq,4); | ^ detail-tcp.c:85:3: note: include the header or explicitly provide a declaration for 'bcopy' detail-tcp.c:56:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | void detail_tcp( tp, length ) | ^ In file included from detail-tcp.c:51: ./tcpview.h:104:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 104 | void detail_tcp(); | ^ 3 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-udp.c detail-udp.c:152:5: warning: call to undeclared function 'detail_rip'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 152 | detail_rip((u_char *)(up + 1), length); | ^ detail-udp.c:154:5: warning: call to undeclared function 'detail_domain'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | detail_domain((u_char *)(up + 1), length); | ^ detail-udp.c:156:5: warning: call to undeclared function 'detail_snmp'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 156 | detail_snmp((u_char *)(up + 1), length); | ^ detail-udp.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | void detail_udp( up, length ) | ^ In file included from detail-udp.c:76: ./tcpview.h:105:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 105 | void detail_udp(); | ^ 5 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-fddi.c print-fddi.c:241:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | error("not configured for fddi"); | ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-ppp.c In file included from print-ppp.c:36: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ print-ppp.c:68:10: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 68 | ts_print(tvp); | ^ print-ppp.c:89:10: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 89 | ip_print(ip, length); | ^ print-ppp.c:92:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 92 | default_print((u_short *)ip, caplen - PPP_HDRLEN); | ^ print-ppp.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | ppp_if_print(p, tvp, length, caplen) | ^ In file included from print-ppp.c:53: ./interface.h:92: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] 92 | extern void ppp_if_print(); | ^ 6 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-sl.c print-sl.c:247:7: warning: passing arguments to 'error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | error("not configured for slip"); | ^ 1 warning generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print-null.c In file included from print-null.c:31: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ print-null.c:67:2: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 67 | bcopy(p, &family, sizeof(family)); | ^ print-null.c:67:2: note: include the header or explicitly provide a declaration for 'bcopy' print-null.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | null_print(p, ip, length) | ^ print-null.c:106:10: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | ts_print(tvp); | ^ print-null.c:123:10: warning: passing arguments to 'ip_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | ip_print(ip, length); | ^ print-null.c:126:16: warning: passing arguments to 'default_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | default_print((u_short *)ip, caplen - NULL_HDRLEN); | ^ print-null.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | null_if_print(p, tvp, length, caplen) | ^ In file included from print-null.c:54: ./interface.h:94: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] 94 | extern void null_if_print(); | ^ 8 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c gencode.c gencode.c:100:8: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 100 | extern eprintv(char *cp, va_list ap); | ~~~~~~ ^ | int gencode.c:130:3: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 130 | bzero((char *)cp->m, size); | ^ gencode.c:130:3: note: include the header or explicitly provide a declaration for 'bzero' gencode.c:114:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 114 | newchunk(n) | ^ gencode.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 155 | new_block(code) | ^ gencode.c:168:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 168 | new_stmt(code) | ^ gencode.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 180 | gen_retblk(v) | ^ gencode.c:219:2: warning: call to undeclared function 'lex_init'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 219 | lex_init(buf ? buf : ""); | ^ gencode.c:227:15: warning: passing arguments to 'init_linktype' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 227 | init_linktype(linktype); | ^ gencode.c:228:2: warning: call to undeclared function 'yyparse'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 228 | yyparse(); | ^ gencode.c:237:11: warning: passing arguments to 'optimize' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | optimize(&root); | ^ gencode.c:242:20: warning: passing arguments to 'icode_to_fcode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 242 | p = icode_to_fcode(root, &len); | ^ gencode.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | parse(buf, Oflag, linktype, mask) | ^ gencode.c:257:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 257 | backpatch(list, target) | ^ gencode.c:279:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | merge(b0, b1) | ^ gencode.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 293 | finish_parse(p) | ^ In file included from gencode.c:47: ./gencode.h:145: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] 145 | extern void finish_parse(); | ^ gencode.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | gen_and(b0, b1) | ^ In file included from gencode.c:47: ./gencode.h:128: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] 128 | extern void gen_and(); | ^ gencode.c:315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | gen_or(b0, b1) | ^ In file included from gencode.c:47: ./gencode.h:129: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] 129 | extern void gen_or(); | ^ gencode.c:326:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 326 | gen_not(b) | ^ In file included from gencode.c:47: ./gencode.h:130: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] 130 | extern void gen_not(); | ^ gencode.c:333:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | gen_cmp(offset, size, v) | ^ gencode.c:351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 351 | gen_mcmp(offset, size, v, mask) | ^ gencode.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | gen_bcmp(offset, size, v) | ^ gencode.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | init_linktype(type) | ^ gencode.c:75: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] 75 | static void init_linktype(); | ^ gencode.c:458:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 458 | gen_uncond(rsense) | ^ gencode.c:485:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 485 | gen_linktype(proto) | ^ gencode.c:504:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 504 | gen_hostop(addr, mask, dir, proto, src_off, dst_off) | ^ gencode.c:546:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 546 | gen_ehostop(eaddr, dir) | ^ gencode.c:577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | gen_host(addr, mask, proto, dir) | ^ gencode.c:621:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 621 | gen_gateway(eaddr, alist, proto, dir) | ^ gencode.c:650:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 650 | } | ^ gencode.c:653:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 653 | gen_proto_abbrev(proto) | ^ In file included from gencode.c:47: ./gencode.h:135: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] 135 | extern struct block *gen_proto_abbrev(); | ^ gencode.c:717:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 717 | gen_portatom(off, v) | ^ gencode.c:738:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 738 | gen_portop(port, proto, dir) | ^ gencode.c:781:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 781 | gen_port(port, ip_proto, dir) | ^ gencode.c:820:20: warning: passing arguments to 's_nametoproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 820 | v = s_nametoproto(name); | ^ gencode.c:827:21: warning: passing arguments to 's_nametoeproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 827 | v = s_nametoeproto(name); | ^ gencode.c:811:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 811 | lookup_proto(name, proto) | ^ gencode.c:840:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 840 | gen_proto(v, proto, dir) | ^ gencode.c:897:25: warning: passing arguments to 's_nametonetaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 897 | addr = s_nametonetaddr(name); | ^ gencode.c:900:18: warning: passing arguments to 'net_mask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 900 | mask = net_mask(&addr); | ^ gencode.c:907:25: warning: passing arguments to 'ETHER_hostton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 907 | eaddr = ETHER_hostton(name); | ^ gencode.c:913:24: warning: passing arguments to 's_nametoaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 913 | alist = s_nametoaddr(name); | ^ gencode.c:929:19: warning: passing arguments to 's_nametoport' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 929 | if (s_nametoport(name, &port, &real_proto) == 0) | ^ gencode.c:948:24: warning: passing arguments to 'ETHER_hostton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 948 | eaddr = ETHER_hostton(name); | ^ gencode.c:952:23: warning: passing arguments to 's_nametoaddr' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 952 | alist = s_nametoaddr(name); | ^ gencode.c:883:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 883 | gen_scode(name, q) | ^ In file included from gencode.c:47: ./gencode.h:132: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] 132 | extern struct block *gen_scode(); | ^ gencode.c:986:18: warning: passing arguments to 'net_mask' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 986 | mask = net_mask(&v); | ^ gencode.c:973:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 973 | gen_ncode(v, q) | ^ In file included from gencode.c:47: ./gencode.h:134: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] 134 | extern struct block *gen_ncode(); | ^ gencode.c:1017:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1017 | gen_ecode(eaddr, q) | ^ In file included from gencode.c:47: ./gencode.h:133: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] 133 | extern struct block *gen_ecode(); | ^ gencode.c:1026:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1026 | } | ^ gencode.c:1029:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1029 | sappend(s0, s1) | ^ gencode.c:1042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1042 | xfer_to_x(a) | ^ gencode.c:1053:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1053 | xfer_to_a(a) | ^ gencode.c:1073:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1073 | free_reg(index->regno); | ^ gencode.c:1064:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1064 | gen_load(proto, index, size) | ^ In file included from gencode.c:47: ./gencode.h:123:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 123 | extern struct arth *gen_load(); | ^ gencode.c:1167:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1167 | free_reg(a0->regno); | ^ gencode.c:1168:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1168 | free_reg(a1->regno); | ^ gencode.c:1145:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1145 | gen_relation(code, a0, a1, reversed) | ^ In file included from gencode.c:47: ./gencode.h:136: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] 136 | extern struct block *gen_relation(); | ^ gencode.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | gen_loadi(val) | ^ In file included from gencode.c:47: ./gencode.h:122:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 122 | extern struct arth *gen_loadi(); | ^ gencode.c:1225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1225 | gen_neg(a) | ^ In file included from gencode.c:47: ./gencode.h:125:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 125 | extern struct arth *gen_neg(); | ^ gencode.c:1258:10: warning: passing arguments to 'free_reg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1258 | free_reg(a1->regno); | ^ gencode.c:1243:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1243 | gen_arth(code, a0, a1) | ^ In file included from gencode.c:47: ./gencode.h:126:21: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 126 | extern struct arth *gen_arth(); | ^ gencode.c:1292:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1292 | } | ^ gencode.c:1299:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1299 | free_reg(n) | ^ gencode.c:78: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] 78 | static void free_reg(); | ^ gencode.c:1315:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1315 | gen_len(jmp, n) | ^ gencode.c:1332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1332 | gen_greater(n) | ^ In file included from gencode.c:47: ./gencode.h:138: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] 138 | extern struct block *gen_greater(); | ^ gencode.c:1339:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1339 | gen_less(n) | ^ In file included from gencode.c:47: ./gencode.h:137: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] 137 | extern struct block *gen_less(); | ^ gencode.c:1351:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1351 | gen_byteop(op, idx, val) | ^ In file included from gencode.c:47: ./gencode.h:139: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] 139 | extern struct block *gen_byteop(); | ^ gencode.c:1394:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1394 | gen_broadcast(proto) | ^ In file included from gencode.c:47: ./gencode.h:140: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] 140 | extern struct block *gen_broadcast(); | ^ gencode.c:1421:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1421 | } | ^ gencode.c:1424:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1424 | gen_multicast(proto) | ^ In file included from gencode.c:47: ./gencode.h:141: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] 141 | extern struct block *gen_multicast(); | ^ gencode.c:1453:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 1453 | } | ^ 91 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c optimize.c optimize.c:147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | find_levels_r(b) | ^ optimize.c:179:2: warning: call to undeclared library function 'bzero' with type 'void (void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 179 | bzero((char *)levels, n_blocks * sizeof(*levels)); | ^ optimize.c:179:2: note: include the header or explicitly provide a declaration for 'bzero' optimize.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | find_levels(root) | ^ optimize.c:189:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 189 | find_dom(root) | ^ optimize.c:220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 220 | propedom(ep) | ^ optimize.c:235:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 235 | find_edom(root) | ^ optimize.c:265:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 265 | find_closure(root) | ^ optimize.c:330:2: warning: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 330 | abort(); | ^ optimize.c:330:2: note: include the header or explicitly provide a declaration for 'abort' optimize.c:296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 296 | atomuse(s) | ^ optimize.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | atomdef(s) | ^ optimize.c:368:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 368 | compute_local_ud(b) | ^ optimize.c:412:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 412 | find_ud(root) | ^ optimize.c:478:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 478 | F(code, v0, v1) | ^ optimize.c:511:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 511 | vstore(s, valp, newval, alter) | ^ optimize.c:524:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | fold_op(s, v0, v1) | ^ optimize.c:581:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 581 | this_op(s) | ^ optimize.c:590:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | opt_not(b) | ^ optimize.c:600:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 600 | opt_peep(b) | ^ optimize.c:792:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 792 | opt_stmt(s, val, alter) | ^ optimize.c:978:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 978 | deadstmt(s, last) | ^ optimize.c:1004:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1004 | opt_deadstores(b) | ^ optimize.c:1025:12: warning: parameter 'do_stmts' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1025 | opt_blk(b, do_stmts) | ^ 1026 | struct block *b; 1027 | { optimize.c:1044:3: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1044 | bcopy((char *)p->pred->val, (char *)b->val, sizeof(b->val)); | ^ optimize.c:1044:3: note: include the header or explicitly provide a declaration for 'bcopy' optimize.c:1045:12: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 1045 | while (p = p->next) { | ~~^~~~~~~~~ optimize.c:1045:12: note: place parentheses around the assignment to silence this warning 1045 | while (p = p->next) { | ^ | ( ) optimize.c:1045:12: note: use '==' to turn this assignment into an equality comparison 1045 | while (p = p->next) { | ^ | == optimize.c:1025:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1025 | opt_blk(b, do_stmts) | ^ optimize.c:1084:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1084 | use_conflict(b, succ) | ^ optimize.c:1101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1101 | fold_edge(child, ep) | ^ optimize.c:1178:8: warning: call to undeclared function 'ffs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1178 | k = ffs(x) - 1; | ^ optimize.c:1147:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1147 | opt_j(ep) | ^ optimize.c:1203:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1203 | or_pullup(b) | ^ optimize.c:1296:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1296 | and_pullup(b) | ^ optimize.c:1388:16: warning: parameter 'do_stmts' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 1388 | opt_blks(root, do_stmts) | ^ 1389 | struct block *root; 1390 | { optimize.c:1388:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1388 | opt_blks(root, do_stmts) | ^ optimize.c:1422:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1422 | link_inedge(parent, child) | ^ optimize.c:1431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1431 | find_inedges(root) | ^ optimize.c:1466:3: warning: call to undeclared function 'sappend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1466 | sappend(s, tmp); | ^ optimize.c:1454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1454 | opt_root(b) | ^ optimize.c:1471:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1471 | opt_loop(root, do_stmts) | ^ optimize.c:1507:10: warning: passing arguments to 'opt_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1507 | opt_init(root); | ^ optimize.c:1510:15: warning: passing arguments to 'intern_blocks' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1510 | intern_blocks(root); | ^ optimize.c:1500:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1500 | optimize(rootp) | ^ In file included from optimize.c:35: ./gencode.h:143: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] 143 | extern void optimize(); | ^ optimize.c:1516:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1516 | make_marks(p) | ^ optimize.c:69: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] 69 | static void make_marks(); | ^ optimize.c:1533:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1533 | mark_code(p) | ^ optimize.c:70: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] 70 | static void mark_code(); | ^ optimize.c:1545:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1545 | eq_slist(x, y) | ^ optimize.c:74: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] 74 | static int eq_slist(); | ^ optimize.c:1565:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1565 | eq_blk(b0, b1) | ^ optimize.c:1577:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1577 | intern_blocks(root) | ^ optimize.c:72: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] 72 | static void intern_blocks(); | ^ optimize.c:1623:2: warning: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1623 | free((void *)vnode_base); | ^ optimize.c:1623:2: note: include the header or explicitly provide a declaration for 'free' optimize.c:1635:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1635 | slength(s) | ^ optimize.c:1651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1651 | count_blocks(p) | ^ optimize.c:1665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1665 | number_blks_r(p) | ^ optimize.c:1687:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1687 | count_stmts(p) | ^ optimize.c:1717:28: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1717 | blocks = (struct block **)malloc(n * sizeof(*blocks)); | ^ optimize.c:1717:28: note: include the header or explicitly provide a declaration for 'malloc' optimize.c:1705:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1705 | opt_init(root) | ^ optimize.c:66: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] 66 | static void opt_init(); | ^ optimize.c:1788:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1788 | convert_code_r(p) | ^ optimize.c:1838:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1838 | icode_to_fcode(root, lenp) | ^ 61 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c nametoaddr.c nametoaddr.c:65:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 65 | if (hp = gethostbyname(name)) { | ~~~^~~~~~~~~~~~~~~~~~~~~ nametoaddr.c:65:9: note: place parentheses around the assignment to silence this warning 65 | if (hp = gethostbyname(name)) { | ^ | ( ) nametoaddr.c:65:9: note: use '==' to turn this assignment into an equality comparison 65 | if (hp = gethostbyname(name)) { | ^ | == nametoaddr.c:56:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | s_nametoaddr(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:26: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] 26 | extern u_long **s_nametoaddr(); | ^ nametoaddr.c:90:9: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 90 | if (np = getnetbyname(name)) | ~~~^~~~~~~~~~~~~~~~~~~~ nametoaddr.c:90:9: note: place parentheses around the assignment to silence this warning 90 | if (np = getnetbyname(name)) | ^ | ( ) nametoaddr.c:90:9: note: use '==' to turn this assignment into an equality comparison 90 | if (np = getnetbyname(name)) | ^ | == nametoaddr.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | s_nametonetaddr(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:27: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] 27 | extern u_long s_nametonetaddr(); | ^ nametoaddr.c:101:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 101 | s_nametoport(name, port, proto) | ^ | int nametoaddr.c:117:25: warning: passing arguments to 's_nametoproto' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | *proto = s_nametoproto(sp->s_proto); | ^ nametoaddr.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 101 | s_nametoport(name, port, proto) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:29: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] 29 | extern int s_nametoport(); | ^ nametoaddr.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | s_nametoproto(str) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:30: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] 30 | extern int s_nametoproto(); | ^ nametoaddr.c:178:7: warning: call to undeclared library function 'strcasecmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 178 | if (strcasecmp(p->s, s) == 0) | ^ nametoaddr.c:178:7: note: include the header or explicitly provide a declaration for 'strcasecmp' nametoaddr.c:172:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 172 | s_nametoeproto(s) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:31:12: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 31 | extern int s_nametoeproto(); | ^ nametoaddr.c:187:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 187 | xdtoi(c) | ^ 188 | { nametoaddr.c:187:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 187 | xdtoi(c) | ^ nametoaddr.c:198:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 198 | atoin(s) | ^ nametoaddr.c:229:21: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 229 | e = ep = (u_char *)malloc(6); | ^ nametoaddr.c:229:21: note: include the header or explicitly provide a declaration for 'malloc' nametoaddr.c:223:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 223 | ETHER_aton(s) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:34: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] 34 | extern u_char *ETHER_aton(); | ^ nametoaddr.c:260:28: warning: passing arguments to 'next_etherent' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 260 | while (ep = next_etherent(fp)) { | ^ nametoaddr.c:260:13: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 260 | while (ep = next_etherent(fp)) { | ~~~^~~~~~~~~~~~~~~~~~~ nametoaddr.c:260:13: note: place parentheses around the assignment to silence this warning 260 | while (ep = next_etherent(fp)) { | ^ | ( ) nametoaddr.c:260:13: note: use '==' to turn this assignment into an equality comparison 260 | while (ep = next_etherent(fp)) { | ^ | == nametoaddr.c:261:8: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 261 | if (strcmp(ep->name, name) == 0) { | ^ nametoaddr.c:261:8: note: include the header or explicitly provide a declaration for 'strcmp' nametoaddr.c:263:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | bcopy(ep->addr, ap, 6); | ^ nametoaddr.c:263:5: note: include the header or explicitly provide a declaration for 'bcopy' nametoaddr.c:247:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 247 | ETHER_hostton(name) | ^ In file included from nametoaddr.c:49: ./nametoaddr.h:33: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] 33 | extern u_char *ETHER_hostton(); | ^ 27 warnings generated. bison -y -d tcpgram.y tcpgram.y:92.13-14: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 92 | %type ID | ^~ tcpgram.y:93.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 93 | %type EID | ^~~ tcpgram.y:94.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 94 | %type HID | ^~~ tcpgram.y:95.13-15: warning: POSIX yacc reserves %type to nonterminals [-Wyacc] 95 | %type NUM | ^~~ mv y.tab.c tcpgram.c mv y.tab.h tokdefs.h cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcpgram.c y.tab.c:1353:16: warning: call to undeclared function 'yylex'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 1353 | yychar = yylex (); | ^ tcpgram.y:108:14: warning: passing arguments to 'finish_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | finish_parse((yyvsp[0].blk).b); | ^ tcpgram.y:115:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 115 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:116:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:117:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:118:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:125:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 125 | { (yyval.blk).b = gen_ncode((u_long)(yyvsp[0].i), | ^ tcpgram.y:129:60: warning: passing arguments to 'gen_scode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 129 | { (yyval.blk).b = gen_scode((yyvsp[0].s), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:130:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | { (yyval.blk).b = gen_ncode((yyvsp[0].h), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:131:60: warning: passing arguments to 'gen_ecode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | { (yyval.blk).b = gen_ecode((yyvsp[0].e), (yyval.blk).q = (yyvsp[-1].blk).q); } | ^ tcpgram.y:132:42: warning: passing arguments to 'gen_not' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:139:42: warning: passing arguments to 'gen_and' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | { gen_and((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:140:41: warning: passing arguments to 'gen_or' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | { gen_or((yyvsp[-2].blk).b, (yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:142:60: warning: passing arguments to 'gen_ncode' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 142 | { (yyval.blk).b = gen_ncode((u_long)(yyvsp[0].i), | ^ tcpgram.y:147:42: warning: passing arguments to 'gen_not' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 147 | { gen_not((yyvsp[0].blk).b); (yyval.blk) = (yyvsp[0].blk); } | ^ tcpgram.y:157:67: warning: passing arguments to 'gen_proto_abbrev' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 157 | { (yyval.blk).b = gen_proto_abbrev((yyvsp[0].i)); (yyval.blk).q = qerr; } | ^ tcpgram.y:158:63: warning: passing arguments to 'gen_relation' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 158 | { (yyval.blk).b = gen_relation((yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 0); | ^ tcpgram.y:160:63: warning: passing arguments to 'gen_relation' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 160 | { (yyval.blk).b = gen_relation((yyvsp[-1].i), (yyvsp[-2].a), (yyvsp[0].a), 1); | ^ tcpgram.y:192:63: warning: passing arguments to 'gen_broadcast' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | { (yyval.rblk) = gen_broadcast((yyvsp[-1].i)); } | ^ tcpgram.y:193:63: warning: passing arguments to 'gen_multicast' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 193 | { (yyval.rblk) = gen_multicast((yyvsp[-1].i)); } | ^ tcpgram.y:194:58: warning: passing arguments to 'gen_less' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 194 | { (yyval.rblk) = gen_less((yyvsp[0].i)); } | ^ tcpgram.y:195:61: warning: passing arguments to 'gen_greater' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 195 | { (yyval.rblk) = gen_greater((yyvsp[0].i)); } | ^ tcpgram.y:196:60: warning: passing arguments to 'gen_byteop' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 196 | { (yyval.rblk) = gen_byteop((yyvsp[-1].i), (yyvsp[-2].i), (yyvsp[0].i)); } | ^ tcpgram.y:206:56: warning: passing arguments to 'gen_loadi' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 206 | { (yyval.a) = gen_loadi((yyvsp[0].i)); } | ^ tcpgram.y:209:63: warning: passing arguments to 'gen_load' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 209 | { (yyval.a) = gen_load((yyvsp[-3].i), (yyvsp[-1].a), 1); } | ^ tcpgram.y:210:63: warning: passing arguments to 'gen_load' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 210 | { (yyval.a) = gen_load((yyvsp[-5].i), (yyvsp[-3].a), (yyvsp[-1].i)); } | ^ tcpgram.y:211:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 211 | { (yyval.a) = gen_arth(BPF_ADD, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:212:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 212 | { (yyval.a) = gen_arth(BPF_SUB, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:213:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 213 | { (yyval.a) = gen_arth(BPF_MUL, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:214:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | { (yyval.a) = gen_arth(BPF_DIV, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:215:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 215 | { (yyval.a) = gen_arth(BPF_AND, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:216:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 216 | { (yyval.a) = gen_arth(BPF_OR, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:217:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | { (yyval.a) = gen_arth(BPF_LSH, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:218:63: warning: passing arguments to 'gen_arth' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 218 | { (yyval.a) = gen_arth(BPF_RSH, (yyvsp[-2].a), (yyvsp[0].a)); } | ^ tcpgram.y:219:62: warning: passing arguments to 'gen_neg' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | { (yyval.a) = gen_neg((yyvsp[0].a)); } | ^ y.tab.c:1974:35: warning: too many arguments in call to 'yyerror' 1974 | yyerror (YY_("syntax error")); | ~~~~~~~ ^ y.tab.c:1974:15: warning: passing arguments to 'yyerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 1974 | yyerror (YY_("syntax error")); | ^ y.tab.c:2085:35: warning: too many arguments in call to 'yyerror' 2085 | yyerror (YY_("memory exhausted")); | ~~~~~~~ ^ y.tab.c:2085:11: warning: passing arguments to 'yyerror' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 2085 | yyerror (YY_("memory exhausted")); | ^ 39 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c savefile.c savefile.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 | sf_write_header(fp, linktype, thiszone, snaplen, precision) | ^ savefile.c:96:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 96 | swap_hdr(hp) | ^ savefile.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 108 | sf_read_init(fname, linktypep, thiszonep, snaplenp, precision) | ^ In file included from savefile.c:43: In file included from ./tcpview.h:44: ./savefile.h:64:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 64 | int sf_read_init(); | ^ savefile.c:214:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 214 | sf_next_packet(hdr, buf, buflen) | ^ In file included from savefile.c:43: In file included from ./tcpview.h:44: ./savefile.h:66:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 66 | int sf_next_packet(); | ^ savefile.c:252:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 252 | sf_write_init(fname, linktype, thiszone, snaplen, precision) | ^ In file included from savefile.c:43: In file included from ./tcpview.h:44: ./savefile.h:68:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 68 | int sf_write_init(); | ^ savefile.c:285:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 285 | sf_write(sp, tvp, length, caplen) | ^ In file included from savefile.c:43: In file included from ./tcpview.h:44: ./savefile.h:72:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 72 | void sf_write(); | ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c md.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c os.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tv_etherent.c tv_etherent.c:74:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 74 | xdtoi(c) | ^ 75 | { tv_etherent.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | xdtoi(c) | ^ tv_etherent.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | skip_space(f) | ^ tv_etherent.c:98:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 98 | skip_line(f) | ^ tv_etherent.c:110:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | struct etherent *next_etherent(fp) | ^ In file included from tv_etherent.c:64: ./etherent.h:11: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 subsequent definition [-Wdeprecated-non-prototype] 11 | struct etherent *next_etherent(); | ^ tv_etherent.c:201:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 201 | static int next_sniffer( fp, e ) | ^ tv_etherent.c:224:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 224 | struct manufent *next_manufent(fp) | ^ In file included from tv_etherent.c:64: ./etherent.h:22: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 subsequent definition [-Wdeprecated-non-prototype] 22 | struct manufent *next_manufent(); | ^ 9 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c sniffer_file.c sniffer_file.c:204:18: warning: passing arguments to 'print2hexwindow' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 204 | print2hexwindow(buf); | ^ sniffer_file.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 149 | sniff_rinit(name, linktypep, thiszonep, snaplenp, precisionp) | ^ In file included from sniffer_file.c:56: ./savefile.h:76:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 76 | int sniff_rinit(); | ^ sniffer_file.c:237:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 237 | int sniff_winit(name, linktype, thiszone, snaplen, precision) | ^ In file included from sniffer_file.c:56: ./savefile.h:77:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 77 | int sniff_winit(); | ^ sniffer_file.c:314:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 314 | void sniff_end(mode) | ^ In file included from sniffer_file.c:56: ./savefile.h:80:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 80 | void sniff_end(); | ^ sniffer_file.c:331:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 331 | sniff_write(sp, tvp, length, caplen) | ^ In file included from sniffer_file.c:56: ./savefile.h:79:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 79 | void sniff_write(); | ^ sniffer_file.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 | sniff_next_packet(hdr, buf, buflen) | ^ 10 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c hd.c hd.c:28:30: warning: format specifies type 'unsigned long' but the argument has type 'int' [-Wformat] 28 | sprintf (tmp, "%04lx ", pos++ * LS); | ~~~~~ ^~~~~~~~~~ | %04x hd.c:15:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 15 | void hd( buffer, data, len ) | ^ 2 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c util.c util.c:79:7: warning: parameter 'c' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 79 | xdtoi(c) | ^ 80 | { util.c:79:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 79 | xdtoi(c) | ^ util.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | stoi(s) | ^ util.c:127:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 127 | while (c = *s++) { | ~~^~~~~~ util.c:127:11: note: place parentheses around the assignment to silence this warning 127 | while (c = *s++) { | ^ | ( ) util.c:127:11: note: use '==' to turn this assignment into an equality comparison 127 | while (c = *s++) { | ^ | == util.c:121:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 121 | printfn(s, ep) | ^ util.c:204:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 204 | (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); | ~~ ^~~~~~~~~~~ | %ld util.c:204:42: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 204 | (void)printf("%d.%06d ", tvp->tv_sec, tvp->tv_usec); | ~~~~ ^~~~~~~~~~~~ | %06ld util.c:221:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 221 | (void)printf("%d.%06d ", i,j); | ~~ ^ | %ld util.c:221:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 221 | (void)printf("%d.%06d ", i,j); | ~~~~ ^ | %06ld util.c:235:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 235 | (void)printf("%d.%06d ", i,j); | ~~ ^ | %ld util.c:235:31: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 235 | (void)printf("%d.%06d ", i,j); | ~~~~ ^ | %06ld util.c:241:10: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~ util.c:241:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~~~~~~~~ util.c:241:37: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %02ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~ util.c:241:45: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 240 | (void)printf("%02d:%02d:%02d.%06d ", | ~~~~ | %06ld 241 | i / 3600, (i % 3600) / 60, i % 60, tvp->tv_usec); | ^~~~~~~~~~~~ util.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 151 | ts_print(tvp) | ^ In file included from util.c:71: ./interface.h:57: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] 57 | extern void ts_print(); | ^ util.c:269:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | stripdir(s) | ^ util.c:290:9: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 290 | cp += strlen(cp); | ^ util.c:290:9: note: include the header or explicitly provide a declaration for 'strlen' util.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 381 | net_mask(addr) | ^ 20 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c print.c print.c:45:5: warning: incompatible redeclaration of library function 'printf' [-Wincompatible-library-redeclaration] 45 | int printf(char *fmt, ...) | ^ print.c:45:5: note: 'printf' is a builtin with type 'int (const char *, ...)' print.c:62:9: warning: call to undeclared library function 'vsprintf' with type 'int (char *restrict, const char *restrict, struct __va_list_tag *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 62 | (void)vsprintf(StrPtr,fmt,args); | ^ print.c:62:9: note: include the header or explicitly provide a declaration for 'vsprintf' print.c:64:5: warning: call to undeclared function 'fprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 64 | fprintf(Xfile,"%s",StrPtr); | ^ print.c:64:5: warning: declaration of built-in function 'fprintf' requires inclusion of the header [-Wbuiltin-requires-header] print.c:79:5: warning: call to undeclared function 'fprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 79 | fprintf(Xfile,"%s",s ); | ^ print.c:80:3: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 80 | strcpy( StrPtr, s ); | ^ print.c:80:3: note: include the header or explicitly provide a declaration for 'strcpy' print.c:81:13: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 81 | StrPtr += strlen( s ); | ^ print.c:81:13: note: include the header or explicitly provide a declaration for 'strlen' print.c:74:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 74 | int fputs(s, foo) | ^ print.c:89:5: warning: call to undeclared function 'fprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 89 | fprintf(Xfile,"%c",c ); | ^ print.c:85:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 85 | int putchar(c) | ^ print.c:99:5: warning: call to undeclared function 'fprintf'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | fprintf(Xfile,"%c",x ); | ^ print.c:94:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 94 | int putc(x, foo) | ^ 12 warnings generated. lex tcplex.l mv -f lex.yy.c tcplex.c cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c tcplex.c tcplex.l:127:14: warning: call to undeclared function 'stoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | { yylval.i = stoi(yytext); return NUM; } | ^ tcplex.l:129:15: warning: call to undeclared function 'atoin'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 129 | yylval.h = atoin(yytext); return HID; | ^ tcplex.l:131:24: warning: passing arguments to 'ETHER_aton' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 131 | { yylval.e = ETHER_aton(yytext); return EID; } | ^ tcplex.l:132:8: warning: passing arguments to 'parse_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 132 | { error("bogus ethernet address %s", yytext); } | ^ tcplex.l:135:8: warning: passing arguments to 'parse_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 135 | { error("illegal token: %s\n", yytext); } | ^ tcplex.l:136:8: warning: passing arguments to 'parse_error' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | { error("illegal char '%c'", *yytext); } | ^ tcplex.l:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 139 | lex_init(buf) | ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c bpf_filter.c bpf_filter.c:203:4: warning: call to undeclared library function 'abort' with type 'void (void) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 203 | abort(); | ^ bpf_filter.c:203:4: note: include the header or explicitly provide a declaration for 'abort' bpf_filter.c:232:9: warning: call to undeclared function 'ntohl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 232 | A = ntohl(*(long *)(p + k)); | ^ bpf_filter.c:249:8: warning: call to undeclared function 'ntohs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 249 | A = EXTRACT_SHORT(&p[k]); | ^ bpf_filter.c:62:36: note: expanded from macro 'EXTRACT_SHORT' 62 | #define EXTRACT_SHORT(p) ((u_short)ntohs(*(u_short *)p)) | ^ bpf_filter.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 175 | bpf_filter(pc, p, wirelen, buflen) | ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c getservent.c getservent.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 58 | void SetServent(f) | ^ getservent.c:106:17: warning: call to undeclared function 'htons'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 106 | serv.s_port = htons((u_short)atoi(p)); | ^ getservent.c:135:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 135 | while (p = GetServent()) { | ~~^~~~~~~~~~~~~~ getservent.c:135:11: note: place parentheses around the assignment to silence this warning 135 | while (p = GetServent()) { | ^ | ( ) getservent.c:135:11: note: use '==' to turn this assignment into an equality comparison 135 | while (p = GetServent()) { | ^ | == getservent.c:128:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 128 | GetServByName(name, proto) | ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c filter-stream.c filter-stream.c:201:29: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 201 | (void)sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); | ~~ ^~~~~~~~~~~~~~ | %ld filter-stream.c:201:44: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 201 | (void)sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); | ~~ ^~~~~~~~~~~~~~~ | %ld filter-stream.c:130:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 130 | void FilterStream(parent, nam, callback) | ^ filter-stream.c:311:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 311 | static void dir_callback( widget, data, foo ) | ^ filter-stream.c:316:22: warning: cast to smaller integer type 'int' from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 316 | filter_direction = (int)data; | ^~~~~~~~~ filter-stream.c:319:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | static void ooo_callback( widget, data, foo ) | ^ filter-stream.c:333:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | static void timeout_callback( widget, data, foo ) | ^ filter-stream.c:372:20: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 372 | Timeout.tv_sec = atoi(string); | ^ filter-stream.c:373:22: warning: call to undeclared function 'atof'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 373 | Timeout.tv_usec = (atof(string) - (double)(Timeout.tv_sec))*1000000; | ^ filter-stream.c:380:23: warning: format specifies type 'int' but the argument has type 'time_t' (aka 'long') [-Wformat] 380 | sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); | ~~ ^~~~~~~~~~~~~~ | %ld filter-stream.c:380:38: warning: format specifies type 'int' but the argument has type 'suseconds_t' (aka 'long') [-Wformat] 380 | sprintf(str,"%d.%d",Timeout.tv_sec,Timeout.tv_usec); | ~~ ^~~~~~~~~~~~~~~ | %ld filter-stream.c:362:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | static void time_callback( widget, data, foo ) | ^ filter-stream.c:66: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] 66 | static void time_callback(); | ^ filter-stream.c:384:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 384 | static void help_callback( widget, name, call_data ) | ^ filter-stream.c:392:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 392 | static void ext_callback( widget, name, call_data ) | ^ filter-stream.c:406:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | static void data_callback( widget, name, call_data ) | ^ filter-stream.c:419:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 419 | static void extfil_callback( widget, name, call_data ) | ^ filter-stream.c:430:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 430 | static void extfra_callback( widget, name, call_data ) | ^ filter-stream.c:444:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 444 | static void filterstream(parent, nam, foo) | ^ filter-stream.c:517:13: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 517 | (void)system( str ); | ^ filter-stream.c:518:7: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 518 | unlink( Xfilename ); | ^ filter-stream.c:524:2: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 524 | unlink( Xfilename ); | ^ filter-stream.c:527:2: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 527 | system( str ); | ^ filter-stream.c:543:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 543 | void cancel_callback( widget, name, foo ) | ^ filter-stream.c:586:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 586 | static void filtername_callback( widget, name, call_data ) | ^ filter-stream.c:615:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 615 | void filter_cancel_callback( widget, name, foo ) | ^ filter-stream.c:68: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] 68 | static void filter_cancel_callback(); | ^ filter-stream.c:624:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 624 | void filter_ok_callback( widget, name, file_struct ) | ^ filter-stream.c:69: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] 69 | static void filter_ok_callback(); | ^ 29 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c text.c text.c:72:5: warning: call to undeclared function 'xperror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | xperror( filename ); | ^ text.c:78:5: warning: call to undeclared function 'xperror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 78 | xperror( "fwrite" ); | ^ text.c:63:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 63 | static Boolean FillFileWithWidget( widget, filename ) | ^ text.c:99:3: warning: call to undeclared function 'system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | system( str ); | ^ text.c:100:3: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 100 | unlink( filename ); | ^ text.c:88:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 88 | static void print_callback( widget, client_data, call_data ) | ^ text.c:103:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 103 | static void save_response_callback( widget, data, foo ) | ^ text.c:116:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | static void save_callback( widget, client_data, call_data ) | ^ text.c:134:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 134 | Boolean FillWidgetWithFile( widget, filename ) | ^ text.c:202:3: warning: call to undeclared function 'FillMenu'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 202 | FillMenu( menu_widget, "Save As...", save_callback ); | ^ text.c:179:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 179 | void show_text( filename, name ) | ^ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c pcap.c In file included from pcap.c:33: /usr/include/sys/timeb.h:43:2: warning: "this file includes which is deprecated" [-W#warnings] 43 | #warning "this file includes which is deprecated" | ^ pcap.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 46 | bpf_stats(fd) | ^ pcap.c:72:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 72 | exit(1); | ^ pcap.c:72:3: note: include the header or explicitly provide a declaration for 'exit' pcap.c:74:18: warning: call to undeclared library function 'malloc' with type 'void *(unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 74 | buf = (u_char *)malloc(bufsize); | ^ pcap.c:74:18: note: include the header or explicitly provide a declaration for 'malloc' pcap.c:83:13: warning: call to undeclared function 'read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 83 | if ((cc = read(if_fd, (char *)buf, (int)bufsize)) < 0) { | ^ pcap.c:112:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 112 | (*printit)(bp + (hdrlen = bhp->bh_hdrlen), | ^ pcap.c:120:2: warning: call to undeclared function 'wrapup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 120 | wrapup(if_fd); | ^ pcap.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 60 | readloop(cnt, if_fd, fp, printit) | ^ pcap.c:123:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 123 | wrapup(fd) | ^ | int pcap.c:127:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 127 | close(fd); | ^ pcap.c:123:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 123 | wrapup(fd) | ^ pcap.c:128:1: warning: non-void function does not return a value [-Wreturn-type] 128 | } | ^ pcap.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | initdevice(device, pflag, linktype) | ^ 13 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c inet.c inet.c:65:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 65 | exit(1); | ^ inet.c:65:3: note: include the header or explicitly provide a declaration for 'exit' inet.c:97:8: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 97 | n = atoi(cp); | ^ inet.c:113:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 113 | close(fd); | ^ inet.c:117:8: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | (void)strcpy(device, mp->ifr_name); | ^ inet.c:117:8: note: include the header or explicitly provide a declaration for 'strcpy' inet.c:126:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 126 | ipaddrtonetmask(addr) | ^ inet.c:137:1: warning: non-void function does not return a value in all control paths [-Wreturn-type] 137 | } | ^ inet.c:154:8: warning: call to undeclared library function 'strncpy' with type 'char *(char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 154 | (void)strncpy(ifr.ifr_name, device, sizeof ifr.ifr_name); | ^ inet.c:154:8: note: include the header or explicitly provide a declaration for 'strncpy' inet.c:171:8: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | (void)close(fd); | ^ inet.c:140:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 140 | lookup_net(device, netp, maskp) | ^ 9 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c capture.c capture.c:68:7: warning: incompatible redeclaration of library function 'malloc' [-Wincompatible-library-redeclaration] 68 | char *malloc( int ); | ^ capture.c:68:7: note: 'malloc' is a builtin with type 'void *(unsigned long)' capture.c:114:20: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 114 | sprintf(str,"%d",num); | ~~ ^~~ | %ld capture.c:110:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 110 | char *ltos( num ) | ^ capture.c:118:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 118 | void cap_opt_callback( widget, name, call_data ) | ^ capture.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 get_long( parent, def, name, title, callback, semaphore ) | ^ capture.c:263:35: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 263 | MaxBytes = max(DEFAULT_SNAPLEN, atoi(string)); | ^ capture.c:254:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 254 | static void mb_result( widget, data, foo ) | ^ capture.c:278:15: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 278 | TimeLimit = atoi(string); | ^ capture.c:271:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 271 | static void tl_result( widget, data, foo ) | ^ capture.c:293:20: warning: call to undeclared function 'atoi'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 293 | NumberOfFrames = atoi(string); | ^ capture.c:286:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 286 | static void nf_result( widget, data, foo ) | ^ capture.c:303:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 303 | static void dev_result( widget, data, foo ) | ^ capture.c:319:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 319 | static void max_bytes_callback( widget, data, foo ) | ^ capture.c:333:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 333 | static void time_limit_callback( widget, data, foo ) | ^ capture.c:347:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 347 | static void num_frame_callback( widget, data, foo ) | ^ capture.c:362:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 362 | static void prom_callback( widget, data, foo ) | ^ capture.c:374:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 374 | static void done_callback( widget, data, foo ) | ^ capture.c:382:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 382 | static void cancel_callback( widget, data, foo ) | ^ capture.c:391:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | static void dev_cancel( widget, data, foo ) | ^ capture.c:400:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 400 | static void device_callback( parent, data, foo ) | ^ capture.c:434:5: warning: call to undeclared function 'wrapup'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 434 | wrapup(if_fd); | ^ capture.c:436:3: warning: call to undeclared function 'sf_write_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 436 | sf_write_end(); | ^ capture.c:437:3: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 437 | exit(0); | ^ capture.c:437:3: note: include the header or explicitly provide a declaration for 'exit' capture.c:462:5: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 462 | unlink( StderrName ); | ^ capture.c:467:3: warning: call to undeclared function 'unlink'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 467 | unlink( TempName ); | ^ capture.c:479:13: warning: cast to smaller integer type 'pid_t' (aka 'int') from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 479 | if( kill( (pid_t)data, SIGINT ) < 0 ) | ^~~~~~~~~~~ capture.c:473:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 473 | static void stop_capture_callback( widget, data, call_data ) | ^ capture.c:495:15: warning: cast to smaller integer type 'pid_t' (aka 'int') from 'caddr_t' (aka 'char *') [-Wpointer-to-int-cast] 495 | (void)kill( (pid_t)data, SIGINT ); | ^~~~~~~~~~~ capture.c:488:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 488 | static void timer_expired( data, id ) | ^ capture.c:536:3: warning: call to undeclared function 'update_fstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 536 | update_fstr(&Filter); | ^ capture.c:540:14: warning: call to undeclared function 'fork'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 540 | if( (pid = fork()) < 0 ) { | ^ capture.c:556:13: warning: call to undeclared function 'initdevice'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 556 | if_fd = initdevice( Device, pflag, &Linktype ); | ^ capture.c:557:5: warning: call to undeclared function 'lookup_net'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 557 | lookup_net( Device, &localnet, &netmask ); | ^ capture.c:563:18: warning: passing arguments to 'sf_write_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 563 | sf_write_init( TempName, Linktype, thiszone, snaplen, Precision ); | ^ capture.c:567:5: warning: call to undeclared function 'readloop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 567 | readloop( NumberOfFrames, if_fd, bpf, sf_write ); | ^ capture.c:575:64: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'pid_t' (aka 'int') [-Wint-to-pointer-cast] 575 | TimeoutID = XtAddTimeOut( TimeLimit*1000, timer_expired, (caddr_t)pid ); | ^~~~~~~~~~~~ capture.c:586:63: warning: cast to 'caddr_t' (aka 'char *') from smaller integer type 'pid_t' (aka 'int') [-Wint-to-pointer-cast] 586 | XtAddCallback( Work, XmNokCallback,stop_capture_callback, (caddr_t)pid ); | ^~~~~~~~~~~~ capture.c:498:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 498 | void capture_callback( widget, name, call_data ) | ^ 38 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c callbacks.c callbacks.c:161:10: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 161 | PrintIt(p->buf,&p->hdr.ts,p->hdr.len,p->hdr.caplen); | ^ callbacks.c:163:15: warning: passing arguments to 'detail_ether' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | detail_ether(p->buf); | ^ callbacks.c:186:6: warning: passing 'char *' to parameter of type 'u_char *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 186 | hd(buffer,p->buf,p->hdr.caplen); | ^~~~~~ callbacks.c:83:17: note: passing argument to parameter here 83 | void hd(u_char *, u_char *, int); | ^ callbacks.c:145:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 145 | void summary_list_callback( widget, client_data, list_data ) | ^ callbacks.c:200:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 200 | void detail_list_callback( widget, client_data, list_data ) | ^ callbacks.c:222:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 222 | static void do_detail( line ) | ^ callbacks.c:279:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 279 | static void file_callback( widget, client_data, file_struct ) | ^ callbacks.c:299:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 299 | static void cancel_callback( widget, client_data, file_struct ) | ^ callbacks.c:308:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 308 | void open_callback( widget, name, call_data ) | ^ callbacks.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 generic_callback( widget, name, call_data ) | ^ callbacks.c:365:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 365 | } while (p=p->next); | ~^~~~~~~~ callbacks.c:365:15: note: place parentheses around the assignment to silence this warning 365 | } while (p=p->next); | ^ | ( ) callbacks.c:365:15: note: use '==' to turn this assignment into an equality comparison 365 | } while (p=p->next); | ^ | == callbacks.c:375:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 375 | void readfile(filename) | ^ callbacks.c:386:19: warning: passing arguments to 'sf_read_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 386 | n = sf_read_init(filename,&Linktype,&thiszone,&snaplen,&Precision); | ^ callbacks.c:391:20: warning: passing arguments to 'sniff_rinit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 391 | if (sniff_rinit(filename,&Linktype,&thiszone,&snaplen,&Precision)) { | ^ callbacks.c:406:18: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 406 | if (next_pack(&p->hdr,buf,snaplen)!=0) { | ^ callbacks.c:426:38: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 426 | fprintf(stderr,"%d packets read\n",Packet_Count); | ~~ ^~~~~~~~~~~~ | %lu callbacks.c:455:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 455 | ts_print(0); /* reset */ | ^ callbacks.c:462:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 462 | PrintIt(p->buf,&p->hdr.ts,p->hdr.len,p->hdr.caplen); | ^ callbacks.c:517:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 517 | ts_print(0); /* reset */ | ^ callbacks.c:524:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 524 | PrintIt(p->buf,&p->hdr.ts,p->hdr.len,p->hdr.caplen); | ^ callbacks.c:535:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 535 | } while( p = p->next ); | ~~^~~~~~~~~ callbacks.c:535:14: note: place parentheses around the assignment to silence this warning 535 | } while( p = p->next ); | ^ | ( ) callbacks.c:535:14: note: use '==' to turn this assignment into an equality comparison 535 | } while( p = p->next ); | ^ | == callbacks.c:565:15: warning: passing arguments to 'sf_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 565 | sf_write( p->buf, &(p->hdr.ts), p->hdr.len, p->hdr.caplen); | ^ callbacks.c:567:18: warning: passing arguments to 'sniff_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 567 | sniff_write( p->buf, &(p->hdr.ts), p->hdr.len, p->hdr.caplen); | ^ callbacks.c:568:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 568 | } while( p = p->next ); | ~~^~~~~~~~~ callbacks.c:568:14: note: place parentheses around the assignment to silence this warning 568 | } while( p = p->next ); | ^ | ( ) callbacks.c:568:14: note: use '==' to turn this assignment into an equality comparison 568 | } while( p = p->next ); | ^ | == callbacks.c:571:5: warning: call to undeclared function 'sf_write_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 571 | sf_write_end(); | ^ callbacks.c:573:14: warning: passing arguments to 'sniff_end' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 573 | sniff_end("w"); | ^ callbacks.c:556:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 556 | void save_entire_list(name, type) | ^ callbacks.c:590:22: warning: passing arguments to 'sf_write_init' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 590 | if( sf_write_init( name, Linktype, thiszone, snaplen, Precision) ) | ^ callbacks.c:593:20: warning: passing arguments to 'sniff_winit' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 593 | if( sniff_winit( name, Linktype, thiszone, snaplen, Precision) ) | ^ callbacks.c:606:15: warning: passing arguments to 'sf_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 606 | sf_write( p->buf, &(p->hdr.ts), p->hdr.len, p->hdr.caplen); | ^ callbacks.c:608:18: warning: passing arguments to 'sniff_write' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 608 | sniff_write( p->buf, &(p->hdr.ts), p->hdr.len, p->hdr.caplen); | ^ callbacks.c:612:5: warning: call to undeclared function 'sf_write_end'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 612 | sf_write_end(); | ^ callbacks.c:614:14: warning: passing arguments to 'sniff_end' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 614 | sniff_end("w"); | ^ callbacks.c:577:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 577 | void savefile( name, all, type ) | ^ callbacks.c:627:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 627 | ts_print(0); /* reset */ | ^ callbacks.c:633:19: warning: passing arguments to 'detail_ether' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 633 | detail_ether(p->buf); | ^ callbacks.c:635:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 635 | PrintIt(p->buf,&p->hdr.ts,p->hdr.len,p->hdr.caplen); | ^ callbacks.c:638:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 638 | } while( p = p->next ); | ~~^~~~~~~~~ callbacks.c:638:14: note: place parentheses around the assignment to silence this warning 638 | } while( p = p->next ); | ^ | ( ) callbacks.c:638:14: note: use '==' to turn this assignment into an equality comparison 638 | } while( p = p->next ); | ^ | == callbacks.c:617:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 617 | void print_entire_list(fp, detail, str) | ^ callbacks.c:674:11: warning: passing arguments to 'ts_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 674 | ts_print(0); /* reset */ | ^ callbacks.c:680:19: warning: passing arguments to 'detail_ether' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 680 | detail_ether(p->buf); | ^ callbacks.c:682:14: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 682 | PrintIt(p->buf,&p->hdr.ts,p->hdr.len,p->hdr.caplen); | ^ callbacks.c:644:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 644 | void printfile( name, all, detail ) | ^ callbacks.c:689:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 689 | void print2hexwindow(str) | ^ callbacks.c:708:37: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 708 | sprintf(buf," %d/%d packets ",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~~~~ | %lu callbacks.c:708:53: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 708 | sprintf(buf," %d/%d packets ",Current_Packets,Packet_Count); | ~~ ^~~~~~~~~~~~ | %lu callbacks.c:715:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 715 | void xperror(str) | ^ callbacks.c:720:8: warning: assigning to 'char *' from 'const char *const' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] 720 | str2 = sys_errlist[errno]; | ^ ~~~~~~~~~~~~~~~~~~ callbacks.c:773:3: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 773 | (*lookup_printer(type))() | ^ 49 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-rip.c detail-rip.c:68:9: warning: call to undeclared library function 'strcmp' with type 'int (const char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | if( strcmp(str1,str2) ) | ^ detail-rip.c:68:9: note: include the header or explicitly provide a declaration for 'strcmp' detail-rip.c:50:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 50 | static void rip_entry_print(ni,metric) | ^ detail-rip.c:87:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 87 | void detail_rip(dat, length) | ^ detail-rip.c:165:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 165 | static void do_version(rp) | ^ 4 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-icmp.c detail-icmp.c:33:16: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 32 | printf("%s[ICMP Packet truncated to %d bytes, should be %d]\n", | ~~ | %lu 33 | PROTO_STR, Phdr->caplen - Offset, len); | ^~~~~~~~~~~~~~~~~~~~~ detail-icmp.c:65:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 65 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:71:58: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 71 | printf("%s[%d bytes of optional data]\n", PROTO_STR, data_bytes); | ~~ ^~~~~~~~~~ | %lu detail-icmp.c:103:57: warning: format specifies type 'char *' but the argument has type 'u_char' (aka 'unsigned char') [-Wformat] 103 | printf("%sCode = %s (Unknown Code)\n", PROTO_STR, icmp->icmp_code); | ~~ ^~~~~~~~~~~~~~~ | %hhu detail-icmp.c:106:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 106 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:112:5: warning: call to undeclared function 'detail_ip'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 112 | detail_ip(&icmp->icmp_ip); | ^ detail-icmp.c:117:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 117 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:146:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 146 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:148:5: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 148 | inet_ntoa(icmp->icmp_gwaddr)); | ^ detail-icmp.c:148:5: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 147 | printf("%sGateway IP address = %s\n", PROTO_STR, | ~~ | %d 148 | inet_ntoa(icmp->icmp_gwaddr)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ detail-icmp.c:165:47: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 165 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:185:47: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 185 | printf("%sRouter Address = %s\n", PROTO_STR, inet_ntoa(ra->addr)); | ~~ ^~~~~~~~~~~~~~~~~~~ | %d detail-icmp.c:187:50: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] 187 | printf("%sPreference Level = %lX\n", PROTO_STR, ntohl(ra->preference)); | ~~~ ^~~~~~~~~~~~~~~~~~~~~ | %X /usr/include/netinet/in.h:120:18: note: expanded from macro 'ntohl' 120 | #define ntohl(x) __ntohl(x) | ^~~~~~~~~~ /usr/include/sys/_endian.h:88:20: note: expanded from macro '__ntohl' 88 | #define __ntohl(x) (__bswap32(x)) | ^~~~~~~~~~~~~~ detail-icmp.c:196:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 196 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:214:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 214 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:225:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 225 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:243:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 243 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:262:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 262 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:276:45: warning: format specifies type 'unsigned long' but the argument has type 'u_short' (aka 'unsigned short') [-Wformat] 276 | printf("%sChecksum = %lX\n", PROTO_STR, checksum); | ~~~ ^~~~~~~~ | %hX detail-icmp.c:281:48: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 281 | printf("%sAddress Mask = %s\n", PROTO_STR, inet_addr(icmp->icmp_mask)); | ^ detail-icmp.c:281:48: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 281 | printf("%sAddress Mask = %s\n", PROTO_STR, inet_addr(icmp->icmp_mask)); | ~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~ | %d detail-icmp.c:19:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 19 | void detail_icmp(icmp, len) | ^ 22 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-domain.c detail-domain.c:126:14: warning: call to undeclared function 'dn_expand'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 126 | if ((n = dn_expand(msg, eom, cp, name, sizeof(name))) <= 0) | ^ detail-domain.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 117 | p_cdname(msg, eom) | ^ detail-domain.c:150:2: warning: call to undeclared library function 'strcpy' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 150 | strcpy(type_buf, "A"); | ^ detail-domain.c:150:2: note: include the header or explicitly provide a declaration for 'strcpy' detail-domain.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | p_type(type) | ^ detail-domain.c:228:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 228 | p_class(class) | ^ detail-domain.c:260:30: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 260 | sprintf(ulong_buf, "%u", value); | ~~ ^~~~~ | %lu detail-domain.c:255:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 255 | p_ulong(value) | ^ detail-domain.c:269:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 269 | p_ushort(value) | ^ detail-domain.c:294:30: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 294 | (void)sprintf(p, "%u (", v); | ~~ ^ | %lu detail-domain.c:295:10: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 295 | p += strlen(p); | ^ detail-domain.c:295:10: note: include the header or explicitly provide a declaration for 'strlen' detail-domain.c:311:45: warning: format specifies type 'int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 311 | (void)sprintf(p, "%d day%s", PLURALIZE(v)); | ~~ ^ | %lu detail-domain.c:309:22: note: expanded from macro 'PLURALIZE' 309 | #define PLURALIZE(x) x, (x == 1) ? "" : "s" | ^ detail-domain.c:331:11: warning: call to undeclared library function 'strcat' with type 'char *(char *, const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 331 | (void)strcat(p, ")"); | ^ detail-domain.c:331:11: note: include the header or explicitly provide a declaration for 'strcat' detail-domain.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | p_time(value) | ^ detail-domain.c:376:12: warning: call to undeclared function '_getshort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 376 | type = _getshort(cp); | ^ detail-domain.c:398:10: warning: call to undeclared function '_getlong'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 398 | ul = _getlong(cp); | ^ detail-domain.c:430:13: warning: call to undeclared library function 'memcpy' with type 'void *(void *, const void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 430 | memcpy((char *)&inaddr, cp, sizeof(inaddr)); | ^ detail-domain.c:430:13: note: include the header or explicitly provide a declaration for 'memcpy' detail-domain.c:432:55: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 432 | printf(" Internet address = %s\n", inet_ntoa(inaddr)); | ^ detail-domain.c:432:55: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 432 | printf(" Internet address = %s\n", inet_ntoa(inaddr)); | ~~ ^~~~~~~~~~~~~~~~~ | %d detail-domain.c:434:53: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 434 | printf(" Internet address = %s", inet_ntoa(inaddr)); | ^ detail-domain.c:434:53: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 434 | printf(" Internet address = %s", inet_ntoa(inaddr)); | ~~ ^~~~~~~~~~~~~~~~~ | %d detail-domain.c:548:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 548 | if (n = *cp) { | ~~^~~~~ detail-domain.c:548:15: note: place parentheses around the assignment to silence this warning 548 | if (n = *cp) { | ^ | ( ) detail-domain.c:548:15: note: use '==' to turn this assignment into an equality comparison 548 | if (n = *cp) { | ^ | == detail-domain.c:555:15: warning: using the result of an assignment as a condition without parentheses [-Wparentheses] 555 | if (n = *cp) { | ~~^~~~~ detail-domain.c:555:15: note: place parentheses around the assignment to silence this warning 555 | if (n = *cp) { | ^ | ( ) detail-domain.c:555:15: note: use '==' to turn this assignment into an equality comparison 555 | if (n = *cp) { | ^ | == detail-domain.c:591:31: warning: format specifies type 'unsigned int' but the argument has type 'u_long' (aka 'unsigned long') [-Wformat] 591 | printf(" Serial: %u\n", ul); | ~~ ^~ | %lu detail-domain.c:674:24: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 674 | printf(" %s:\n", inet_ntoa(inaddr)); | ^ detail-domain.c:674:24: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 674 | printf(" %s:\n", inet_ntoa(inaddr)); | ~~ ^~~~~~~~~~~~~~~~~ | %d detail-domain.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 342 | p_ans(msg, eom) | ^ detail-domain.c:930:13: warning: call to undeclared function '_getshort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 930 | type = _getshort(cp); | ^ detail-domain.c:775:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 775 | void detail_domain(msg, len) | ^ 28 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -c detail-snmp.c detail-snmp.c:77:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 77 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:99:28: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 99 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:108:37: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 108 | printf(" VarBind (%d bytes)\n",elem.asnlen); | ~~ ^~~~~~~~~~~ | %lu detail-snmp.c:116:28: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:127:15: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 127 | asn1_print(&elem); | ^ detail-snmp.c:136:28: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 136 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:143:17: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 143 | asn1_print(&elem); | ^ detail-snmp.c:69:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 69 | static void varbind_print (pduid, np, length, err) | ^ detail-snmp.c:162:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 162 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:169:29: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 169 | printf("Request ID: %d\n",elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld detail-snmp.c:176:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 176 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:185:63: warning: passing arguments to 'DECODE_ErrorStatus' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | printf("Error Status = %d (%s)\n", error, DECODE_ErrorStatus(error)); | ^ detail-snmp.c:192:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 192 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:199:32: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 199 | printf("Error Index = %d\n", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld detail-snmp.c:154:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 154 | static void snmppdu_print (pduid, np, length) | ^ detail-snmp.c:225:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 225 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:233:13: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 233 | asn1_print(&elem); | ^ detail-snmp.c:241:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 241 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:249:13: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 249 | asn1_print(&elem); | ^ detail-snmp.c:256:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 256 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:264:70: warning: passing arguments to 'DECODE_GenericTrap' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 264 | printf("Generic Trap Type = %d (%s)\n", generic, DECODE_GenericTrap(generic)); | ^ detail-snmp.c:270:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 270 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:277:34: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 277 | printf("Specific Trap = %d\n", elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld detail-snmp.c:283:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 283 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:291:13: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 291 | asn1_print(&elem); | ^ detail-snmp.c:217:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 217 | static void trap_print (np, length) | ^ detail-snmp.c:324:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 324 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:343:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 343 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:351:24: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 351 | printf("Version: %d",elem.data.integer); | ~~ ^~~~~~~~~~~~~~~~~ | %ld detail-snmp.c:363:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 363 | if ((count = asn1_parse(np, length, &elem)) < 0) | ^ detail-snmp.c:371:27: warning: field precision should have type 'int', but argument has type 'unsigned long' [-Wformat] 371 | printf("Community = \"%.*s\"\n", elem.asnlen,elem.data.str); | ~~^~ ~~~~~~~~~~~ detail-snmp.c:378:26: warning: passing arguments to 'asn1_parse' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 378 | if ((count = asn1_parse(np, length, &pdu)) < 0) | ^ detail-snmp.c:385:13: warning: passing arguments to 'asn1_print' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 385 | asn1_print(&pdu); | ^ detail-snmp.c:304:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 304 | void detail_snmp (np, length) | ^ 34 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -DTCPVIEW -I.. -I/usr/local/include -o tcpview tcpview.o version.o motifutils.o dialogs.o filter-dialog.o print-ether.o print-arp.o print-ip.o print-tcp.o print-udp.o print-nfs.o print-atalk.o print-tftp.o print-sunrpc.o print-rip.o print-icmp.o print-bootp.o print-snmp.o print-ntp.o print-domain.o print-ospf.o print-egp.o tv_addrtoname.o detail-ether.o detail-arp.o detail-ip.o detail-tcp.o detail-udp.o print-fddi.o print-ppp.o print-sl.o print-null.o gencode.o optimize.o nametoaddr.o tcpgram.o savefile.o md.o os.o tv_etherent.o sniffer_file.o hd.o util.o print.o tcplex.o bpf_filter.o getservent.o filter-stream.o text.o pcap.o inet.o capture.o callbacks.o detail-rip.o detail-icmp.o detail-domain.o detail-snmp.o -L/usr/local/lib -lXm -lXt -lX11 -ll + make -C 386-bsd-tcpview FILTERS cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c bgp.c bgp.c:65:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 65 | main(argc, argv) | ^ | int bgp.c:97:22: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 97 | (type_func[type])(length); | ^ bgp.c:102:2: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 102 | exit(0); | ^ bgp.c:102:2: note: include the header or explicitly provide a declaration for 'exit' bgp.c:65:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 65 | main(argc, argv) | ^ bgp.c:132:23: warning: format specifies type 'int' but the argument has type 'long' [-Wformat] 131 | printf("OPEN: version: %d, asn=%d, htime=%d, id=%d auth=%d\n", | ~~ | %ld 132 | version,asn,htime,id,auth); | ^~ bgp.c:106:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 106 | void bgp_open(length) | ^ bgp.c:59:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | void bgp_open(), bgp_update(), bgp_note(), bgp_keepalive(); | ^ bgp.c:163:19: warning: passing arguments to 'getattributes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 163 | if(getattributes(tpal)) | ^ bgp.c:172:20: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 172 | printf("\t%s ",inet_ntoa(htonl(ip))); | ^ bgp.c:172:20: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 172 | printf("\t%s ",inet_ntoa(htonl(ip))); | ~~ ^~~~~~~~~~~~~~~~~~~~ | %d bgp.c:148:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 148 | void bgp_update(length) | ^ bgp.c:59: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 subsequent definition [-Wdeprecated-non-prototype] 59 | void bgp_open(), bgp_update(), bgp_note(), bgp_keepalive(); | ^ bgp.c:202:15: warning: passing arguments to 'mess_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 202 | mess_err(sub, data_len); | ^ bgp.c:205:15: warning: passing arguments to 'open_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 205 | open_err(sub, data_len); | ^ bgp.c:208:17: warning: passing arguments to 'update_err' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 208 | update_err(sub, data_len); | ^ bgp.c:185:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 185 | void bgp_note(length) | ^ bgp.c:59:32: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | void bgp_open(), bgp_update(), bgp_note(), bgp_keepalive(); | ^ bgp.c:219:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 219 | void bgp_keepalive(length) | ^ bgp.c:59:44: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 59 | void bgp_open(), bgp_update(), bgp_note(), bgp_keepalive(); | ^ bgp.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 231 | void mess_err(subtype, length) | ^ bgp.c:60:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | void mess_err(), update_err(), open_err(); | ^ bgp.c:268:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 268 | void open_err(subtype, length) | ^ bgp.c:60:32: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 60 | void mess_err(), update_err(), open_err(); | ^ bgp.c:322:21: warning: passing arguments to 'getattributes' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 322 | if(getattributes(length)) | ^ bgp.c:315:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 315 | void update_err(subtype, length) | ^ bgp.c:60: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 subsequent definition [-Wdeprecated-non-prototype] 60 | void mess_err(), update_err(), open_err(); | ^ bgp.c:384:31: warning: call to undeclared function 'inet_ntoa'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 384 | printf("NEXT_HOP: %s ",inet_ntoa(htonl(ip))); | ^ bgp.c:384:31: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat] 384 | printf("NEXT_HOP: %s ",inet_ntoa(htonl(ip))); | ~~ ^~~~~~~~~~~~~~~~~~~~ | %d bgp.c:334:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 334 | int getattributes(len) | ^ bgp.c:61:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 61 | int getattributes(); | ^ bgp.c:405:6: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 405 | if(hexread(&b,1)) | ^ bgp.c:414:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 414 | if( hexread(&buf,2) ) | ^ bgp.c:423:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 423 | if( hexread(&buf,4) ) | ^ 33 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c hex.c hex.c:68:5: warning: call to undeclared library function 'bcopy' with type 'void (const void *, void *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 68 | bcopy(bp,buf,num); | ^ hex.c:68:5: note: include the header or explicitly provide a declaration for 'bcopy' hex.c:70:19: warning: passing arguments to 'readline' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 70 | tmp = readline(buf+num); | ^ hex.c:56:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 56 | int hexread(ptr, len) | ^ hex.c:42:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 42 | int hexread(); | ^ hex.c:97:15: warning: call to undeclared library function 'isspace' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 97 | while(*s && isspace(*s)) s++; /* eat white space */ | ^ hex.c:97:15: note: include the header or explicitly provide a declaration for 'isspace' hex.c:105:21: warning: passing arguments to 'hatoi' without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 105 | *buf++ = hatoi( s ); | ^ hex.c:81:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 81 | char *readline(buf) | ^ hex.c:43: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] 43 | char *readline(); | ^ hex.c:121:12: warning: call to undeclared library function 'tolower' with type 'int (int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 121 | str[0] = tolower(str[0]); | ^ hex.c:121:12: note: include the header or explicitly provide a declaration for 'tolower' hex.c:116:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 116 | static int hatoi(str) | ^ hex.c:41: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] 41 | static int hatoi(); | ^ 11 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o BGP bgp.o hex.o cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c generic.c generic.c:58:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 58 | main(argc, argv) | ^ | int generic.c:58:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] generic.c:99:6: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 99 | if(hexread(&b,1)) | ^ generic.c:108:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 108 | if( hexread(&buf,2) ) | ^ generic.c:109:13: warning: call to undeclared function 'ntohs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 109 | return( ntohs(buf) ); | ^ generic.c:117:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 117 | if( hexread(&buf,4) ) | ^ generic.c:118:13: warning: call to undeclared function 'ntohl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 118 | return( ntohl(buf) ); | ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o generic generic.o hex.o cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -c telnet.c telnet.c:60:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] 60 | main(argc, argv) | ^ | int telnet.c:60:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] telnet.c:322:6: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 322 | if(hexread(&b,1)) | ^ telnet.c:331:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 331 | if( hexread(&buf,2) ) | ^ telnet.c:332:13: warning: call to undeclared function 'ntohs'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 332 | return( ntohs(buf) ); | ^ telnet.c:340:7: warning: call to undeclared function 'hexread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 340 | if( hexread(&buf,4) ) | ^ telnet.c:341:13: warning: call to undeclared function 'ntohl'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 341 | return( ntohl(buf) ); | ^ 7 warnings generated. cc -O2 -pipe -Wno-incompatible-function-pointer-types -fstack-protector-strong -fno-strict-aliasing -UCSLIP -DPPP -I.. -I/usr/local/include -o telnet telnet.o hex.o *** Error code 1 (ignored) =========================================================================== =================================================== ===== env: USE_PACKAGE_DEPENDS_ONLY=1 USER=root UID=0 GID=0 ===> tcpview-1.0_8 depends on file: /usr/local/libdata/pkgconfig/xpm.pc - found =========================================================================== =================================================== ===== env: NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Staging for tcpview-1.0_8 ===> Generating temporary packing list mkdir -p /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview mkdir -p /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/tcpview /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/bin + install -s -m 555 -c 386-bsd-tcpview/BGP /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/telnet /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -s -m 555 -c 386-bsd-tcpview/generic /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview/filters + install -m 0644 -c 386-bsd-tcpview/../DOC/hosts /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview + install -m 0644 -c 386-bsd-tcpview/../DOC/manuf /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/tcpview + install -m 444 -c 386-bsd-tcpview/../DOC/tcpview.1 /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/share/man/man1/tcpview.1 install -m 0644 /wrkdirs/usr/ports/net/tcpview/work/tcpview-1.0/DOC/Tcpview /wrkdirs/usr/ports/net/tcpview/work/stage/usr/local/lib/X11/app-defaults ====> 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=2026-01-25T05:35:07+0000' 'PKG_NOTE_ports_top_git_hash=076a295eb33c' 'PKG_NOTE_ports_top_checkout_unclean=no' 'PKG_NOTE_port_git_hash=268db869e823' 'PKG_NOTE_port_checkout_unclean=no' 'PKG_NOTE_built_by=poudriere-git-3.4.2' NO_DEPENDS=yes USER=root UID=0 GID=0 ===> Building packages for tcpview-1.0_8 ===> Building tcpview-1.0_8 =========================================================================== =>> Cleaning up wrkdir ===> Cleaning for tcpview-1.0_8 build of net/tcpview | tcpview-1.0_8 ended at Sun Jan 25 00:35:39 EST 2026 build time: 00:00:34