DC-Build-Header: sniffit 0.3.7.beta-15.1 / Fri Jan 13 04:12:59 +0100 2012 sbuild (Debian sbuild) 0.62.2 (05 Apr 2011) on stremi-19.reims.grid5000.fr ╔══════════════════════════════════════════════════════════════════════════════╗ ║ sniffit 0.3.7.beta-15.1 (amd64) 13 Jan 2012 04:13 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: sniffit Version: 0.3.7.beta-15.1 Source Version: 0.3.7.beta-15.1 Distribution: lsid64b Architecture: amd64 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Ign http://localhost sid InRelease Get:1 http://localhost sid Release.gpg [836 B] Get:2 http://localhost sid Release [188 kB] Ign http://localhost sid/main Sources/DiffIndex Ign http://localhost sid/main amd64 Packages/DiffIndex Ign http://localhost sid/main TranslationIndex Get:3 http://localhost sid/main Sources [7544 kB] Get:4 http://localhost sid/main amd64 Packages [10.4 MB] Ign http://localhost sid/main Translation-en Fetched 18.2 MB in 8s (2065 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages have been kept back: clang cpp-4.6 g++-4.6 gcc-4.6 gcc-4.6-base libgcc1 libgomp1 libquadmath0 libstdc++6 libstdc++6-4.6-dev 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... Need to get 230 kB of source archives. Get:1 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (dsc) [1429 B] Get:2 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (tar) [212 kB] Get:3 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (diff) [16.0 kB] Fetched 230 kB in 0s (504 kB/s) Download complete and in download only mode Check arch ────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/build/sniffit-lDcYCA/resolver-SbDAqP/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 0 B/702 B of archives. After this operation, 0 B of additional disk space will be used. WARNING: The following packages cannot be authenticated! sbuild-build-depends-core-dummy Authentication warning overridden. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 10821 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Cannot open /var/lib/schroot/mount/lsid64b-ffa5702b-c477-4ea5-813d-97b7542fde4e/etc/lsb-release: No such file or directory Merged Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 7), libpcap-dev, libncurses5-dev, autotools-dev, dpatch Filtered Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 7), libpcap-dev, libncurses5-dev, autotools-dev, dpatch dpkg-deb: building package `sbuild-build-depends-sniffit-dummy' in `/build/sniffit-lDcYCA/resolver-Q3dGkr/apt_archive/sbuild-build-depends-sniffit-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install sniffit build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: autotools-dev bsdmainutils debhelper dpatch file gettext gettext-base groff-base html2text intltool-debian libcroco3 libglib2.0-0 libmagic1 libncurses5-dev libpcap-dev libpcap0.8 libpcap0.8-dev libpcre3 libpipeline1 libtinfo-dev libunistring0 libxml2 man-db po-debconf Suggested packages: wamerican wordlist whois vacation dh-make curl gettext-doc groff ncurses-doc www-browser libmail-box-perl Recommended packages: patchutils autopoint libglib2.0-data shared-mime-info xml-core libmail-sendmail-perl The following NEW packages will be installed: autotools-dev bsdmainutils debhelper dpatch file gettext gettext-base groff-base html2text intltool-debian libcroco3 libglib2.0-0 libmagic1 libncurses5-dev libpcap-dev libpcap0.8 libpcap0.8-dev libpcre3 libpipeline1 libtinfo-dev libunistring0 libxml2 man-db po-debconf sbuild-build-depends-sniffit-dummy 0 upgraded, 25 newly installed, 0 to remove and 10 not upgraded. Need to get 10.6 MB/10.6 MB of archives. After this operation, 29.1 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libpipeline1 libpcre3 libglib2.0-0 libxml2 libcroco3 libpcap0.8 libunistring0 bsdmainutils groff-base man-db libmagic1 file gettext-base autotools-dev html2text gettext intltool-debian po-debconf debhelper dpatch libtinfo-dev libncurses5-dev libpcap0.8-dev libpcap-dev sbuild-build-depends-sniffit-dummy Authentication warning overridden. Get:1 http://localhost/debian/ sid/main libpipeline1 amd64 1.2.0-5 [38.2 kB] Get:2 http://localhost/debian/ sid/main libpcre3 amd64 8.12-4 [225 kB] Get:3 http://localhost/debian/ sid/main libglib2.0-0 amd64 2.30.2-4 [1844 kB] Get:4 http://localhost/debian/ sid/main libxml2 amd64 2.7.8.dfsg-5.1 [891 kB] Get:5 http://localhost/debian/ sid/main libcroco3 amd64 0.6.2-2 [122 kB] Get:6 http://localhost/debian/ sid/main libpcap0.8 amd64 1.2.1-1 [139 kB] Get:7 http://localhost/debian/ sid/main libunistring0 amd64 0.9.3-5 [434 kB] Get:8 http://localhost/debian/ sid/main bsdmainutils amd64 8.2.3 [208 kB] Get:9 http://localhost/debian/ sid/main groff-base amd64 1.21-6 [1150 kB] Get:10 http://localhost/debian/ sid/main man-db amd64 2.6.0.2-3 [1015 kB] Get:11 http://localhost/debian/ sid/main libmagic1 amd64 5.09-2 [246 kB] Get:12 http://localhost/debian/ sid/main file amd64 5.09-2 [52.0 kB] Get:13 http://localhost/debian/ sid/main gettext-base amd64 0.18.1.1-5 [154 kB] Get:14 http://localhost/debian/ sid/main autotools-dev all 20110511.1 [73.8 kB] Get:15 http://localhost/debian/ sid/main html2text amd64 1.3.2a-15 [103 kB] Get:16 http://localhost/debian/ sid/main gettext amd64 0.18.1.1-5 [2080 kB] Get:17 http://localhost/debian/ sid/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:18 http://localhost/debian/ sid/main po-debconf all 1.0.16+nmu2 [224 kB] Get:19 http://localhost/debian/ sid/main debhelper all 8.9.14 [693 kB] Get:20 http://localhost/debian/ sid/main dpatch all 2.0.34 [95.1 kB] Get:21 http://localhost/debian/ sid/main libtinfo-dev amd64 5.9-4 [103 kB] Get:22 http://localhost/debian/ sid/main libncurses5-dev amd64 5.9-4 [406 kB] Get:23 http://localhost/debian/ sid/main libpcap0.8-dev amd64 1.2.1-1 [260 kB] Get:24 http://localhost/debian/ sid/main libpcap-dev all 1.2.1-1 [21.6 kB] Preconfiguring packages ... Fetched 10.6 MB in 0s (41.4 MB/s) Selecting previously unselected package libpipeline1. (Reading database ... 10821 files and directories currently installed.) Unpacking libpipeline1 (from .../libpipeline1_1.2.0-5_amd64.deb) ... Selecting previously unselected package libpcre3. Unpacking libpcre3 (from .../libpcre3_8.12-4_amd64.deb) ... Selecting previously unselected package libglib2.0-0. Unpacking libglib2.0-0 (from .../libglib2.0-0_2.30.2-4_amd64.deb) ... Selecting previously unselected package libxml2. Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-5.1_amd64.deb) ... Selecting previously unselected package libcroco3. Unpacking libcroco3 (from .../libcroco3_0.6.2-2_amd64.deb) ... Selecting previously unselected package libpcap0.8. Unpacking libpcap0.8 (from .../libpcap0.8_1.2.1-1_amd64.deb) ... Selecting previously unselected package libunistring0. Unpacking libunistring0 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_8.2.3_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-6_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.0.2-3_amd64.deb) ... Selecting previously unselected package libmagic1. Unpacking libmagic1 (from .../libmagic1_5.09-2_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../archives/file_5.09-2_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-5_amd64.deb) ... Selecting previously unselected package autotools-dev. Unpacking autotools-dev (from .../autotools-dev_20110511.1_all.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-5_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_8.9.14_all.deb) ... Selecting previously unselected package dpatch. Unpacking dpatch (from .../archives/dpatch_2.0.34_all.deb) ... Selecting previously unselected package libtinfo-dev. Unpacking libtinfo-dev (from .../libtinfo-dev_5.9-4_amd64.deb) ... Selecting previously unselected package libncurses5-dev. Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-4_amd64.deb) ... Selecting previously unselected package libpcap0.8-dev. Unpacking libpcap0.8-dev (from .../libpcap0.8-dev_1.2.1-1_amd64.deb) ... Selecting previously unselected package libpcap-dev. Unpacking libpcap-dev (from .../libpcap-dev_1.2.1-1_all.deb) ... Selecting previously unselected package sbuild-build-depends-sniffit-dummy. Unpacking sbuild-build-depends-sniffit-dummy (from .../sbuild-build-depends-sniffit-dummy.deb) ... Processing triggers for install-info ... Setting up libpipeline1 (1.2.0-5) ... Setting up libpcre3 (8.12-4) ... Setting up libglib2.0-0 (2.30.2-4) ... No schema files found: doing nothing. Setting up libxml2 (2.7.8.dfsg-5.1) ... Setting up libcroco3 (0.6.2-2) ... Setting up libpcap0.8 (1.2.1-1) ... Setting up libunistring0 (0.9.3-5) ... Setting up bsdmainutils (8.2.3) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode. update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode. Setting up groff-base (1.21-6) ... Setting up man-db (2.6.0.2-3) ... Building database of manual pages ... Setting up libmagic1 (5.09-2) ... Setting up file (5.09-2) ... Setting up gettext-base (0.18.1.1-5) ... Setting up autotools-dev (20110511.1) ... Setting up html2text (1.3.2a-15) ... Setting up gettext (0.18.1.1-5) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (8.9.14) ... Setting up dpatch (2.0.34) ... Setting up libtinfo-dev (5.9-4) ... Setting up libncurses5-dev (5.9-4) ... Setting up libpcap0.8-dev (1.2.1-1) ... Setting up libpcap-dev (1.2.1-1) ... Setting up sbuild-build-depends-sniffit-dummy (0.invalid.0) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-4 dpkg-dev_1.16.1.2 g++-4.6_4.6.2-9 gcc-4.6_4.6.2-9 libc6-dev_2.13-24 libstdc++6_4.6.2-9 libstdc++6-4.6-dev_4.6.2-9 linux-libc-dev_3.1.8-2 Package versions: apt_0.8.15.9 apt-utils_0.8.15.9 autotools-dev_20110511.1 base-files_6.5 base-passwd_3.5.24 bash_4.2-1 binutils_2.22-4 bsdmainutils_8.2.3 bsdutils_1:2.20.1-1.1 build-essential_11.5 bzip2_1.0.6-1 clang_3.0-5 coreutils_8.13-3 cpp_4:4.6.2-4 cpp-4.6_4.6.2-9 dash_0.5.7-2 debconf_1.5.41 debfoster_2.7-1.1 debhelper_8.9.14 debian-archive-keyring_2010.08.28 debianutils_4.1 diffutils_1:3.2-1 dpatch_2.0.34 dpkg_1.16.1.2 dpkg-dev_1.16.1.2 e2fslibs_1.42-1 e2fsprogs_1.42-1 fakeroot_1.18.2-1 file_5.09-2 findutils_4.4.2-4 g++_4:4.6.2-4 g++-4.6_4.6.2-9 gcc_4:4.6.2-4 gcc-4.6_4.6.2-9 gcc-4.6-base_4.6.2-9 gettext_0.18.1.1-5 gettext-base_0.18.1.1-5 gnupg_1.4.11-3 gpgv_1.4.11-3 grep_2.10-1 groff-base_1.21-6 gzip_1.4-2 hostname_3.09 html2text_1.3.2a-15 initscripts_2.88dsf-18 insserv_1.14.0-2.1 install-info_4.13a.dfsg.1-8 intltool-debian_0.35.0+20060710.1 less_444-1 libacl1_2.2.51-5 libattr1_1:2.4.46-5 libblkid1_2.20.1-1.1 libbz2-1.0_1.0.6-1 libc-bin_2.13-24 libc-dev-bin_2.13-24 libc6_2.13-24 libc6-dev_2.13-24 libclang-common-dev_3.0-5 libclass-isa-perl_0.36-3 libcomerr2_1.42-1 libcroco3_0.6.2-2 libdb5.1_5.1.29-1 libdpkg-perl_1.16.1.2 libffi5_3.0.10-3 libgc1c2_1:7.1-8 libgcc1_1:4.6.2-9 libgdbm3_1.8.3-10 libglib2.0-0_2.30.2-4 libgmp10_2:5.0.2+dfsg-2 libgomp1_4.6.2-9 libllvm3.0_3.0-5 liblzma2_5.1.1alpha+20110809-2 liblzma5_5.1.1alpha+20110809-3 libmagic1_5.09-2 libmount1_2.20.1-1.1 libmpc2_0.9-4 libmpfr4_3.1.0-3 libncurses5_5.9-4 libncurses5-dev_5.9-4 libncursesw5_5.9-4 libpam-modules_1.1.3-6 libpam-modules-bin_1.1.3-6 libpam-runtime_1.1.3-6 libpam0g_1.1.3-6 libpcap-dev_1.2.1-1 libpcap0.8_1.2.1-1 libpcap0.8-dev_1.2.1-1 libpcre3_8.12-4 libpipeline1_1.2.0-5 libquadmath0_4.6.2-9 libreadline6_6.2-8 libselinux1_2.1.0-4 libsepol1_2.1.0-1.2 libslang2_2.2.4-5 libss2_1.42-1 libstdc++6_4.6.2-9 libstdc++6-4.6-dev_4.6.2-9 libswitch-perl_2.16-2 libtimedate-perl_1.2000-1 libtinfo-dev_5.9-4 libtinfo5_5.9-4 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-20 libuuid1_2.20.1-1.1 libxml2_2.7.8.dfsg-5.1 linux-libc-dev_3.1.8-2 login_1:4.1.4.2+svn3283-3 lsb-base_3.2-28 make_3.81-8.1 man-db_2.6.0.2-3 mawk_1.3.3-16 mount_2.20.1-1.1 multiarch-support_2.13-24 ncurses-base_5.9-4 ncurses-bin_5.9-4 nvi_1.81.6-8.2 passwd_1:4.1.4.2+svn3283-3 patch_2.6.1-2 perl_5.14.2-6 perl-base_5.14.2-6 perl-modules_5.14.2-6 po-debconf_1.0.16+nmu2 readline-common_6.2-8 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-sniffit-dummy_0.invalid.0 sed_4.2.1-9 sensible-utils_0.0.6 sysv-rc_2.88dsf-18 sysvinit_2.88dsf-18 sysvinit-utils_2.88dsf-18 tar_1.26-4 tzdata_2011n-2 util-linux_2.20.1-1.1 xz-utils_5.1.1alpha+20110809-3 zlib1g_1:1.2.3.4.dfsg-3 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/var/lib/sbuild/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Sun Nov 20 12:24:50 2011 CET using RSA key ID B6897E7B gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./sniffit_0.3.7.beta-15.1.dsc dpkg-source: info: extracting sniffit in sniffit-0.3.7.beta dpkg-source: info: unpacking sniffit_0.3.7.beta.orig.tar.gz dpkg-source: info: applying sniffit_0.3.7.beta-15.1.diff.gz Check disc space ──────────────── Sufficient free space for build dpkg-buildpackage ───────────────── dpkg-buildpackage: source package sniffit dpkg-buildpackage: source version 0.3.7.beta-15.1 dpkg-source --before-build sniffit-0.3.7.beta dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dpatch deapply-all 05_fix_segfaults_on_amd64_bts644978 not applied to ./ . 04_sniffit+kbsd not applied to ./ . 03_fixmanpages not applied to ./ . 02_headers not applied to ./ . 01_diffpatch not applied to ./ . rm -rf patch-stamp patch-stampT debian/patched dh clean dh_testdir dh_auto_clean dh_clean rm -f config.sub config.guess dpkg-source -b sniffit-0.3.7.beta dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) dpkg-source: info: using source format `1.0' dpkg-source: info: building sniffit using existing sniffit_0.3.7.beta.orig.tar.gz dpkg-source: info: building sniffit in sniffit_0.3.7.beta-15.1.diff.gz dpkg-source: warning: ignoring deletion of file config.sub dpkg-source: warning: ignoring deletion of file config.guess dpkg-source: warning: executable mode 0755 of 'debian/patches/01_diffpatch.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/03_fixmanpages.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/05_fix_segfaults_on_amd64_bts644978.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/02_headers.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/04_sniffit+kbsd.dpatch' will not be represented in diff dpkg-source: info: building sniffit in sniffit_0.3.7.beta-15.1.dsc debian/rules build test -d debian/patched || install -d debian/patched dpatch apply-all applying patch 01_diffpatch to ./ ... ok. applying patch 02_headers to ./ ... ok. applying patch 03_fixmanpages to ./ ... ok. applying patch 04_sniffit+kbsd to ./ ... ok. applying patch 05_fix_segfaults_on_amd64_bts644978 to ./ ... ok. dpatch cat-all >>patch-stampT mv -f patch-stampT patch-stamp dh build --before configure dh: The --before option is deprecated. Use override targets instead. dh_testdir cp /usr/share/misc/config.guess . cp /usr/share/misc/config.sub . ./configure --prefix=/usr --no-recursion creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for main in -lncurses... yes checking for ncurses.h... /usr/include/ncurses.h checking for shmget... yes checking for atexit... yes checking size of unsigned short int... 2 checking size of unsigned long int... 8 unsigned long is NOT 4 bytes... hmmm... checking size of unsigned int... 4 checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking build system type... x86_64-unknown-linux-gnu updating cache ./config.cache creating ./config.status creating Makefile /usr/bin/make OBJ_OPT="" EXE_OPT="-lpcap" make[1]: Entering directory `/build/sniffit-lDcYCA/sniffit-0.3.7.beta' gcc -O2 -c sn_packets.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_packets.c:68:15: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned short *' [-Wincompatible-pointer-types] if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum) ^~~~~~~~~~~~~~~ sn_packets.c:14:41: note: passing argument to parameter 'addr' here unsigned short in_cksum(unsigned short *addr,int len) ^ 1 warning generated. gcc -O2 -c sn_generation.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_generation.c:66:1: warning: implicit declaration of function 'input_field' is invalid in C99 [-Wimplicit-function-declaration] input_field(msg,NULL,0); ^ sn_generation.c:67:1: warning: implicit declaration of function 'forced_refresh' is invalid in C99 [-Wimplicit-function-declaration] forced_refresh(); ^ sn_generation.c:205:22: warning: implicit declaration of function 'in_cksum' is invalid in C99 [-Wimplicit-function-declaration] sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), ^ 3 warnings generated. gcc -O2 -c sn_interface.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_interface.c:195:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->source_ip); ^~~~~~~~~~~~~~~~~~~ sn_interface.c:201:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->destination_ip); ^~~~~~~~~~~~~~~~~~~~~~~~ sn_interface.c:470:8: warning: implicit declaration of function 'isprint' is invalid in C99 [-Wimplicit-function-declaration] isprint(*(connection_data+i))? ^ 3 warnings generated. gcc -O2 -c sn_cfgfile.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_cfgfile.c:125:7: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(string[i]))||(string[i]=='.') ) ^ sn_cfgfile.c:144:8: warning: implicit declaration of function 'iscntrl' is invalid in C99 [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:144:33: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:164:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] digit=(char *)&hostnr; ^~~~~~~~~~~~~~~~ sn_cfgfile.c:228:22: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:244:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:259:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:275:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:291:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:292:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:315:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:316:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:337:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:353:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:368:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:384:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:400:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:401:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:423:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:424:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ 20 warnings generated. gcc -O2 -c sn_logfile.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_logfile.c:96:8: warning: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int'; fchmod(LogFILE, S_IWUSR|S_IRUSR); ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/stat.h:299:24: note: passing argument to parameter '__fd' here extern int fchmod (int __fd, __mode_t __mode) __THROW; ^ 1 warning generated. gcc -O2 -c sn_resolv.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 gcc -O2 -o sniffit sniffit.0.3.7.c sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o -lpcap -lncurses -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 In file included from sniffit.0.3.7.c:35: In file included from ./sn_plugins.h:23: ./dns_plugin.plug:87:12: warning: incompatible pointer types assigning to 'struct PL_DNS_header *' from 'struct DNS_header *' [-Wincompatible-pointer-types] dns_dnshead= (struct DNS_header *) (dns_buffer+udp_start+sizeof(struct UDP_header)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dns_plugin.plug:122:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ ./dns_plugin.plug:142:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ sniffit.0.3.7.c:127:22: warning: implicit declaration of function 'isupper' is invalid in C99 [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.0.3.7.c:127:48: warning: implicit declaration of function 'tolower' is invalid in C99 [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.0.3.7.c:386:11: warning: implicit declaration of function 'isprint' is invalid in C99 [-Wimplicit-function-declaration] if (isprint (data[i])) ^ sniffit.0.3.7.c:546:21: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && ipaddr != iphead.destination /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:546:21: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && ipaddr != iphead.destination /* -t */ ^ ( ) sniffit.0.3.7.c:548:23: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && ipaddr != iphead.source /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:548:23: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && ipaddr != iphead.source /* -s */ ^ ( ) sniffit.0.3.7.c:551:8: warning: '&&' within '||' [-Wlogical-op-parentheses] && ipaddr != iphead.source ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:551:8: note: place parentheses around the '&&' expression to silence this warning && ipaddr != iphead.source ^ sniffit.0.3.7.c:565:25: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:565:25: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ^ ( ) sniffit.0.3.7.c:567:20: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:567:20: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ^ ( ) sniffit.0.3.7.c:570:18: warning: '&&' within '||' [-Wlogical-op-parentheses] && (strncmp (wc_so, IP, n_s) != 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:570:18: note: place parentheses around the '&&' expression to silence this warning && (strncmp (wc_so, IP, n_s) != 0) ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:842:21: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && ipaddr != iphead.destination /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:842:21: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && ipaddr != iphead.destination /* -t */ ^ ( ) sniffit.0.3.7.c:844:23: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && ipaddr != iphead.source /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:844:23: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && ipaddr != iphead.source /* -s */ ^ ( ) sniffit.0.3.7.c:847:8: warning: '&&' within '||' [-Wlogical-op-parentheses] && ipaddr != iphead.source ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:847:8: note: place parentheses around the '&&' expression to silence this warning && ipaddr != iphead.source ^ sniffit.0.3.7.c:858:25: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:858:25: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ^ ( ) sniffit.0.3.7.c:860:20: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:860:20: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ^ ( ) sniffit.0.3.7.c:863:5: warning: '&&' within '||' [-Wlogical-op-parentheses] && (strncmp (wc_so, IP, n_s) != 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:863:5: note: place parentheses around the '&&' expression to silence this warning && (strncmp (wc_so, IP, n_s) != 0) ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:1096:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* Packet is broken */ ^ sniffit.0.3.7.c:1103:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* Packet is not for us */ ^ sniffit.0.3.7.c:1107:43: warning: incompatible pointer types passing 'const struct packetheader *' to parameter of type 'const struct pcap_pkthdr *' [-Wincompatible-pointer-types] pcap_dump((unsigned char *) dev_dump, p_header, sp); ^~~~~~~~ /usr/include/pcap/pcap.h:398:52: note: passing argument to parameter here void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^ sniffit.0.3.7.c:1108:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1154:32: warning: conversion specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf (" SEQ (hex): %lX ", ntohl (tcphead.seq_nr)); ~~^ ~~~~~~~~~~~~~~~~~~~~~~ %X sniffit.0.3.7.c:1156:24: warning: conversion specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf ("ACK (hex): %lX\n", ntohl (tcphead.ACK_nr)); ~~^ ~~~~~~~~~~~~~~~~~~~~~~ %X sniffit.0.3.7.c:1189:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1193:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1259:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:13:2: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:29:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:43:30: error: non-void function 'packethandler' should return a value [-Wreturn-type] if((dummy&FIN)||(dummy&RST)) return; /* needed, cauz entry don't exist */ ^ ./sn_analyse.c:53:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.0.3.7.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:83:52: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.0.3.7.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:95:54: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.0.3.7.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:117:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.0.3.7.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:157:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(workbuf1,data,len); ~~~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:58: note: expanded from: # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:200:1: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:201:1: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* DON'T FORGET THEM!!!! */ ^ sniffit.0.3.7.c:1339:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1372:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ In file included from sniffit.0.3.7.c:1458: ./sn_conn_desc.c:24:12: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:24:32: warning: implicit declaration of function 'ispunct' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:27:15: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) ^ sniffit.0.3.7.c:1485:5: error: non-void function 'interactive_packethandler' should return a value [-Wreturn-type] return; /* Packet is broken */ ^ sniffit.0.3.7.c:1487:5: error: non-void function 'interactive_packethandler' should return a value [-Wreturn-type] return; /* Packet is not for us */ ^ sniffit.0.3.7.c:1522:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGINT, my_exit); /* gracefull termination in different ways */ ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1523:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGHUP, my_exit); ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1524:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGTERM, my_exit); ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1758:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if((dev_desc=pcap_open_offline(DUMPfile,ebuf))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:337:39: note: passing argument to parameter here pcap_t *pcap_open_offline(const char *, char *); ^ sniffit.0.3.7.c:1800:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN0_INIT() ^ // sniffit.0.3.7.c:1804:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN1_INIT() ^ // sniffit.0.3.7.c:1808:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN2_INIT() ^ // sniffit.0.3.7.c:1812:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN3_INIT() ^ // sniffit.0.3.7.c:1816:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN4_INIT() ^ // sniffit.0.3.7.c:1820:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN5_INIT() ^ // sniffit.0.3.7.c:1824:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN6_INIT() ^ // sniffit.0.3.7.c:1828:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN7_INIT() ^ // sniffit.0.3.7.c:1832:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN8_INIT() ^ // sniffit.0.3.7.c:1836:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN9_INIT() ^ // sniffit.0.3.7.c:1864:24: warning: conversion specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf ("Shared %d\n", memsize); ~^ ~~~~~~~ %lu sniffit.0.3.7.c:1867:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] DATAlength = timing + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1868:23: warning: incompatible pointer types assigning to 'char *' from 'int *' [-Wincompatible-pointer-types] connection_data = DATAlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1869:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1870:12: warning: incompatible pointer types assigning to 'struct snif_mask *' from 'int *' [-Wincompatible-pointer-types] mask = LISTlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1871:26: warning: incompatible pointer types assigning to 'char *' from 'struct snif_mask *' [-Wincompatible-pointer-types] logged_connections = mask + sizeof (struct snif_mask); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1874:25: warning: incompatible pointer types assigning to 'unsigned int *' from 'char *' [-Wincompatible-pointer-types] TCP_nr_of_packets = running_connections + (sizeof (struct shared_conn_data) * CONNECTION_CAPACITY); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1875:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] TCP_bytes_in_packets = TCP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1876:26: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] ICMP_nr_of_packets = TCP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1878:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] UDP_bytes_in_packets = UDP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1879:24: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] IP_nr_of_packets = UDP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1880:16: warning: assigning to 'int *' from 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] DESC_LEN = IP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1894:11: warning: incompatible pointer types passing 'pcap_handler (char *, const struct packetheader *, const unsigned char *)' to parameter of type 'pcap_handler' (aka 'void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)') [-Wincompatible-pointer-types] interactive_packethandler, NULL) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/pcap/pcap.h:351:42: note: passing argument to parameter here int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ sniffit.0.3.7.c:1921:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if((dev_dump=pcap_dump_open(dev_desc, DUMPfile))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:392:53: note: passing argument to parameter here pcap_dumper_t *pcap_dump_open(pcap_t *, const char *); ^ sniffit.0.3.7.c:1927:41: warning: incompatible pointer types passing 'pcap_handler (unsigned char *, const struct packetheader *, const unsigned char *)' to parameter of type 'pcap_handler' (aka 'void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)') [-Wincompatible-pointer-types] switch (pcap_loop (dev_desc, CNT, packethandler, (unsigned char *) &ipaddr)) ^~~~~~~~~~~~~ /usr/include/pcap/pcap.h:351:42: note: passing argument to parameter here int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ 202 warnings and 15 errors generated. make[1]: *** [sniffit] Error 1 make[1]: Leaving directory `/build/sniffit-lDcYCA/sniffit-0.3.7.beta' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20120113-0413 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /var/lib/schroot/mount/lsid64b-ffa5702b-c477-4ea5-813d-97b7542fde4e/build/sniffit-lDcYCA Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Architecture: amd64 Build-Space: 1248 Build-Time: 3 Distribution: lsid64b Fail-Stage: build Install-Time: 7 Job: sniffit_0.3.7.beta-15.1 Package: sniffit Package-Time: 28 Source-Version: 0.3.7.beta-15.1 Space: 1248 Status: attempted Version: 0.3.7.beta-15.1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20120113-0413 Build needed 00:00:28, 1248k disc space DC-Message: Failed, but took only 30.01546. Retrying, you never know. Requested exclusive mode, but other builds running. sbuild (Debian sbuild) 0.62.2 (05 Apr 2011) on stremi-19.reims.grid5000.fr ╔══════════════════════════════════════════════════════════════════════════════╗ ║ sniffit 0.3.7.beta-15.1 (amd64) 13 Jan 2012 04:14 ║ ╚══════════════════════════════════════════════════════════════════════════════╝ Package: sniffit Version: 0.3.7.beta-15.1 Source Version: 0.3.7.beta-15.1 Distribution: lsid64b Architecture: amd64 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Update chroot │ └──────────────────────────────────────────────────────────────────────────────┘ Ign http://localhost sid InRelease Get:1 http://localhost sid Release.gpg [836 B] Get:2 http://localhost sid Release [188 kB] Ign http://localhost sid/main Sources/DiffIndex Ign http://localhost sid/main amd64 Packages/DiffIndex Ign http://localhost sid/main TranslationIndex Get:3 http://localhost sid/main Sources [7544 kB] Get:4 http://localhost sid/main amd64 Packages [10.4 MB] Ign http://localhost sid/main Translation-en Fetched 18.2 MB in 5s (3408 kB/s) Reading package lists... Reading package lists... Building dependency tree... Reading state information... The following packages have been kept back: clang cpp-4.6 g++-4.6 gcc-4.6 gcc-4.6-base libgcc1 libgomp1 libquadmath0 libstdc++6 libstdc++6-4.6-dev 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. ┌──────────────────────────────────────────────────────────────────────────────┐ │ Fetch source files │ └──────────────────────────────────────────────────────────────────────────────┘ Check APT ───────── Checking available source versions... Download source files with APT ────────────────────────────── Reading package lists... Building dependency tree... Reading state information... Need to get 230 kB of source archives. Get:1 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (dsc) [1429 B] Get:2 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (tar) [212 kB] Get:3 http://localhost/debian/ sid/main sniffit 0.3.7.beta-15.1 (diff) [16.0 kB] Fetched 230 kB in 0s (15.0 MB/s) Download complete and in download only mode Check arch ────────── Merged Build-Depends: build-essential, fakeroot Filtered Build-Depends: build-essential, fakeroot dpkg-deb: building package `sbuild-build-depends-core-dummy' in `/build/sniffit-cbhj37/resolver-oWGwLy/apt_archive/sbuild-build-depends-core-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install core build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sbuild-build-depends-core-dummy 0 upgraded, 1 newly installed, 0 to remove and 10 not upgraded. Need to get 0 B/704 B of archives. After this operation, 0 B of additional disk space will be used. WARNING: The following packages cannot be authenticated! sbuild-build-depends-core-dummy Authentication warning overridden. Selecting previously unselected package sbuild-build-depends-core-dummy. (Reading database ... 10821 files and directories currently installed.) Unpacking sbuild-build-depends-core-dummy (from .../sbuild-build-depends-core-dummy.deb) ... Setting up sbuild-build-depends-core-dummy (0.invalid.0) ... Cannot open /var/lib/schroot/mount/lsid64b-8f3adeb2-cdb5-4687-8562-aa48340bc8da/etc/lsb-release: No such file or directory Merged Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev | libc-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 7), libpcap-dev, libncurses5-dev, autotools-dev, dpatch Filtered Build-Depends: base-files, base-passwd, bash, coreutils, dash, debianutils, diffutils, dpkg, e2fsprogs, findutils, grep, gzip, hostname, ncurses-base, ncurses-bin, perl-base, sed, login, sysvinit-utils, sysvinit, tar, bsdutils, mount, util-linux, libc6-dev, gcc (>= 4:4.4.3), g++ (>= 4:4.4.3), make, dpkg-dev (>= 1.13.5), debhelper (>= 7), libpcap-dev, libncurses5-dev, autotools-dev, dpatch dpkg-deb: building package `sbuild-build-depends-sniffit-dummy' in `/build/sniffit-cbhj37/resolver-TqpSAZ/apt_archive/sbuild-build-depends-sniffit-dummy.deb'. OK Reading package lists... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Install sniffit build dependencies (apt-based resolver) │ └──────────────────────────────────────────────────────────────────────────────┘ Installing build dependencies Reading package lists... Building dependency tree... Reading state information... The following extra packages will be installed: autotools-dev bsdmainutils debhelper dpatch file gettext gettext-base groff-base html2text intltool-debian libcroco3 libglib2.0-0 libmagic1 libncurses5-dev libpcap-dev libpcap0.8 libpcap0.8-dev libpcre3 libpipeline1 libtinfo-dev libunistring0 libxml2 man-db po-debconf Suggested packages: wamerican wordlist whois vacation dh-make curl gettext-doc groff ncurses-doc www-browser libmail-box-perl Recommended packages: patchutils autopoint libglib2.0-data shared-mime-info xml-core libmail-sendmail-perl The following NEW packages will be installed: autotools-dev bsdmainutils debhelper dpatch file gettext gettext-base groff-base html2text intltool-debian libcroco3 libglib2.0-0 libmagic1 libncurses5-dev libpcap-dev libpcap0.8 libpcap0.8-dev libpcre3 libpipeline1 libtinfo-dev libunistring0 libxml2 man-db po-debconf sbuild-build-depends-sniffit-dummy 0 upgraded, 25 newly installed, 0 to remove and 10 not upgraded. Need to get 10.6 MB/10.6 MB of archives. After this operation, 29.1 MB of additional disk space will be used. WARNING: The following packages cannot be authenticated! libpipeline1 libpcre3 libglib2.0-0 libxml2 libcroco3 libpcap0.8 libunistring0 bsdmainutils groff-base man-db libmagic1 file gettext-base autotools-dev html2text gettext intltool-debian po-debconf debhelper dpatch libtinfo-dev libncurses5-dev libpcap0.8-dev libpcap-dev sbuild-build-depends-sniffit-dummy Authentication warning overridden. Get:1 http://localhost/debian/ sid/main libpipeline1 amd64 1.2.0-5 [38.2 kB] Get:2 http://localhost/debian/ sid/main libpcre3 amd64 8.12-4 [225 kB] Get:3 http://localhost/debian/ sid/main libglib2.0-0 amd64 2.30.2-4 [1844 kB] Get:4 http://localhost/debian/ sid/main libxml2 amd64 2.7.8.dfsg-5.1 [891 kB] Get:5 http://localhost/debian/ sid/main libcroco3 amd64 0.6.2-2 [122 kB] Get:6 http://localhost/debian/ sid/main libpcap0.8 amd64 1.2.1-1 [139 kB] Get:7 http://localhost/debian/ sid/main libunistring0 amd64 0.9.3-5 [434 kB] Get:8 http://localhost/debian/ sid/main bsdmainutils amd64 8.2.3 [208 kB] Get:9 http://localhost/debian/ sid/main groff-base amd64 1.21-6 [1150 kB] Get:10 http://localhost/debian/ sid/main man-db amd64 2.6.0.2-3 [1015 kB] Get:11 http://localhost/debian/ sid/main libmagic1 amd64 5.09-2 [246 kB] Get:12 http://localhost/debian/ sid/main file amd64 5.09-2 [52.0 kB] Get:13 http://localhost/debian/ sid/main gettext-base amd64 0.18.1.1-5 [154 kB] Get:14 http://localhost/debian/ sid/main autotools-dev all 20110511.1 [73.8 kB] Get:15 http://localhost/debian/ sid/main html2text amd64 1.3.2a-15 [103 kB] Get:16 http://localhost/debian/ sid/main gettext amd64 0.18.1.1-5 [2080 kB] Get:17 http://localhost/debian/ sid/main intltool-debian all 0.35.0+20060710.1 [30.8 kB] Get:18 http://localhost/debian/ sid/main po-debconf all 1.0.16+nmu2 [224 kB] Get:19 http://localhost/debian/ sid/main debhelper all 8.9.14 [693 kB] Get:20 http://localhost/debian/ sid/main dpatch all 2.0.34 [95.1 kB] Get:21 http://localhost/debian/ sid/main libtinfo-dev amd64 5.9-4 [103 kB] Get:22 http://localhost/debian/ sid/main libncurses5-dev amd64 5.9-4 [406 kB] Get:23 http://localhost/debian/ sid/main libpcap0.8-dev amd64 1.2.1-1 [260 kB] Get:24 http://localhost/debian/ sid/main libpcap-dev all 1.2.1-1 [21.6 kB] Preconfiguring packages ... Fetched 10.6 MB in 0s (41.8 MB/s) Selecting previously unselected package libpipeline1. (Reading database ... 10821 files and directories currently installed.) Unpacking libpipeline1 (from .../libpipeline1_1.2.0-5_amd64.deb) ... Selecting previously unselected package libpcre3. Unpacking libpcre3 (from .../libpcre3_8.12-4_amd64.deb) ... Selecting previously unselected package libglib2.0-0. Unpacking libglib2.0-0 (from .../libglib2.0-0_2.30.2-4_amd64.deb) ... Selecting previously unselected package libxml2. Unpacking libxml2 (from .../libxml2_2.7.8.dfsg-5.1_amd64.deb) ... Selecting previously unselected package libcroco3. Unpacking libcroco3 (from .../libcroco3_0.6.2-2_amd64.deb) ... Selecting previously unselected package libpcap0.8. Unpacking libpcap0.8 (from .../libpcap0.8_1.2.1-1_amd64.deb) ... Selecting previously unselected package libunistring0. Unpacking libunistring0 (from .../libunistring0_0.9.3-5_amd64.deb) ... Selecting previously unselected package bsdmainutils. Unpacking bsdmainutils (from .../bsdmainutils_8.2.3_amd64.deb) ... Selecting previously unselected package groff-base. Unpacking groff-base (from .../groff-base_1.21-6_amd64.deb) ... Selecting previously unselected package man-db. Unpacking man-db (from .../man-db_2.6.0.2-3_amd64.deb) ... Selecting previously unselected package libmagic1. Unpacking libmagic1 (from .../libmagic1_5.09-2_amd64.deb) ... Selecting previously unselected package file. Unpacking file (from .../archives/file_5.09-2_amd64.deb) ... Selecting previously unselected package gettext-base. Unpacking gettext-base (from .../gettext-base_0.18.1.1-5_amd64.deb) ... Selecting previously unselected package autotools-dev. Unpacking autotools-dev (from .../autotools-dev_20110511.1_all.deb) ... Selecting previously unselected package html2text. Unpacking html2text (from .../html2text_1.3.2a-15_amd64.deb) ... Selecting previously unselected package gettext. Unpacking gettext (from .../gettext_0.18.1.1-5_amd64.deb) ... Selecting previously unselected package intltool-debian. Unpacking intltool-debian (from .../intltool-debian_0.35.0+20060710.1_all.deb) ... Selecting previously unselected package po-debconf. Unpacking po-debconf (from .../po-debconf_1.0.16+nmu2_all.deb) ... Selecting previously unselected package debhelper. Unpacking debhelper (from .../debhelper_8.9.14_all.deb) ... Selecting previously unselected package dpatch. Unpacking dpatch (from .../archives/dpatch_2.0.34_all.deb) ... Selecting previously unselected package libtinfo-dev. Unpacking libtinfo-dev (from .../libtinfo-dev_5.9-4_amd64.deb) ... Selecting previously unselected package libncurses5-dev. Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-4_amd64.deb) ... Selecting previously unselected package libpcap0.8-dev. Unpacking libpcap0.8-dev (from .../libpcap0.8-dev_1.2.1-1_amd64.deb) ... Selecting previously unselected package libpcap-dev. Unpacking libpcap-dev (from .../libpcap-dev_1.2.1-1_all.deb) ... Selecting previously unselected package sbuild-build-depends-sniffit-dummy. Unpacking sbuild-build-depends-sniffit-dummy (from .../sbuild-build-depends-sniffit-dummy.deb) ... Processing triggers for install-info ... Setting up libpipeline1 (1.2.0-5) ... Setting up libpcre3 (8.12-4) ... Setting up libglib2.0-0 (2.30.2-4) ... No schema files found: doing nothing. Setting up libxml2 (2.7.8.dfsg-5.1) ... Setting up libcroco3 (0.6.2-2) ... Setting up libpcap0.8 (1.2.1-1) ... Setting up libunistring0 (0.9.3-5) ... Setting up bsdmainutils (8.2.3) ... update-alternatives: using /usr/bin/bsd-write to provide /usr/bin/write (write) in auto mode. update-alternatives: using /usr/bin/bsd-from to provide /usr/bin/from (from) in auto mode. Setting up groff-base (1.21-6) ... Setting up man-db (2.6.0.2-3) ... Building database of manual pages ... Setting up libmagic1 (5.09-2) ... Setting up file (5.09-2) ... Setting up gettext-base (0.18.1.1-5) ... Setting up autotools-dev (20110511.1) ... Setting up html2text (1.3.2a-15) ... Setting up gettext (0.18.1.1-5) ... Setting up intltool-debian (0.35.0+20060710.1) ... Setting up po-debconf (1.0.16+nmu2) ... Setting up debhelper (8.9.14) ... Setting up dpatch (2.0.34) ... Setting up libtinfo-dev (5.9-4) ... Setting up libncurses5-dev (5.9-4) ... Setting up libpcap0.8-dev (1.2.1-1) ... Setting up libpcap-dev (1.2.1-1) ... Setting up sbuild-build-depends-sniffit-dummy (0.invalid.0) ... ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build environment │ └──────────────────────────────────────────────────────────────────────────────┘ Kernel: Linux 2.6.32-5-amd64 amd64 (x86_64) Toolchain package versions: binutils_2.22-4 dpkg-dev_1.16.1.2 g++-4.6_4.6.2-9 gcc-4.6_4.6.2-9 libc6-dev_2.13-24 libstdc++6_4.6.2-9 libstdc++6-4.6-dev_4.6.2-9 linux-libc-dev_3.1.8-2 Package versions: apt_0.8.15.9 apt-utils_0.8.15.9 autotools-dev_20110511.1 base-files_6.5 base-passwd_3.5.24 bash_4.2-1 binutils_2.22-4 bsdmainutils_8.2.3 bsdutils_1:2.20.1-1.1 build-essential_11.5 bzip2_1.0.6-1 clang_3.0-5 coreutils_8.13-3 cpp_4:4.6.2-4 cpp-4.6_4.6.2-9 dash_0.5.7-2 debconf_1.5.41 debfoster_2.7-1.1 debhelper_8.9.14 debian-archive-keyring_2010.08.28 debianutils_4.1 diffutils_1:3.2-1 dpatch_2.0.34 dpkg_1.16.1.2 dpkg-dev_1.16.1.2 e2fslibs_1.42-1 e2fsprogs_1.42-1 fakeroot_1.18.2-1 file_5.09-2 findutils_4.4.2-4 g++_4:4.6.2-4 g++-4.6_4.6.2-9 gcc_4:4.6.2-4 gcc-4.6_4.6.2-9 gcc-4.6-base_4.6.2-9 gettext_0.18.1.1-5 gettext-base_0.18.1.1-5 gnupg_1.4.11-3 gpgv_1.4.11-3 grep_2.10-1 groff-base_1.21-6 gzip_1.4-2 hostname_3.09 html2text_1.3.2a-15 initscripts_2.88dsf-18 insserv_1.14.0-2.1 install-info_4.13a.dfsg.1-8 intltool-debian_0.35.0+20060710.1 less_444-1 libacl1_2.2.51-5 libattr1_1:2.4.46-5 libblkid1_2.20.1-1.1 libbz2-1.0_1.0.6-1 libc-bin_2.13-24 libc-dev-bin_2.13-24 libc6_2.13-24 libc6-dev_2.13-24 libclang-common-dev_3.0-5 libclass-isa-perl_0.36-3 libcomerr2_1.42-1 libcroco3_0.6.2-2 libdb5.1_5.1.29-1 libdpkg-perl_1.16.1.2 libffi5_3.0.10-3 libgc1c2_1:7.1-8 libgcc1_1:4.6.2-9 libgdbm3_1.8.3-10 libglib2.0-0_2.30.2-4 libgmp10_2:5.0.2+dfsg-2 libgomp1_4.6.2-9 libllvm3.0_3.0-5 liblzma2_5.1.1alpha+20110809-2 liblzma5_5.1.1alpha+20110809-3 libmagic1_5.09-2 libmount1_2.20.1-1.1 libmpc2_0.9-4 libmpfr4_3.1.0-3 libncurses5_5.9-4 libncurses5-dev_5.9-4 libncursesw5_5.9-4 libpam-modules_1.1.3-6 libpam-modules-bin_1.1.3-6 libpam-runtime_1.1.3-6 libpam0g_1.1.3-6 libpcap-dev_1.2.1-1 libpcap0.8_1.2.1-1 libpcap0.8-dev_1.2.1-1 libpcre3_8.12-4 libpipeline1_1.2.0-5 libquadmath0_4.6.2-9 libreadline6_6.2-8 libselinux1_2.1.0-4 libsepol1_2.1.0-1.2 libslang2_2.2.4-5 libss2_1.42-1 libstdc++6_4.6.2-9 libstdc++6-4.6-dev_4.6.2-9 libswitch-perl_2.16-2 libtimedate-perl_1.2000-1 libtinfo-dev_5.9-4 libtinfo5_5.9-4 libunistring0_0.9.3-5 libusb-0.1-4_2:0.1.12-20 libuuid1_2.20.1-1.1 libxml2_2.7.8.dfsg-5.1 linux-libc-dev_3.1.8-2 login_1:4.1.4.2+svn3283-3 lsb-base_3.2-28 make_3.81-8.1 man-db_2.6.0.2-3 mawk_1.3.3-16 mount_2.20.1-1.1 multiarch-support_2.13-24 ncurses-base_5.9-4 ncurses-bin_5.9-4 nvi_1.81.6-8.2 passwd_1:4.1.4.2+svn3283-3 patch_2.6.1-2 perl_5.14.2-6 perl-base_5.14.2-6 perl-modules_5.14.2-6 po-debconf_1.0.16+nmu2 readline-common_6.2-8 sbuild-build-depends-core-dummy_0.invalid.0 sbuild-build-depends-sniffit-dummy_0.invalid.0 sed_4.2.1-9 sensible-utils_0.0.6 sysv-rc_2.88dsf-18 sysvinit_2.88dsf-18 sysvinit-utils_2.88dsf-18 tar_1.26-4 tzdata_2011n-2 util-linux_2.20.1-1.1 xz-utils_5.1.1alpha+20110809-3 zlib1g_1:1.2.3.4.dfsg-3 ┌──────────────────────────────────────────────────────────────────────────────┐ │ Build │ └──────────────────────────────────────────────────────────────────────────────┘ Unpack source ───────────── gpgv: keyblock resource `/var/lib/sbuild/.gnupg/trustedkeys.gpg': file open error gpgv: Signature made Sun Nov 20 12:24:50 2011 CET using RSA key ID B6897E7B gpgv: Can't check signature: public key not found dpkg-source: warning: failed to verify signature on ./sniffit_0.3.7.beta-15.1.dsc dpkg-source: info: extracting sniffit in sniffit-0.3.7.beta dpkg-source: info: unpacking sniffit_0.3.7.beta.orig.tar.gz dpkg-source: info: applying sniffit_0.3.7.beta-15.1.diff.gz Check disc space ──────────────── Sufficient free space for build dpkg-buildpackage ───────────────── dpkg-buildpackage: source package sniffit dpkg-buildpackage: source version 0.3.7.beta-15.1 dpkg-source --before-build sniffit-0.3.7.beta dpkg-buildpackage: host architecture amd64 fakeroot debian/rules clean dpatch deapply-all 05_fix_segfaults_on_amd64_bts644978 not applied to ./ . 04_sniffit+kbsd not applied to ./ . 03_fixmanpages not applied to ./ . 02_headers not applied to ./ . 01_diffpatch not applied to ./ . rm -rf patch-stamp patch-stampT debian/patched dh clean dh_testdir dh_auto_clean dh_clean rm -f config.sub config.guess dpkg-source -b sniffit-0.3.7.beta dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1) dpkg-source: info: using source format `1.0' dpkg-source: info: building sniffit using existing sniffit_0.3.7.beta.orig.tar.gz dpkg-source: info: building sniffit in sniffit_0.3.7.beta-15.1.diff.gz dpkg-source: warning: ignoring deletion of file config.sub dpkg-source: warning: ignoring deletion of file config.guess dpkg-source: warning: executable mode 0755 of 'debian/patches/01_diffpatch.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/03_fixmanpages.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/05_fix_segfaults_on_amd64_bts644978.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/02_headers.dpatch' will not be represented in diff dpkg-source: warning: executable mode 0755 of 'debian/patches/04_sniffit+kbsd.dpatch' will not be represented in diff dpkg-source: info: building sniffit in sniffit_0.3.7.beta-15.1.dsc debian/rules build test -d debian/patched || install -d debian/patched dpatch apply-all applying patch 01_diffpatch to ./ ... ok. applying patch 02_headers to ./ ... ok. applying patch 03_fixmanpages to ./ ... ok. applying patch 04_sniffit+kbsd to ./ ... ok. applying patch 05_fix_segfaults_on_amd64_bts644978 to ./ ... ok. dpatch cat-all >>patch-stampT mv -f patch-stampT patch-stamp dh build --before configure dh: The --before option is deprecated. Use override targets instead. dh_testdir cp /usr/share/misc/config.guess . cp /usr/share/misc/config.sub . ./configure --prefix=/usr --no-recursion creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for main in -lncurses... yes checking for ncurses.h... /usr/include/ncurses.h checking for shmget... yes checking for atexit... yes checking size of unsigned short int... 2 checking size of unsigned long int... 8 unsigned long is NOT 4 bytes... hmmm... checking size of unsigned int... 4 checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking build system type... x86_64-unknown-linux-gnu updating cache ./config.cache creating ./config.status creating Makefile /usr/bin/make OBJ_OPT="" EXE_OPT="-lpcap" make[1]: Entering directory `/build/sniffit-cbhj37/sniffit-0.3.7.beta' gcc -O2 -c sn_packets.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_packets.c:68:15: warning: incompatible pointer types passing 'unsigned char *' to parameter of type 'unsigned short *' [-Wincompatible-pointer-types] if(in_cksum((sp+PROTO_HEAD),unwrapped->IP_len) != IPhead.checksum) ^~~~~~~~~~~~~~~ sn_packets.c:14:41: note: passing argument to parameter 'addr' here unsigned short in_cksum(unsigned short *addr,int len) ^ 1 warning generated. gcc -O2 -c sn_generation.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_generation.c:66:1: warning: implicit declaration of function 'input_field' is invalid in C99 [-Wimplicit-function-declaration] input_field(msg,NULL,0); ^ sn_generation.c:67:1: warning: implicit declaration of function 'forced_refresh' is invalid in C99 [-Wimplicit-function-declaration] forced_refresh(); ^ sn_generation.c:205:22: warning: implicit declaration of function 'in_cksum' is invalid in C99 [-Wimplicit-function-declaration] sp_help_ip->checksum=in_cksum((unsigned short *) (sp->buffer), ^ 3 warnings generated. gcc -O2 -c sn_interface.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_interface.c:195:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->source_ip); ^~~~~~~~~~~~~~~~~~~ sn_interface.c:201:3: warning: incompatible pointer types assigning to 'unsigned char *' from '_32_bit *' (aka 'unsigned int *') [-Wincompatible-pointer-types] ad=&(mask->destination_ip); ^~~~~~~~~~~~~~~~~~~~~~~~ sn_interface.c:470:8: warning: implicit declaration of function 'isprint' is invalid in C99 [-Wimplicit-function-declaration] isprint(*(connection_data+i))? ^ 3 warnings generated. gcc -O2 -c sn_cfgfile.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_cfgfile.c:125:7: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(string[i]))||(string[i]=='.') ) ^ sn_cfgfile.c:144:8: warning: implicit declaration of function 'iscntrl' is invalid in C99 [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:144:33: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] if( !(iscntrl(string[i])) && !(isspace(string[i])) ) ^ sn_cfgfile.c:164:6: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] digit=(char *)&hostnr; ^~~~~~~~~~~~~~~~ sn_cfgfile.c:228:22: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:244:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:259:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:275:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:291:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:292:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:315:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:316:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:337:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:353:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:368:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:384:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, clean_string(strtok(NULL," "))); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:400:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host,dot_notation); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:401:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host,dot_notation); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:423:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(help->host, field); ^~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ sn_cfgfile.c:424:15: warning: passing 'unsigned char [16]' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] strcpy(helpp->host, field); ^~~~~~~~~~~ /usr/include/string.h:128:39: note: passing argument to parameter '__dest' here extern char *strcpy (char *__restrict __dest, __const char *__restrict __src) ^ 20 warnings generated. gcc -O2 -c sn_logfile.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 sn_logfile.c:96:8: warning: incompatible pointer to integer conversion passing 'FILE *' (aka 'struct _IO_FILE *') to parameter of type 'int'; fchmod(LogFILE, S_IWUSR|S_IRUSR); ^~~~~~~ /usr/include/x86_64-linux-gnu/sys/stat.h:299:24: note: passing argument to parameter '__fd' here extern int fchmod (int __fd, __mode_t __mode) __THROW; ^ 1 warning generated. gcc -O2 -c sn_resolv.c -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 gcc -O2 -o sniffit sniffit.0.3.7.c sn_packets.o sn_generation.o sn_interface.o sn_cfgfile.o sn_logfile.o sn_resolv.o -lpcap -lncurses -DHAVE_LIBNCURSES=1 -DHAVE_NCURSES_H=1 -DHAVE_SHMGET=1 -DHAVE_ATEXIT=1 -DSIZEOF_UNSIGNED_SHORT_INT=2 -DSIZEOF_UNSIGNED_LONG_INT=8 -DSIZEOF_UNSIGNED_INT=4 -DUSE_32_INT=1 -DLINUX=1 In file included from sniffit.0.3.7.c:35: In file included from ./sn_plugins.h:23: ./dns_plugin.plug:87:12: warning: incompatible pointer types assigning to 'struct PL_DNS_header *' from 'struct DNS_header *' [-Wincompatible-pointer-types] dns_dnshead= (struct DNS_header *) (dns_buffer+udp_start+sizeof(struct UDP_header)); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./dns_plugin.plug:122:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ ./dns_plugin.plug:142:25: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign] dec_pos=PL_DNS_decode(dns_p,dec_pos,NULL,0); ^~~~~ ./dns_plugin.plug:30:25: note: passing argument to parameter 'buf' here int PL_DNS_decode(char *buf, int start_pos,char *string, int start_string) ^ sniffit.0.3.7.c:127:22: warning: implicit declaration of function 'isupper' is invalid in C99 [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.0.3.7.c:127:48: warning: implicit declaration of function 'tolower' is invalid in C99 [-Wimplicit-function-declaration] *(string + i) = (isupper (*(string + i)) ? tolower (*(string + i)) : *(string + i)); ^ sniffit.0.3.7.c:386:11: warning: implicit declaration of function 'isprint' is invalid in C99 [-Wimplicit-function-declaration] if (isprint (data[i])) ^ sniffit.0.3.7.c:546:21: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && ipaddr != iphead.destination /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:546:21: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && ipaddr != iphead.destination /* -t */ ^ ( ) sniffit.0.3.7.c:548:23: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && ipaddr != iphead.source /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:548:23: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && ipaddr != iphead.source /* -s */ ^ ( ) sniffit.0.3.7.c:551:8: warning: '&&' within '||' [-Wlogical-op-parentheses] && ipaddr != iphead.source ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:551:8: note: place parentheses around the '&&' expression to silence this warning && ipaddr != iphead.source ^ sniffit.0.3.7.c:565:25: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:565:25: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ^ ( ) sniffit.0.3.7.c:567:20: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:567:20: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ^ ( ) sniffit.0.3.7.c:570:18: warning: '&&' within '||' [-Wlogical-op-parentheses] && (strncmp (wc_so, IP, n_s) != 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:570:18: note: place parentheses around the '&&' expression to silence this warning && (strncmp (wc_so, IP, n_s) != 0) ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:602:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:611:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:611:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:641:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:650:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:650:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:680:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:689:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:720:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:720:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:729:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:729:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:842:21: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && ipaddr != iphead.destination /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:842:21: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && ipaddr != iphead.destination /* -t */ ^ ( ) sniffit.0.3.7.c:844:23: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && ipaddr != iphead.source /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:844:23: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && ipaddr != iphead.source /* -s */ ^ ( ) sniffit.0.3.7.c:847:8: warning: '&&' within '||' [-Wlogical-op-parentheses] && ipaddr != iphead.source ^~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:847:8: note: place parentheses around the '&&' expression to silence this warning && ipaddr != iphead.source ^ sniffit.0.3.7.c:858:25: warning: '&&' within '||' [-Wlogical-op-parentheses] if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:858:25: note: place parentheses around the '&&' expression to silence this warning if (MODE == DEST && (strncmp (wc_dest, IP, n_s) != 0) /* -t */ ^ ( ) sniffit.0.3.7.c:860:20: warning: '&&' within '||' [-Wlogical-op-parentheses] MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:860:20: note: place parentheses around the '&&' expression to silence this warning MODE == SOURCE && (strncmp (wc_so, IP, n_s) != 0) /* -s */ ^ ( ) sniffit.0.3.7.c:863:5: warning: '&&' within '||' [-Wlogical-op-parentheses] && (strncmp (wc_so, IP, n_s) != 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:863:5: note: place parentheses around the '&&' expression to silence this warning && (strncmp (wc_so, IP, n_s) != 0) ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:893:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:904:42: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:904:26: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_so, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:934:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_dest, str_IP) == 0) ~~~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:945:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:945:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:973:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^ sniffit.0.3.7.c:982:25: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strcmp (wc_so, str_IP) == 0) ~~~~~~~~~~~~~~~^~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:1010:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1010:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:921:41: note: expanded from: (__extension__ (__builtin_constant_p (n) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:923:38: note: expanded from: && strlen (s1) < ((size_t) (n))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:17: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:925:34: note: expanded from: && strlen (s2) < ((size_t) (n)))) \ ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:804:74: note: expanded from: && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:807:31: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:811:30: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:814:39: note: expanded from: && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:816:33: note: expanded from: ? __builtin_strcmp (s1, s2) \ ^~ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:19: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/x86_64-linux-gnu/bits/string2.h:818:30: note: expanded from: : __builtin_strcmp (s1, s2)))); }) ^~ sniffit.0.3.7.c:1019:44: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:42: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:399:37: note: passing argument to parameter '__s' here extern size_t strlen (__const char *__s) ^ sniffit.0.3.7.c:1019:28: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if (strncmp (wc_dest, str_IP, strlen (str_IP)) == 0) ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:926:38: note: expanded from: ? strcmp (s1, s2) : strncmp (s1, s2, n))) ^ /usr/include/string.h:146:55: note: passing argument to parameter '__s2' here extern int strncmp (__const char *__s1, __const char *__s2, size_t __n) ^ sniffit.0.3.7.c:1096:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* Packet is broken */ ^ sniffit.0.3.7.c:1103:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* Packet is not for us */ ^ sniffit.0.3.7.c:1107:43: warning: incompatible pointer types passing 'const struct packetheader *' to parameter of type 'const struct pcap_pkthdr *' [-Wincompatible-pointer-types] pcap_dump((unsigned char *) dev_dump, p_header, sp); ^~~~~~~~ /usr/include/pcap/pcap.h:398:52: note: passing argument to parameter here void pcap_dump(u_char *, const struct pcap_pkthdr *, const u_char *); ^ sniffit.0.3.7.c:1108:5: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1154:32: warning: conversion specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf (" SEQ (hex): %lX ", ntohl (tcphead.seq_nr)); ~~^ ~~~~~~~~~~~~~~~~~~~~~~ %X sniffit.0.3.7.c:1156:24: warning: conversion specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat] printf ("ACK (hex): %lX\n", ntohl (tcphead.ACK_nr)); ~~^ ~~~~~~~~~~~~~~~~~~~~~~ %X sniffit.0.3.7.c:1189:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1193:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1259:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:13:2: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:29:3: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:43:30: error: non-void function 'packethandler' should return a value [-Wreturn-type] if((dummy&FIN)||(dummy&RST)) return; /* needed, cauz entry don't exist */ ^ ./sn_analyse.c:53:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.0.3.7.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:83:52: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.0.3.7.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:95:54: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] record_buf(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len,0); ^~~~ sniffit.0.3.7.c:358:12: note: passing argument to parameter 'data' here char *data, int len, int type) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:117:51: warning: passing 'const unsigned char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types] sbuf_update(dummy_pointer,ntohl(tcphead.seq_nr),data,info.DATA_len); ^~~~ sniffit.0.3.7.c:413:13: note: passing argument to parameter 'data' here char *data, int len) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:157:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] strncpy(workbuf1,data,len); ~~~~~~~~~~~~~~~~~^~~~~~~~~ /usr/include/x86_64-linux-gnu/bits/string2.h:761:58: note: expanded from: # define strncpy(dest, src, n) __builtin_strncpy (dest, src, n) ^ In file included from sniffit.0.3.7.c:1270: ./sn_analyse.c:200:1: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ ./sn_analyse.c:201:1: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; /* DON'T FORGET THEM!!!! */ ^ sniffit.0.3.7.c:1339:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ sniffit.0.3.7.c:1372:7: error: non-void function 'packethandler' should return a value [-Wreturn-type] return; ^ In file included from sniffit.0.3.7.c:1458: ./sn_conn_desc.c:24:12: warning: implicit declaration of function 'isalnum' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:24:32: warning: implicit declaration of function 'ispunct' is invalid in C99 [-Wimplicit-function-declaration] if( (isalnum(data[i]) || ispunct(data[i]) || data[i]==' ')&&(j<(*DESC_LEN)-1) ) ^ ./sn_conn_desc.c:27:15: warning: implicit declaration of function 'isspace' is invalid in C99 [-Wimplicit-function-declaration] {if( (isspace(data[i]) && data[i]!=' ')&&(j<(*DESC_LEN)-1) ) ^ sniffit.0.3.7.c:1485:5: error: non-void function 'interactive_packethandler' should return a value [-Wreturn-type] return; /* Packet is broken */ ^ sniffit.0.3.7.c:1487:5: error: non-void function 'interactive_packethandler' should return a value [-Wreturn-type] return; /* Packet is not for us */ ^ sniffit.0.3.7.c:1522:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGINT, my_exit); /* gracefull termination in different ways */ ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1523:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGHUP, my_exit); ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1524:20: warning: incompatible pointer types passing 'void (void)' to parameter of type '__sighandler_t' (aka 'void (*)(int)') [-Wincompatible-pointer-types] signal (SIGTERM, my_exit); ^~~~~~~ /usr/include/signal.h:101:57: note: passing argument to parameter '__handler' here extern __sighandler_t signal (int __sig, __sighandler_t __handler) ^ sniffit.0.3.7.c:1758:36: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if((dev_desc=pcap_open_offline(DUMPfile,ebuf))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:337:39: note: passing argument to parameter here pcap_t *pcap_open_offline(const char *, char *); ^ sniffit.0.3.7.c:1800:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN0_INIT() ^ // sniffit.0.3.7.c:1804:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN1_INIT() ^ // sniffit.0.3.7.c:1808:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN2_INIT() ^ // sniffit.0.3.7.c:1812:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN3_INIT() ^ // sniffit.0.3.7.c:1816:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN4_INIT() ^ // sniffit.0.3.7.c:1820:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN5_INIT() ^ // sniffit.0.3.7.c:1824:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN6_INIT() ^ // sniffit.0.3.7.c:1828:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN7_INIT() ^ // sniffit.0.3.7.c:1832:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN8_INIT() ^ // sniffit.0.3.7.c:1836:20: warning: extra tokens at end of #ifdef directive [-Wextra-tokens] #ifdef PLUGIN9_INIT() ^ // sniffit.0.3.7.c:1864:24: warning: conversion specifies type 'int' but the argument has type 'unsigned long' [-Wformat] printf ("Shared %d\n", memsize); ~^ ~~~~~~~ %lu sniffit.0.3.7.c:1867:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] DATAlength = timing + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1868:23: warning: incompatible pointer types assigning to 'char *' from 'int *' [-Wincompatible-pointer-types] connection_data = DATAlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1869:18: warning: incompatible pointer types assigning to 'int *' from 'char *' [-Wincompatible-pointer-types] LISTlength = connection_data + LENGTH_OF_INTERPROC_DATA; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1870:12: warning: incompatible pointer types assigning to 'struct snif_mask *' from 'int *' [-Wincompatible-pointer-types] mask = LISTlength + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1871:26: warning: incompatible pointer types assigning to 'char *' from 'struct snif_mask *' [-Wincompatible-pointer-types] logged_connections = mask + sizeof (struct snif_mask); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1874:25: warning: incompatible pointer types assigning to 'unsigned int *' from 'char *' [-Wincompatible-pointer-types] TCP_nr_of_packets = running_connections + (sizeof (struct shared_conn_data) * CONNECTION_CAPACITY); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1875:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] TCP_bytes_in_packets = TCP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1876:26: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] ICMP_nr_of_packets = TCP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1878:28: warning: incompatible pointer types assigning to 'unsigned long *' from 'unsigned int *' [-Wincompatible-pointer-types] UDP_bytes_in_packets = UDP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1879:24: warning: incompatible pointer types assigning to 'unsigned int *' from 'unsigned long *' [-Wincompatible-pointer-types] IP_nr_of_packets = UDP_bytes_in_packets + sizeof (unsigned long); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1880:16: warning: assigning to 'int *' from 'unsigned int *' converts between pointers to integer types with different sign [-Wpointer-sign] DESC_LEN = IP_nr_of_packets + sizeof (int); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sniffit.0.3.7.c:1894:11: warning: incompatible pointer types passing 'pcap_handler (char *, const struct packetheader *, const unsigned char *)' to parameter of type 'pcap_handler' (aka 'void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)') [-Wincompatible-pointer-types] interactive_packethandler, NULL) < 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/pcap/pcap.h:351:42: note: passing argument to parameter here int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ sniffit.0.3.7.c:1921:47: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign] if((dev_dump=pcap_dump_open(dev_desc, DUMPfile))==NULL) ^~~~~~~~ /usr/include/pcap/pcap.h:392:53: note: passing argument to parameter here pcap_dumper_t *pcap_dump_open(pcap_t *, const char *); ^ sniffit.0.3.7.c:1927:41: warning: incompatible pointer types passing 'pcap_handler (unsigned char *, const struct packetheader *, const unsigned char *)' to parameter of type 'pcap_handler' (aka 'void (*)(u_char *, const struct pcap_pkthdr *, const u_char *)') [-Wincompatible-pointer-types] switch (pcap_loop (dev_desc, CNT, packethandler, (unsigned char *) &ipaddr)) ^~~~~~~~~~~~~ /usr/include/pcap/pcap.h:351:42: note: passing argument to parameter here int pcap_loop(pcap_t *, int, pcap_handler, u_char *); ^ 202 warnings and 15 errors generated. make[1]: *** [sniffit] Error 1 make[1]: Leaving directory `/build/sniffit-cbhj37/sniffit-0.3.7.beta' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 ──────────────────────────────────────────────────────────────────────────────── Build finished at 20120113-0414 Finished ──────── E: Build failure (dpkg-buildpackage died) ┌──────────────────────────────────────────────────────────────────────────────┐ │ Cleanup │ └──────────────────────────────────────────────────────────────────────────────┘ Purging /var/lib/schroot/mount/lsid64b-8f3adeb2-cdb5-4687-8562-aa48340bc8da/build/sniffit-cbhj37 Not cleaning session: cloned chroot in use ┌──────────────────────────────────────────────────────────────────────────────┐ │ Summary │ └──────────────────────────────────────────────────────────────────────────────┘ Architecture: amd64 Build-Space: 1248 Build-Time: 3 Distribution: lsid64b Fail-Stage: build Install-Time: 6 Job: sniffit_0.3.7.beta-15.1 Package: sniffit Package-Time: 24 Source-Version: 0.3.7.beta-15.1 Space: 1248 Status: attempted Version: 0.3.7.beta-15.1 ──────────────────────────────────────────────────────────────────────────────── Finished at 20120113-0414 Build needed 00:00:24, 1248k disc space DC-Build-Status: Failed 85.448537s ### Content of /var/log/daemon.log ### Jan 12 21:03:54 stremi-19 approx: Concurrent download of debian/dists/sid/Release.gpg is taking too long Jan 12 21:04:05 stremi-19 approx: Concurrent download of debian/dists/sid/Release.gpg is taking too long Jan 12 21:04:21 stremi-19 approx: Concurrent download of debian/dists/sid/Release.gpg is taking too long Jan 12 21:04:51 stremi-19 approx: Concurrent download of debian/dists/sid/Release.gpg is taking too long Jan 12 21:05:08 stremi-19 approx: Concurrent download of debian/dists/sid/Release is taking too long Jan 12 21:05:30 stremi-19 approx: Concurrent download of debian/dists/sid/main/binary-amd64/Packages.xz is taking too long Jan 13 02:01:13 stremi-19 approx: Nethttpd: Broken pipe Jan 13 02:04:58 stremi-19 approx: Nethttpd: Broken pipe Jan 13 03:45:37 stremi-19 approx: Concurrent download of debian/dists/sid/main/i18n/Translation-en.bz2 is taking too long Jan 13 04:01:02 stremi-19 approx: Concurrent download of debian/dists/sid/main/i18n/Translation-en.xz is taking too long Jan 13 04:09:34 stremi-19 approx: Concurrent download of debian/dists/sid/main/i18n/Translation-en is taking too long Jan 13 04:11:28 stremi-19 approx: Concurrent download of debian/dists/sid/main/i18n/Index is taking too long ### End of content of /var/log/daemon.log ### DC-Time-Estimation: 85.448537 versus expected 17 (r/m: 4.02638452941176 ; m: 17.0) DC-Build-Network: USED. See /tmp/rulesafter.0IF6D1 ! ************************************************************ # Generated by iptables-save v1.4.8 on Fri Jan 13 04:14:25 2012 *filter :INPUT ACCEPT [6563194:39453285963] :FORWARD ACCEPT [0:0] :OUTPUT DROP [0:0] :LD - [0:0] [3519230:34636438744] -A OUTPUT -o lo -j ACCEPT [0:0] -A OUTPUT -d 129.88.0.0/16 -j ACCEPT [0:0] -A OUTPUT -d 10.0.0.0/8 -j ACCEPT [0:0] -A OUTPUT -d 192.168.133.0/24 -j ACCEPT [0:0] -A OUTPUT -d 192.168.159.0/24 -j ACCEPT [0:0] -A OUTPUT -d 192.168.160.0/24 -j ACCEPT [0:0] -A OUTPUT -d 10.69.0.0/17 -j ACCEPT [0:0] -A OUTPUT -d 172.28.52.0/22 -j ACCEPT [0:0] -A OUTPUT -d 172.24.0.0/16 -j ACCEPT [0:0] -A OUTPUT -d 131.254.202.0/23 -j ACCEPT [0:0] -A OUTPUT -d 138.96.20.0/22 -j ACCEPT [0:0] -A OUTPUT -d 192.168.22.0/24 -j ACCEPT [544202:184941414] -A OUTPUT -d 172.16.0.0/16 -j ACCEPT [0:0] -A OUTPUT -d 192.168.67.0/24 -j ACCEPT [51999:6898390] -A OUTPUT -d 224.0.0.0/4 -p udp -j ACCEPT [147:8780] -A OUTPUT -j LD [147:8780] -A LD -j LOG [147:8780] -A LD -j REJECT --reject-with icmp-port-unreachable COMMIT # Completed on Fri Jan 13 04:14:25 2012 ************************************************************ --- /tmp/rulesbefore.3F7lUU 2012-01-13 04:12:59.705373706 +0100 +++ /tmp/rulesafter.0IF6D1 2012-01-13 04:14:25.161694362 +0100 @@ -1,10 +1,10 @@ -# Generated by iptables-save v1.4.8 on Fri Jan 13 04:12:59 2012 +# Generated by iptables-save v1.4.8 on Fri Jan 13 04:14:25 2012 *filter -:INPUT ACCEPT [6532337:39177752310] +:INPUT ACCEPT [6563194:39453285963] :FORWARD ACCEPT [0:0] :OUTPUT DROP [0:0] :LD - [0:0] -[3498324:34362995304] -A OUTPUT -o lo -j ACCEPT +[3519230:34636438744] -A OUTPUT -o lo -j ACCEPT [0:0] -A OUTPUT -d 129.88.0.0/16 -j ACCEPT [0:0] -A OUTPUT -d 10.0.0.0/8 -j ACCEPT [0:0] -A OUTPUT -d 192.168.133.0/24 -j ACCEPT @@ -16,11 +16,11 @@ [0:0] -A OUTPUT -d 131.254.202.0/23 -j ACCEPT [0:0] -A OUTPUT -d 138.96.20.0/22 -j ACCEPT [0:0] -A OUTPUT -d 192.168.22.0/24 -j ACCEPT -[541303:184066253] -A OUTPUT -d 172.16.0.0/16 -j ACCEPT +[544202:184941414] -A OUTPUT -d 172.16.0.0/16 -j ACCEPT [0:0] -A OUTPUT -d 192.168.67.0/24 -j ACCEPT -[51854:6879702] -A OUTPUT -d 224.0.0.0/4 -p udp -j ACCEPT +[51999:6898390] -A OUTPUT -d 224.0.0.0/4 -p udp -j ACCEPT [147:8780] -A OUTPUT -j LD [147:8780] -A LD -j LOG [147:8780] -A LD -j REJECT --reject-with icmp-port-unreachable COMMIT -# Completed on Fri Jan 13 04:12:59 2012 +# Completed on Fri Jan 13 04:14:25 2012 ************************************************************ [18365.841316] [] ? do_page_fault+0x2e0/0x2fc [18365.847783] [] ? page_fault+0x25/0x30 [18365.853764] INFO: task gcc:25848 blocked for more than 120 seconds. [18365.860816] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [18365.869642] gcc D 0000000000000000 0 25848 25835 0x00000000 [18365.877397] ffff88063e45f100 0000000000000082 0000000000000000 ffff88094ac15780 [18365.885783] ffff88033e50e2e0 ffffffff812fb320 000000000000f9e0 ffff880b34a8ffd8 [18365.894158] 0000000000015780 0000000000015780 ffff880afe86aa60 ffff880afe86ad58 [18365.902535] Call Trace: [18365.905294] [] ? thread_return+0x79/0xe0 [18365.911577] [] ? get_request+0x7e/0x2ba [18365.917753] [] ? io_schedule+0x73/0xb7 [18365.923832] [] ? get_request_wait+0xf0/0x188 [18365.930485] [] ? autoremove_wake_function+0x0/0x2e [18365.937732] [] ? __make_request+0x2f7/0x428 [18365.944299] [] ? generic_make_request+0x299/0x2f9 [18365.951451] [] ? submit_bio+0xd6/0xf2 [18365.957433] [] ? end_swap_bio_read+0x0/0x60 [18365.963999] [] ? bio_alloc+0x10/0x1f [18365.969884] [] ? get_swap_bio+0x4a/0x9a [18365.976062] [] ? swap_readpage+0x4f/0x53 [18365.982335] [] ? read_swap_cache_async+0xb3/0xf3 [18365.989388] [] ? swapin_readahead+0x57/0x98 [18365.995953] [] ? handle_mm_fault+0x47f/0x80f [18366.002617] [] ? do_page_fault+0x2e0/0x2fc [18366.009086] [] ? page_fault+0x25/0x30 [18366.015069] INFO: task gcc:25861 blocked for more than 120 seconds. [18366.022119] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [18366.030944] gcc D 0000000000000000 0 25861 25848 0x00000000 [18366.038698] ffff88063e45f100 0000000000000086 0000000000000000 ffff88094ac15780 [18366.047093] ffff88033e50e2e0 ffffffff812fb320 000000000000f9e0 ffff880bb0925fd8 [18366.055479] 0000000000015780 0000000000015780 ffff880afe86e9f0 ffff880afe86ece8 [18366.063851] Call Trace: [18366.066621] [] ? thread_return+0x79/0xe0 [18366.072904] [] ? get_request+0x7e/0x2ba [18366.079081] [] ? io_schedule+0x73/0xb7 [18366.085161] [] ? get_request_wait+0xf0/0x188 [18366.091821] [] ? autoremove_wake_function+0x0/0x2e [18366.099067] [] ? __make_request+0x2f7/0x428 [18366.105632] [] ? generic_make_request+0x299/0x2f9 [18366.112786] [] ? submit_bio+0xd6/0xf2 [18366.118768] [] ? end_swap_bio_read+0x0/0x60 [18366.125335] [] ? bio_alloc+0x10/0x1f [18366.131218] [] ? get_swap_bio+0x4a/0x9a [18366.137397] [] ? swap_readpage+0x4f/0x53 [18366.143669] [] ? read_swap_cache_async+0xb3/0xf3 [18366.150721] [] ? swapin_readahead+0x57/0x98 [18366.157288] [] ? handle_mm_fault+0x47f/0x80f [18366.163951] [] ? do_page_fault+0x2e0/0x2fc [18366.170421] [] ? page_fault+0x25/0x30 ************************************************************