<86>Apr 14 02:09:57 userdel[23582]: delete user 'rooter' <86>Apr 14 02:09:57 groupadd[23591]: group added to /etc/group: name=rooter, GID=573 <86>Apr 14 02:09:57 groupadd[23591]: group added to /etc/gshadow: name=rooter <86>Apr 14 02:09:57 groupadd[23591]: new group: name=rooter, GID=573 <86>Apr 14 02:09:57 useradd[23597]: new user: name=rooter, UID=573, GID=573, home=/root, shell=/bin/bash <86>Apr 14 02:09:57 userdel[23607]: delete user 'builder' <86>Apr 14 02:09:57 userdel[23607]: removed group 'builder' owned by 'builder' <86>Apr 14 02:09:57 userdel[23607]: removed shadow group 'builder' owned by 'builder' <86>Apr 14 02:09:57 groupadd[23614]: group added to /etc/group: name=builder, GID=574 <86>Apr 14 02:09:57 groupadd[23614]: group added to /etc/gshadow: name=builder <86>Apr 14 02:09:57 groupadd[23614]: new group: name=builder, GID=574 <86>Apr 14 02:09:57 useradd[23618]: new user: name=builder, UID=574, GID=574, home=/usr/src, shell=/bin/bash <13>Apr 14 02:10:03 rpmi: perl-Encode-2.83-alt1 1459157776 installed <13>Apr 14 02:10:03 rpmi: libpng15-1.5.28-alt1 1484572014 installed <13>Apr 14 02:10:03 rpmi: perl-HTTP-Date-6.02-alt1 1348645274 installed <13>Apr 14 02:10:03 rpmi: liblcms2-2.8-alt1 1471601528 installed <13>Apr 14 02:10:03 rpmi: libjpeg-2:1.3.1-alt0.1 1388074033 installed <13>Apr 14 02:10:03 rpmi: libexpat-2.2.4-alt0.M80P.1 1503871120 installed <13>Apr 14 02:10:03 rpmi: libcom_err-1.42.13-alt2 1449075846 installed <13>Apr 14 02:10:03 rpmi: libtiff5-4.0.3-alt1 1348347498 installed <13>Apr 14 02:10:03 rpmi: perl-XML-NamespaceSupport-1.11-alt3 1322003535 installed <13>Apr 14 02:10:03 rpmi: libwrap-1:7.6-alt11 1297041305 installed <13>Apr 14 02:10:03 rpmi: libidn2-2.0.4-alt3.M80P.1 1520307194 installed <13>Apr 14 02:10:03 rpmi: perl-XML-SAX-Base-1.08-alt1 1317871344 installed <13>Apr 14 02:10:03 rpmi: perl-LWP-MediaTypes-6.02-alt1 1329754558 installed <13>Apr 14 02:10:03 rpmi: perl-libnet-1:3.08-alt1 1458419902 installed <13>Apr 14 02:10:03 rpmi: perl-URI-1.71-alt1 1455181348 installed <13>Apr 14 02:10:03 rpmi: perl-Compress-Raw-Zlib-2.069-alt1.1 1448470036 installed <13>Apr 14 02:10:03 rpmi: libnl3-3.2.27-alt1 1455210193 installed <13>Apr 14 02:10:03 rpmi: libsensors3-3.4.0-alt2.M80P.1 1509487807 installed <13>Apr 14 02:10:03 rpmi: libgdbm-1.8.3-alt10 1454943313 installed <13>Apr 14 02:10:03 rpmi: libpaper-1.1.24-alt4 1315383473 installed <13>Apr 14 02:10:03 rpmi: libwayland-server-1.14.0-alt0.M80P.1 1502720500 installed <13>Apr 14 02:10:03 rpmi: libopenjpeg2.0-2.2.0-alt0.M80P.1 1503526491 installed <13>Apr 14 02:10:03 rpmi: libnspr-1:4.20-alt1 p8.216526.40 1542382588 installed <13>Apr 14 02:10:03 rpmi: libverto-0.2.6-alt1_6 1455633234 installed <13>Apr 14 02:10:03 rpmi: ca-certificates-2016.02.25-alt1 1462368370 installed <13>Apr 14 02:10:03 rpmi: libcrypto10-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 02:10:03 rpmi: bc-1:1.06-alt4 1461014962 installed <13>Apr 14 02:10:03 rpmi: libverto-devel-0.2.6-alt1_6 1455633234 installed <13>Apr 14 02:10:03 rpmi: libsensors3-devel-3.4.0-alt2.M80P.1 1509487807 installed <13>Apr 14 02:10:03 rpmi: libnl3-utils-3.2.27-alt1 1455210193 installed <13>Apr 14 02:10:03 rpmi: libnl-devel-3.2.27-alt1 1455210193 installed <13>Apr 14 02:10:03 rpmi: perl-WWW-RobotRules-6.02-alt1 1329756211 installed <13>Apr 14 02:10:03 rpmi: libwrap-devel-1:7.6-alt11 1297041305 installed <13>Apr 14 02:10:03 rpmi: libcom_err-devel-1.42.13-alt2 1449075846 installed <13>Apr 14 02:10:03 rpmi: perl-File-Listing-6.04-alt1 1329758996 installed <13>Apr 14 02:10:03 rpmi: perl-Encode-Locale-1.05-alt1 1444608613 installed <13>Apr 14 02:10:03 rpmi: perl-IO-HTML-1.001-alt1 1404821752 installed <13>Apr 14 02:10:03 rpmi: perl-Math-Complex-1.59-alt1 1334229876 installed <13>Apr 14 02:10:03 rpmi: perl-Image-Size-3.300-alt1 1427928842 installed <13>Apr 14 02:10:03 rpmi: perl-IO-Socket-IP-0.37-alt1 1444921335 installed <13>Apr 14 02:10:03 rpmi: perl-HTML-Tagset-3.20-alt2 1317725093 installed <13>Apr 14 02:10:03 rpmi: perl-HTML-Parser-3.72-alt1 1455170565 installed <13>Apr 14 02:10:03 rpmi: perl-IO-String-1.08-alt2 1321677915 installed <13>Apr 14 02:10:03 rpmi: perl-DBI-1.634-alt1.1 1448475650 installed <13>Apr 14 02:10:03 rpmi: perl-Compress-Raw-Bzip2-2.069-alt1.1 1448470068 installed <13>Apr 14 02:10:03 rpmi: perl-IO-Compress-2.069-alt1 1444618007 installed <13>Apr 14 02:10:03 rpmi: perl-HTTP-Message-6.11-alt1 1444616672 installed <13>Apr 14 02:10:03 rpmi: perl-HTTP-Cookies-6.01-alt1 1329759964 installed <13>Apr 14 02:10:03 rpmi: perl-HTTP-Negotiate-6.01-alt1 1329760563 installed <13>Apr 14 02:10:03 rpmi: perl-Net-HTTP-6.09-alt1 1432310023 installed <13>Apr 14 02:10:03 rpmi: perl-libwww-6.15-alt1 1449505512 installed <13>Apr 14 02:10:03 rpmi: perl-XML-Parser-2.44-alt2 1456264144 installed <13>Apr 14 02:10:03 rpmi: perl-Font-TTF-1.05-alt1 1444947468 installed <13>Apr 14 02:10:03 rpmi: pax-3.4-alt4 1342099772 installed <13>Apr 14 02:10:03 rpmi: passwd-1.0.13-alt1 1345839815 installed <13>Apr 14 02:10:03 rpmi: shadow-groups-1:4.2.1-alt7.M80P.1 1488910419 installed <13>Apr 14 02:10:03 rpmi: groff-base-1.22.3-alt1 1454540699 installed <13>Apr 14 02:10:03 rpmi: mailx-8.1.2-alt7 1366314831 installed <13>Apr 14 02:10:03 rpmi: printer-testpages-2.0-alt2 1148643941 installed <13>Apr 14 02:10:03 rpmi: shadow-change-1:4.2.1-alt7.M80P.1 1488910419 installed <13>Apr 14 02:10:04 rpmi: su-0.60-alt34 1450064790 installed <13>Apr 14 02:10:04 rpmi: msulogin-1.0-alt1 1366288481 installed <13>Apr 14 02:10:04 rpmi: sysvinit-2.88-alt5 1424350685 installed <13>Apr 14 02:10:04 rpmi: mount-2.30.2-alt0.M80P.1 1522077023 installed <13>Apr 14 02:10:04 rpmi: lsb-release-2.0-alt5 p8+220299.300.3.1 1548956156 installed <13>Apr 14 02:10:04 rpmi: lsb-init-4.0-alt5 1475673085 installed <13>Apr 14 02:10:04 rpmi: libusb-1.0.21-alt0.M80P.1 1485147102 installed <13>Apr 14 02:10:04 rpmi: libpipeline-1.4.1-alt1_2 1455618753 installed <13>Apr 14 02:10:04 rpmi: libpcre16-8.40-alt1 1484570205 installed <13>Apr 14 02:10:04 rpmi: pcretest-8.40-alt1 1484570205 installed <13>Apr 14 02:10:04 rpmi: libpcap0.8-2:1.1.1-alt3 1298589613 installed <13>Apr 14 02:10:04 rpmi: snmp-mibs-std-0.3-alt3 1324533215 installed <86>Apr 14 02:10:04 groupadd[31546]: group added to /etc/group: name=snmp, GID=499 <86>Apr 14 02:10:04 groupadd[31546]: group added to /etc/gshadow: name=snmp <86>Apr 14 02:10:04 groupadd[31546]: new group: name=snmp, GID=499 <86>Apr 14 02:10:04 useradd[31550]: new user: name=snmp, UID=499, GID=499, home=/dev/null, shell=/dev/null <86>Apr 14 02:10:04 usermod[31555]: change user 'snmp' GID from '499' to '19' <13>Apr 14 02:10:04 rpmi: net-snmp-common-5.7.3-alt1.1 1452404148 installed <13>Apr 14 02:10:04 rpmi: liblua5.1-5.1.5-alt1 1410604186 installed <13>Apr 14 02:10:04 rpmi: libdbi-1.0-alt1.cvs20092729.2 1300001782 installed <13>Apr 14 02:10:04 rpmi: libdatrie-0.2.8-alt1_5 1410185969 installed <13>Apr 14 02:10:04 rpmi: libthai-0.1.24-alt1_1 1459282110 installed <13>Apr 14 02:10:04 rpmi: less-481-alt1.M80P.1 1477657645 installed <13>Apr 14 02:10:04 rpmi: man-db-2.7.6.1-alt4.1 1493922866 installed <13>Apr 14 02:10:04 rpmi: gcc-c++-common-1.4.20-alt1 1432315196 installed <13>Apr 14 02:10:05 rpmi: libstdc++5-devel-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 02:10:05 rpmi: libqpdf-6.0.0-alt1 1464028734 installed <13>Apr 14 02:10:05 rpmi: rpm-build-xdg-0.2-alt1 1250461503 installed <13>Apr 14 02:10:05 rpmi: shared-mime-info-1.9-alt0.M80P.1 1506021412 installed <13>Apr 14 02:10:05 rpmi: gsettings-desktop-schemas-data-3.24.1-alt0.M80P.1 1504768054 installed <13>Apr 14 02:10:05 rpmi: liblz4-1:1.7.5-alt1 1488766699 installed <13>Apr 14 02:10:05 rpmi: libgpg-error-1.31-alt1.M80P.1 1529024730 installed <13>Apr 14 02:10:05 rpmi: libgcrypt20-1.8.3-alt4 p8+219793.200.6.1 1551112986 installed <13>Apr 14 02:10:05 rpmi: libsystemd-1:237-alt2.M80P.6 p8+221965.100.2.1 1550786217 installed <13>Apr 14 02:10:05 rpmi: libdbus-1.10.24-alt4.M80P.1 1518773282 installed <13>Apr 14 02:10:05 rpmi: libavahi-0.6.31-alt7.M80P.1 1526318593 installed <13>Apr 14 02:10:05 rpmi: libavahi-glib-0.6.31-alt7.M80P.1 1526318593 installed <13>Apr 14 02:10:05 rpmi: libpixman-3:0.32.8-alt1 1447610691 installed <13>Apr 14 02:10:05 rpmi: libwayland-client-1.14.0-alt0.M80P.1 1502720500 installed <13>Apr 14 02:10:05 rpmi: libxshmfence-1.2-alt1 1420972191 installed <13>Apr 14 02:10:05 rpmi: libpciaccess-1:0.13.4-alt1 1431681688 installed <13>Apr 14 02:10:05 rpmi: libdrm-1:2.4.89-alt1.M80P.1 1516609380 installed <13>Apr 14 02:10:05 rpmi: libgbm-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 14 02:10:05 rpmi: libX11-locales-3:1.6.3-alt1 1431956885 installed <13>Apr 14 02:10:05 rpmi: libXdmcp-1.1.1-alt1 1334617699 installed <13>Apr 14 02:10:05 rpmi: libXau-1.0.8-alt1 1369565807 installed <13>Apr 14 02:10:05 rpmi: libxcb-1.12-alt2 p8.218219.300 1545313310 installed <13>Apr 14 02:10:05 rpmi: libX11-3:1.6.3-alt1 1431956911 installed <13>Apr 14 02:10:05 rpmi: libXext-1.3.3-alt1 1409902932 installed <13>Apr 14 02:10:05 rpmi: libXrender-0.9.8-alt1 1371312110 installed <13>Apr 14 02:10:05 rpmi: libXxf86vm-1.1.3-alt1 1369984824 installed <13>Apr 14 02:10:05 rpmi: libXdamage-1.1.3-alt4 1297162596 installed <13>Apr 14 02:10:05 rpmi: libXfixes-5.0.1-alt1 1369809606 installed <13>Apr 14 02:10:05 rpmi: libGL-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 14 02:10:05 rpmi: libEGL-4:18.0.5-alt1.M80P.1 p8+226404.100.1.1 1554206332 installed <13>Apr 14 02:10:05 rpmi: libsqlite3-3.15.2-alt1 1480432212 installed <13>Apr 14 02:10:06 rpmi: libnss-3.40.0-alt0.M80P.1 p8.216526.44 1542814585 installed <13>Apr 14 02:10:06 rpmi: libgraphite2-1.3.10-alt0.M80P.1 1496411360 installed <13>Apr 14 02:10:06 rpmi: publicsuffix-list-dafsa-20190329-alt1 p8+226349.100.1.1 1554128046 installed <13>Apr 14 02:10:06 rpmi: libpsl-0.18.0-alt0.M80P.1 1502785107 installed <13>Apr 14 02:10:06 rpmi: libnghttp2-1.8.0-alt1 1456818805 installed <13>Apr 14 02:10:06 rpmi: libkeyutils-1.5.10-alt0.M80P.2 p8+216694.100.6.1 1547827915 installed <13>Apr 14 02:10:06 rpmi: libbrotlicommon0-1.0.4-alt0.M80P.1 1528205024 installed <13>Apr 14 02:10:06 rpmi: libbrotlidec0-1.0.4-alt0.M80P.1 1528205024 installed <13>Apr 14 02:10:06 rpmi: poppler-data-0.4.8-alt1.M80P.1 1524561858 installed <13>Apr 14 02:10:06 rpmi: libcdb-0.78-alt1 1415920747 installed <13>Apr 14 02:10:06 rpmi: setproctitle-0.3.2-alt3 1299638025 installed <86>Apr 14 02:10:06 groupadd[1715]: group added to /etc/group: name=crontab, GID=498 <86>Apr 14 02:10:06 groupadd[1715]: group added to /etc/gshadow: name=crontab <86>Apr 14 02:10:06 groupadd[1715]: new group: name=crontab, GID=498 <13>Apr 14 02:10:06 rpmi: crontab-control-1.1-alt1 1096742625 installed <13>Apr 14 02:10:06 rpmi: vixie-cron-4.1.20060426-alt10 1463671756 installed <13>Apr 14 02:10:06 rpmi: crontabs-1.8-alt1 1051273643 installed <13>Apr 14 02:10:06 rpmi: logrotate-3.9.1-alt2 1450147683 installed <13>Apr 14 02:10:06 rpmi: syslog-common-1.4.1-alt30 1234405058 installed <13>Apr 14 02:10:06 rpmi: xinetd-2.3.15-alt3 1404214766 installed <13>Apr 14 02:10:06 rpmi: procmail-3.22-alt9 1409848130 installed <13>Apr 14 02:10:06 rpmi: postfix-control-1.6.1-alt1 1172679477 installed <13>Apr 14 02:10:06 rpmi: chrooted-0.3.8-alt1 1345812375 installed <13>Apr 14 02:10:06 rpmi: ppp-common-0.5.1-alt1 1244040597 installed <13>Apr 14 02:10:06 rpmi: sendmail-common-1.7-alt3 1353029717 installed <86>Apr 14 02:10:06 groupadd[2291]: group added to /etc/group: name=mailadm, GID=497 <86>Apr 14 02:10:06 groupadd[2291]: group added to /etc/gshadow: name=mailadm <86>Apr 14 02:10:06 groupadd[2291]: new group: name=mailadm, GID=497 <86>Apr 14 02:10:06 useradd[2300]: failed adding user 'postfix' (exit code: 9) <86>Apr 14 02:10:06 useradd[2302]: new user: name=postman, UID=498, GID=48, home=/dev/null, shell=/dev/null <13>Apr 14 02:10:06 rpmi: postfix-1:2.11.7-alt2 1456930535 installed Editing /etc/postfix/master.cf, adding missing entry for postscreen TCP service COMPATIBILITY: editing /etc/postfix/main.cf, setting inet_protocols=ipv4. Specify inet_protocols explicitly if you want to enable IPv6. In a future release IPv6 will be enabled by default. <13>Apr 14 02:10:07 rpmi: rpm-macros-pam0-1.3.0-alt1 1465951470 installed <13>Apr 14 02:10:07 rpmi: libpam0-devel-1.3.0-alt1 1465951439 installed <13>Apr 14 02:10:08 rpmi: gcc5-c++-5.3.1-alt3.M80P.1 p8+225520.100.3.1 1553688800 installed <13>Apr 14 02:10:08 rpmi: liblua5-devel-5.1.5-alt1 1410604186 installed <13>Apr 14 02:10:08 rpmi: libpcap-devel-2:1.1.1-alt3 1298589613 installed <13>Apr 14 02:10:08 rpmi: libpcre-devel-8.40-alt1 1484570205 installed <13>Apr 14 02:10:08 rpmi: libgdbm-devel-1.8.3-alt10 1454943313 installed <13>Apr 14 02:10:08 rpmi: zlib-devel-1.2.8-alt1 1371079009 installed <13>Apr 14 02:10:08 rpmi: perl-devel-1:5.22.3-alt0.M80P.1 1485958065 installed <13>Apr 14 02:10:08 rpmi: libssl10-1.0.2n-alt0.M80P.1 1512766129 installed <86>Apr 14 02:10:08 groupadd[4874]: group added to /etc/group: name=_keytab, GID=496 <86>Apr 14 02:10:08 groupadd[4874]: group added to /etc/gshadow: name=_keytab <86>Apr 14 02:10:08 groupadd[4874]: new group: name=_keytab, GID=496 <13>Apr 14 02:10:08 rpmi: libkrb5-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 02:10:08 rpmi: libcups-2.1.0-alt2.M80P.4 p8+223280.100.1.1 1551372192 installed <13>Apr 14 02:10:08 rpmi: libnet-snmp30-5.7.3-alt1.1 1452404128 installed <13>Apr 14 02:10:08 rpmi: perl-XML-SAX-0.99-alt2 1384805188 installed <13>Apr 14 02:10:09 rpmi: perl-unicore-1:5.22.3-alt0.M80P.1 1485958186 installed <13>Apr 14 02:10:09 rpmi: libgio-2.52.3-alt0.M80P.1 1504533271 installed <13>Apr 14 02:10:09 rpmi: libharfbuzz-1.6.3-alt0.M80P.1 1509918814 installed <13>Apr 14 02:10:09 rpmi: libfreetype-2.8-alt0.M80P.3 1505462817 installed <13>Apr 14 02:10:09 rpmi: fontconfig-2.12.6-alt1.M80P.1 1506008910 installed Updating fonts cache: <29>Apr 14 02:10:10 fontconfig: Updating fonts cache: succeeded [ DONE ] <13>Apr 14 02:10:10 rpmi: libcairo-1:1.14.4-alt1 1447005495 installed <13>Apr 14 02:10:10 rpmi: libGeoIP-1.6.11-alt0.M80P.1 1496411982 installed <13>Apr 14 02:10:10 rpmi: fonts-type1-urw-3:1.0.7pre44-alt3 p8+224868.100.1.1 1552412385 installed <13>Apr 14 02:10:11 rpmi: libgs-9.20-alt1.M80P.1 1494700569 installed <13>Apr 14 02:10:11 rpmi: libXft-2.3.2-alt1 1409902650 installed <13>Apr 14 02:10:11 rpmi: libpango-1.40.14-alt0.M80P.1 1510824230 installed <13>Apr 14 02:10:11 rpmi: fonts-ttf-dejavu-2.35-alt1 1431945261 installed <13>Apr 14 02:10:11 rpmi: librrd4-1.5.4-alt1.1 1448482045 installed <13>Apr 14 02:10:11 rpmi: gsettings-desktop-schemas-3.24.1-alt0.M80P.1 1504768052 installed <13>Apr 14 02:10:11 rpmi: perl-PDF-API2-2.027-alt1 1458386573 installed <13>Apr 14 02:10:11 rpmi: perl-XML-Simple-2.22-alt1 1449506808 installed <13>Apr 14 02:10:11 rpmi: net-snmp-config-5.7.3-alt1.1 1452404128 installed <13>Apr 14 02:10:11 rpmi: cups-filters-libs-1.20.4-alt3.M80P.1 p8.213485.12300 1539349974 installed <86>Apr 14 02:10:11 groupadd[10986]: group added to /etc/group: name=sasl, GID=495 <86>Apr 14 02:10:11 groupadd[10986]: group added to /etc/gshadow: name=sasl <86>Apr 14 02:10:11 groupadd[10986]: new group: name=sasl, GID=495 <13>Apr 14 02:10:11 rpmi: libsasl2-3-2.1.26-alt7 1479477445 installed <13>Apr 14 02:10:11 rpmi: libldap-2.4.45-alt1.M80P.1 1513980376 installed <13>Apr 14 02:10:11 rpmi: libcurl-7.64.0-alt1 p8+220788.100.1.1 1549495393 installed <13>Apr 14 02:10:11 rpmi: libpoppler72-0.61.1-alt1.M80P.1 1524829028 installed <13>Apr 14 02:10:11 rpmi: poppler-0.61.1-alt1.M80P.1 1524829028 installed <13>Apr 14 02:10:12 rpmi: libkrb5-ldap-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 02:10:12 rpmi: libkrb5-devel-1.14.6-alt1.M80P.1 1525355673 installed <13>Apr 14 02:10:12 rpmi: libssl-devel-1.0.2n-alt0.M80P.1 1512766129 installed <13>Apr 14 02:10:12 rpmi: libevent2-2.0.22-alt0.M80P.1 1475002226 installed <13>Apr 14 02:10:12 rpmi: libmysqlclient18-10.1.38-alt1 p8+223431.300.4.1 1551586717 installed <13>Apr 14 02:10:12 rpmi: libnet-snmp30-snmptrapd-5.7.3-alt1.1 1452404128 installed <13>Apr 14 02:10:12 rpmi: perl-XML-LibXML-2.0124-alt1 1458750523 installed <13>Apr 14 02:10:12 rpmi: perl-Unicode-Normalize-1:5.22.3-alt0.M80P.1 1485958065 installed <13>Apr 14 02:10:12 rpmi: GeoIP-Lite-Country-1:20180327-alt1 1522192520 installed <13>Apr 14 02:10:12 rpmi: libnet-snmp-devel-5.7.3-alt1.1 1452404128 installed <13>Apr 14 02:10:12 rpmi: libevent-devel-2.0.22-alt0.M80P.1 1475002226 installed <13>Apr 14 02:10:12 rpmi: perl-PDF-ReportWriter-1.5-alt2 1289899098 installed <13>Apr 14 02:10:12 rpmi: librrd-devel-1.5.4-alt1.1 1448482045 installed <13>Apr 14 02:10:12 rpmi: libGeoIP-devel-1.6.11-alt0.M80P.1 1496411982 installed <13>Apr 14 02:10:12 rpmi: wget-1.19.2-alt0.M80P.2 1520307323 installed <13>Apr 14 02:10:13 rpmi: ghostscript-common-9.20-alt1.M80P.1 1494700614 installed <13>Apr 14 02:10:13 rpmi: ghostscript-classic-9.20-alt1.M80P.1 1494700569 installed <13>Apr 14 02:10:13 rpmi: cups-filters-1.20.4-alt3.M80P.1 p8.213485.12300 1539349974 installed <13>Apr 14 02:10:13 rpmi: cups-2.1.0-alt2.M80P.4 p8+223280.100.1.1 1551372192 installed <13>Apr 14 02:10:13 rpmi: lsb-core-4.0-alt5 1310467949 installed Installing ntop-4.1.0-alt1.1.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /usr/src/tmp/rpm-tmp.44825 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + rm -rf ntop-4.1.0 + echo 'Source #0 (ntop-4.1.0.tar):' Source #0 (ntop-4.1.0.tar): + /bin/tar -xf /usr/src/RPM/SOURCES/ntop-4.1.0.tar + cd ntop-4.1.0 + /bin/chmod -c -Rf u+rwX,go-w . + /usr/bin/subst 's|||g' ntop.h + /usr/bin/subst 's|pcre.h|pcre/pcre.h|g' configure.in + cp -f acinclude.m4.ntop acinclude.m4 + find . '(' -name '*.gz' -o -name '*.c' -o -name '*.h' -o -name '*.pdf' -o -name '*.dtd' -o -name '*.html' -o -name '*.js' ')' -print + xargs chmod a-x + echo 'Patch #1 (ntop-free.patch):' Patch #1 (ntop-free.patch): + /usr/bin/patch -p0 patching file iface.c Hunk #1 succeeded at 760 with fuzz 2 (offset -2 lines). + echo 'Patch #3 (ntop-autoconf.patch):' Patch #3 (ntop-autoconf.patch): + /usr/bin/patch -p0 patching file Makefile.am Hunk #1 succeeded at 149 (offset -10 lines). + echo 'Patch #4 (ntop-as-needed.patch):' Patch #4 (ntop-as-needed.patch): + /usr/bin/patch -p0 patching file utils/Makefile + echo 'Patch #11 (ntop-am.patch):' Patch #11 (ntop-am.patch): + /usr/bin/patch -p1 -b --suffix .am patching file Makefile.am Hunk #1 succeeded at 42 (offset -7 lines). Hunk #2 succeeded at 95 (offset -9 lines). patching file configure.in + echo 'Patch #13 (ntop-dbfile-default-dir.patch):' Patch #13 (ntop-dbfile-default-dir.patch): + /usr/bin/patch -p1 -b --suffix .dbfile-default-dir patching file configure.in Hunk #1 succeeded at 1871 (offset -428 lines). + echo 'Patch #15 (ntop-path_to_dot.diff):' Patch #15 (ntop-path_to_dot.diff): + /usr/bin/patch -p0 -b --suffix .dot patching file report.c Hunk #1 succeeded at 2091 (offset -210 lines). + echo 'Patch #16 (ntop-automake_fixes.diff):' Patch #16 (ntop-automake_fixes.diff): + /usr/bin/patch -p1 -b --suffix .automake patching file Makefile.am Hunk #1 succeeded at 34 (offset -7 lines). + echo 'Patch #17 (ntop-system_geoip.diff):' Patch #17 (ntop-system_geoip.diff): + /usr/bin/patch -p1 patching file globals-defines.h Hunk #1 succeeded at 2632 (offset -57 lines). + echo 'Patch #19 (ntop-tmp-usage.patch):' Patch #19 (ntop-tmp-usage.patch): + /usr/bin/patch -p2 patching file utils/AutoConfigureNtop + echo 'Patch #20 (ntop-disable-etter_fingerprint_download.patch):' Patch #20 (ntop-disable-etter_fingerprint_download.patch): + /usr/bin/patch -p1 patching file Makefile.am Hunk #1 succeeded at 320 (offset -8 lines). + echo 'Patch #21 (ntop-no-wget.patch):' Patch #21 (ntop-no-wget.patch): + /usr/bin/patch -p1 patching file autogen.sh + echo 'Patch #22 (ntop-build-without-darwin.patch):' Patch #22 (ntop-build-without-darwin.patch): + /usr/bin/patch -p1 patching file Makefile.am Hunk #1 succeeded at 117 (offset -8 lines). + exit 0 Executing(%build): /bin/sh -e /usr/src/tmp/rpm-tmp.33734 + umask 022 + /bin/mkdir -p /usr/src/RPM/BUILD + cd /usr/src/RPM/BUILD + cd ntop-4.1.0 + ./autogen.sh --noconfig Starting ntop automatic configuration system v.0.2.3 Please be patient, there is a lot to do... 1. Testing gnu tools.... libtool ..... 2.4.2 .... ok automake .... 1.14.1 .... ok autoconf .... 2.69 .... ok 2. Preparing for libtool .... libtoolize-default: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'. libtoolize-default: copying file `./ltmain.sh' libtoolize-default: putting macros in AC_CONFIG_MACRO_DIR, `m4'. libtoolize-default: copying file `m4/libtool.m4' libtoolize-default: copying file `m4/ltoptions.m4' libtoolize-default: copying file `m4/ltsugar.m4' libtoolize-default: copying file `m4/ltversion.m4' libtoolize-default: copying file `m4/lt~obsolete.m4' Finding libtool.m4.in .... not found - aborting! .... done 3. Create acinclude.m4, local definitions for automake ... cat: libtool.m4.in: No such file or directory .... done 4. Running aclocal to create aclocal.m4 ... aclocal-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' .... done 5. Running autoheader to create config.h.in ... .... done 6. Running automake to create Makefile.in ... automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:119: installing './config.guess' Makefile.am:29: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') automake-default: warning: autoconf input should be named 'configure.ac', not 'configure.in' plugins/Makefile.am:40: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') .... done 7. Running autoconf to create configure ... .... done mkdir: cannot create directory 'm4': File exists 8. Skipping ./configure Run ./configure and then make to compile ntop + CFLAGS='-pipe -Wall -g -O2' + export CFLAGS + CXXFLAGS='-pipe -Wall -g -O2' + export CXXFLAGS + FFLAGS='-pipe -Wall -g -O2' + export FFLAGS + '[' -n '' ']' ++ sed -r 's/(^|[[:space:]]+)-[^m][^[:space:]]*//g' ++ printf %s '-pipe -Wall -g -O2' + ASFLAGS= + export ASFLAGS + export lt_cv_deplibs_check_method=pass_all + lt_cv_deplibs_check_method=pass_all + readlink -e -- ./configure + xargs -ri dirname -- '{}' + sort -u + xargs -rn1 install -pm755 -- /usr/share/gnu-config/config.sub /usr/share/gnu-config/config.guess + xargs -ri find '{}' -type f '(' -name config.sub -or -name config.guess ')' -printf '%h/\n' + ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext AWK=gawk --disable-static --with-gnu-ld --with-ossl-root=/usr --with-localedir=/usr/lib64/locale --enable-snmp --enable-jumbo-frames configure: WARNING: unrecognized options: --without-included-gettext, --with-localedir Welcome to ntop, Version 4.1.0 ALTLinux RPM Copyright (C) 1998-2011 Luca Deri Configuration script version v4.1.0-15-08-2011 ************************************************************************ * * * NOTICE: I know you're used to ignoring output from ./configure * * * * ntop has a lot of complexity and interdependences. * * * * Please, please AT LEAST read the stuff in these boxes! * * * *>>> The ACTION taken by ./configure is shown prefixed with '>>>' * * * * If that ACTION is unacceptable, * *??? Steps to take to fix the problem are shown, prefixed with '???' * * * ************************************************************************ NOTE: To enable additional, debugging messages during the ./configure execution, do this before running ./configure: $ export NTOPCONFIGDEBUG=yes Configuring ntop according to your request(s): ./configure --build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext AWK=gawk --disable-static --with-gnu-ld --with-ossl-root=/usr --with-localedir=/usr/lib64/locale --enable-snmp --enable-jumbo-frames checking build system type... x86_64-alt-linux-gnu checking host system type... x86_64-alt-linux-gnu checking target system type... x86_64-alt-linux-gnu checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes /usr/src/RPM/BUILD/ntop-4.1.0/missing: Unknown `--is-lightweight' option Try `/usr/src/RPM/BUILD/ntop-4.1.0/missing --help' for more information configure: WARNING: 'missing' script is too old or missing checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for x86_64-alt-linux-gcc... x86_64-alt-linux-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-alt-linux-gcc accepts -g... yes checking for x86_64-alt-linux-gcc option to accept ISO C89... none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... yes checking dependency style of x86_64-alt-linux-gcc... none checking how to run the C preprocessor... x86_64-alt-linux-gcc -E checking for x86_64-alt-linux-gcc... (cached) x86_64-alt-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-alt-linux-gcc accepts -g... (cached) yes checking for x86_64-alt-linux-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-alt-linux-gcc... (cached) none checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by x86_64-alt-linux-gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-alt-linux-gnu file names to x86_64-alt-linux-gnu format... func_convert_file_noop checking how to convert x86_64-alt-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-alt-linux-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for x86_64-alt-linux-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-alt-linux-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-alt-linux-strip... no checking for strip... strip checking for x86_64-alt-linux-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from x86_64-alt-linux-gcc object... ok checking for sysroot... no checking for x86_64-alt-linux-mt... no checking for mt... no checking if : is a manifest tool... no checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if x86_64-alt-linux-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-alt-linux-gcc option to produce PIC... -fPIC -DPIC checking if x86_64-alt-linux-gcc PIC flag -fPIC -DPIC works... yes checking if x86_64-alt-linux-gcc static flag -static works... no checking if x86_64-alt-linux-gcc supports -c -o file.o... yes checking if x86_64-alt-linux-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-alt-linux-gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for aclocal.m4... yes checking for depcomp... yes checking for library containing gethostbyname... none required checking for library containing socket... none required Checking C compiler program and features... checking for x86_64-alt-linux-gcc... (cached) x86_64-alt-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-alt-linux-gcc accepts -g... (cached) yes checking for x86_64-alt-linux-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-alt-linux-gcc understands -c and -o together... (cached) yes checking dependency style of x86_64-alt-linux-gcc... (cached) none ******************************************************************* * * Checking for unique options for x86_64-alt-linux-gnu, x86_64-alt-linux-gcc... * awk: fatal: cannot open file `/etc/issue' for reading (No such file or directory) awk: fatal: cannot open file `/etc/issue' for reading (No such file or directory) awk: fatal: cannot open file `/etc/issue' for reading (No such file or directory) awk: fatal: cannot open file `/etc/issue' for reading (No such file or directory) * This appears to be LINUX fedora unknown * * Testing for extra configuration options for LINUX fedora unknown * ******************************************************************* Test the compiler and setup CFLAGS... checking if compiler accepts -W (warning flags)... yes grep: libtool: No such file or directory checking for pfring_open in -lpfring... no Critical library/include tests... checking for pcap_lookupdev in -lpcap... yes checking for pcap_next_ex in -lpcap... yes checking for gdbm... checking gdbm.h usability... yes checking gdbm.h presence... yes checking for gdbm.h... yes checking for gdbm_open in -lgdbm... yes checking capi.h usability... no checking capi.h presence... no checking for capi.h... no Plugins? ...(Default) Requested. Disable via ./configure command line option --disable-plugins. Jumbo (9k) Ethernet Frames? ...Requested via ./configure command line option --enable-jumbo-frames. Processing the rest of the ROOT/DIRECTORY entries checking for an ANSI C-conforming const... yes checking for working volatile... yes checking for inline... inline checking whether char is unsigned... no checking for long double with more range or precision than double... yes checking whether byte ordering is bigendian... no Testing headers and functions... checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking for sys/wait.h that is POSIX.1 compatible... yes checking whether time.h and sys/time.h may both be included... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking pcre/pcre.h usability... yes checking pcre/pcre.h presence... yes checking for pcre/pcre.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking for unistd.h... (cached) yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for strings.h... (cached) yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking ieeefp.h usability... no checking ieeefp.h presence... no checking for ieeefp.h... no checking shadow.h usability... yes checking shadow.h presence... yes checking for shadow.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking arpa/nameser.h usability... yes checking arpa/nameser.h presence... yes checking for arpa/nameser.h... yes checking net/ethernet.h usability... yes checking net/ethernet.h presence... yes checking for net/ethernet.h... yes checking for zlibVersion in -lz... yes checking for main in -lrrd_th... yes checking for net/if.h... yes checking net/if_dl.h usability... no checking net/if_dl.h presence... no checking for net/if_dl.h... no checking for netinet/if_ether.h... yes checking netinet/in_systm.h usability... yes checking netinet/in_systm.h presence... yes checking for netinet/in_systm.h... yes checking for netinet/ip.h... yes checking for netinet/ip_icmp.h... yes checking netinet/tcp.h usability... yes checking netinet/tcp.h presence... yes checking for netinet/tcp.h... yes checking for netinet/udp.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for net/if_dl.h... (cached) no checking for sys/sysctl.h... yes checking for net/route.h... yes checking ethertype.h usability... no checking ethertype.h presence... no checking for ethertype.h... no checking net/ppp_defs.h usability... yes checking net/ppp_defs.h presence... yes checking for net/ppp_defs.h... yes checking for linux/if_pppox.h... no checking openssl/rsa.h usability... yes checking openssl/rsa.h presence... yes checking for openssl/rsa.h... yes checking openssl/crypto.h usability... yes checking openssl/crypto.h presence... yes checking for openssl/crypto.h... yes checking openssl/x509.h usability... yes checking openssl/x509.h presence... yes checking for openssl/x509.h... yes checking openssl/pem.h usability... yes checking openssl/pem.h presence... yes checking for openssl/pem.h... yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking openssl/err.h usability... yes checking openssl/err.h presence... yes checking for openssl/err.h... yes checking for SSLeay_version in -lcrypto... yes checking for SSL_accept in -lssl... yes checking crypt.h usability... yes checking crypt.h presence... yes checking for crypt.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking security/pam_appl.h usability... yes checking security/pam_appl.h presence... yes checking for security/pam_appl.h... yes checking for shadow.h... (cached) yes checking dirent.h usability... yes checking dirent.h presence... yes checking for dirent.h... yes checking for dlfcn.h... (cached) yes checking dl.h usability... no checking dl.h presence... no checking for dl.h... no checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking if.h usability... no checking if.h presence... no checking for if.h... no checking for inttypes.h... (cached) yes checking for memory.h... (cached) yes checking sys/ldr.h usability... no checking sys/ldr.h presence... no checking for sys/ldr.h... no checking for sys/param.h... (cached) yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking sys/sockio.h usability... no checking sys/sockio.h presence... no checking for sys/sockio.h... no checking for sys/stat.h... (cached) yes checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking for sys/wait.h... (cached) yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking sys/sched.h usability... no checking sys/sched.h presence... no checking for sys/sched.h... no checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking if r/w locks are supported... yes checking sys/syslog.h usability... yes checking sys/syslog.h presence... yes checking for sys/syslog.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking ip6.h usability... no checking ip6.h presence... no checking for ip6.h... no checking icmp6.h usability... no checking icmp6.h presence... no checking for icmp6.h... no checking for netinet/ip6.h... yes checking for netinet/icmp6.h... yes checking for sysctl... yes checking for finite... yes checking for isinf... yes checking for pid_t... yes checking for size_t... yes checking whether time.h and sys/time.h may both be included... (cached) yes checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_zone... yes checking for typedef u_int64_t... yes checking for typedef uint64_t... no checking for typedef u_int32_t... yes checking for typedef uint32_t... no checking for typedef u_int16_t... yes checking for typedef uint16_t... no checking for typedef u_int8_t... yes checking for typedef uint8_t... no checking for typedef int64_t... yes checking for typedef int32_t... yes checking for typedef int16_t... yes checking for typedef int8_t... yes checking trivial compile... ok checking for backtrace in -lc... yes checking for crypt in -lc... no checking for crypt in -lcrypt... yes checking for crypt_get_format_get_format in -lc... no checking for crypt_get_format in -lcrypt... no checking for getopt_long in -lc... yes checking for dlopen in -lc... no checking for dlopen in -ldl... yes checking for dladdr (GNU extension)... yes checking for sin in -lc... no checking for sin in -lm... yes checking for ceil in -lc... yes checking for pthread_create in -lpthread... yes checking for sem_init in -lposix4... no checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking whether x86_64-alt-linux-gcc needs -traditional... no checking for working memcmp... yes checking return type of signal handlers... void checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for strftime... yes checking for alarm... yes checking for endpwent... yes checking for gethostbyaddr... yes checking for gethostbyname... yes checking for gethostname... yes checking for gethostbyaddr_r... yes checking for getpass... yes checking for gettimeofday... yes checking for localtime_r... yes checking for memchr... yes checking for memset... yes checking for putenv... yes checking for select... yes checking for socket... yes checking for snprintf... yes checking for sqrtf... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strcasestr... yes checking for strchr... yes checking for strrchr... yes checking for strcspn... yes checking for strdup... yes checking for strerror... yes checking for strpbrk... yes checking for strsignal... yes checking for strspn... yes checking for strstr... yes checking for strtoul... yes checking for uname... yes checking for strtok_r... yes Now, let's check for problems with what we've found... Testing Required libraries and headers** checking for required C headers... ok checking for crypt... ok checking for dynamic load module... ok ------------------------------------------------------------------- **Testing Optional libraries and headers** checking for Multithreading... ok checking for openSSL... ok checking for zlib... ok checking for x86_64-alt-linux-net-snmp-config... no checking for net-snmp-config... net-snmp-config net-snmp libs: -lnetsnmp -lssl -lssl -lcrypto -lnl-3 -lm -lcrypto -lwrap checking for x86_64-alt-linux-python-config... no checking for python-config... no >>>> Unable to locate python-config: using workaround <<<< checking for x86_64-alt-linux-python... no checking for python... python Traceback (most recent call last): File "./configureextra/python-config", line 6, in from distutils import sysconfig ImportError: No module named distutils Python-devel support is present but misconfigured checking pthread_atfork... yes Miscelaneous settings... checking for gcc backtrace... found - automatic SIGSEGV backtrace enabled via -K checking for gcc getopt_long... found - long command line options are enabled checking for facilitynames - define SYSLOG_NAMES option... available checking if ether_header uses ether_addr structs... no checking if in6_addr is defined for sFlowPlugin... yes ------------------------------------------------------------------- Removing dups and misplaced entries from LIBS and INCS... checking for GeoIP_record_by_ipnum in -lGeoIP... yes checking for GeoIP_name_by_ipnum_v6 in -lGeoIP... yes Testing for special final configuration options for LINUX fedora unknown =================================================================== This is your ntop 4.1.0 configuration: Host System Type : x86_64-alt-linux-gnu Note: --build=x86_64-alt-linux specified Preprocessor (cppflags) : -DLINUX -I/usr/local/include -I/opt/local/include Compiler (cflags) : x86_64-alt-linux-gcc -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs Defines : -DHAVE_CONFIG_H Loader (ldflags) : -L/usr/local/lib -L/opt/local/lib Include path : -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include System Libs : -lpthread -ldl -lcrypt -lc -lrrd_th -lpcap -lgdbm -lz -lnetsnmp -lssl -lnl-3 -lm -lcrypto -lwrap -lGeoIP Locale : /usr/lib/locale External packages: LBL pcap .h : standard system headers LBL pcap library : standard system libraries GNU gdbm .h : standard system headers GNU gdbm library : standard system libraries zlib .h : standard system headers zlib library : standard system libraries openSSL .h : standard system headers openSSL library : standard system libraries Install directories: Default prefix: /usr/local Install into: /usr (default or via --prefix request) Data files are in /usr/share/ntop Config files are in /etc/ntop Run directory is /var/ntop Plugin files are in /usr/lib64/ntop/plugins Database files are in /var/lib/ntop ------------------------------------------------------------------- Creating files... checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating plugins/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands configure: WARNING: unrecognized options: --without-included-gettext, --with-localedir version.c... =================================================================== ******************************************************************* * * NOTE: ./configure is now complete! * * All of the obviously FATAL errors would cause you to * abort before this point, so while you SHOULD scroll * back and check for error/warning/note messages, * you probably will not... * ++ ++ If you like ntop, please do not forget to support its ++ development. See SUPPORT_NTOP.txt for more information. ++ ++ Thanks for supporting ntop! ++ * * NEXT STEP(S): * * Building ntop requires GNU Make, so to build ntop, type * 'make' (or on *BSD and Solaris systems, 'gmake') * ******************************************************************* + '[' -n '' ']' + NPROCS=8 + make -j8 make: Entering directory `/usr/src/RPM/BUILD/ntop-4.1.0' make all-recursive make[1]: Entering directory `/usr/src/RPM/BUILD/ntop-4.1.0' Making all in . make[2]: Entering directory `/usr/src/RPM/BUILD/ntop-4.1.0' /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o address.lo address.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o argv.lo argv.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o dataFormat.lo dataFormat.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o event.lo event.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o globals-core.lo globals-core.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o hash.lo hash.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o iface.lo iface.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o initialize.lo initialize.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c address.c -fPIC -DPIC -o .libs/address.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c globals-core.c -fPIC -DPIC -o .libs/globals-core.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c dataFormat.c -fPIC -DPIC -o .libs/dataFormat.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c initialize.c -fPIC -DPIC -o .libs/initialize.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c event.c -fPIC -DPIC -o .libs/event.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c hash.c -fPIC -DPIC -o .libs/hash.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c argv.c -fPIC -DPIC -o .libs/argv.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c iface.c -fPIC -DPIC -o .libs/iface.o address.c: In function 'updateDeviceHostNameInfo': address.c:66:37: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(actualDeviceId); el != NULL; el = getNextHost(actualDeviceId, el)) { ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ address.c:66:87: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(actualDeviceId); el != NULL; el = getNextHost(actualDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ address.c:68:26: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("updateHostNameInfo"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ address.c:68:7: note: in expansion of macro 'accessAddrResMutex' accessAddrResMutex("updateHostNameInfo"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:68:46: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("updateHostNameInfo"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:81:36: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, symbolic, type); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ address.c:84:27: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ address.c: In function 'queueAddress': address.c:120:22: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("queueAddress"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ address.c:120:3: note: in expansion of macro 'accessAddrResMutex' accessAddrResMutex("queueAddress"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:120:36: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("queueAddress"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:130:22: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ address.c:141:33: note: in expansion of macro 'malloc' if((cloned = (HostAddrList*)malloc(sizeof(HostAddrList))) != NULL) { ^ address.c:152:23: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ address.c:107:7: warning: unused variable 'i' [-Wunused-variable] int i; ^ address.c: In function 'dequeueAddress': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ address.c:160:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:161:7: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "THREADMGMT[t%lu]: DNSAR(%d): Address resolution thread running", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:182:24: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ address.c:182:5: note: in expansion of macro 'accessAddrResMutex' accessAddrResMutex("dequeueAddress"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:182:40: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:191:25: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ address.c:233:21: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.resolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ address.c:233:2: note: in expansion of macro 'accessAddrResMutex' accessAddrResMutex("dequeueAddress"); myGlobals.resolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:233:37: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.resolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:233:91: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.resolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ address.c:238:21: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.failedResolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ address.c:238:2: note: in expansion of macro 'accessAddrResMutex' accessAddrResMutex("dequeueAddress"); myGlobals.failedResolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:238:37: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.failedResolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ address.c:238:97: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessAddrResMutex("dequeueAddress"); myGlobals.failedResolvedAddresses++; releaseAddrResMutex(); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ address.c:242:7: note: in expansion of macro 'free' free(elem); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ address.c:248:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: DNSAR(%d): Address resolution thread terminated [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:248:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: DNSAR(%d): Address resolution thread terminated [p%d]", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c: In function '_intop': address.c:269:10: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return (char *)inet_ntop(AF_INET6, addr, buf, buflen); ^ address.c: In function 'addrtostr': address.c:333:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] default: return("???"); ^ address.c: In function '_addrtostr': address.c:347:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] default: return("???"); ^ address.c: In function '_addrtonum': address.c:359:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, bufLen, "%u", addr->Ip4Address.s_addr); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:359:52: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, bufLen, "%u", addr->Ip4Address.s_addr); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:363:33: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BufferTooSmall(buf, bufLen); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:877:64: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define BufferTooSmall(buf, len) traceEvent(CONST_TRACE_ERROR, "Buffer [buffer len=%d] too small @ %s:%d", len, __FILE__,__LINE__) ^ address.c:363:7: note: in expansion of macro 'BufferTooSmall' BufferTooSmall(buf, bufLen); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:366:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("???"); ^ address.c: In function 'msdns_filter_name': address.c:777:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr2, sizeof(tmpStr2), "%c", id); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:777:64: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr2, sizeof(tmpStr2), "%c", id); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c: In function 'handleMdnsName': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ address.c:875:18: note: in expansion of macro 'strdup' char *tmpStr = strdup((char*)mdns_name); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ address.c:928:6: note: in expansion of macro 'free' free(tmpStr); ^ address.c: In function 'handleDNSpacket': address.c:967:8: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] cp = (u_char*)(ipPtr); ^ address.c: In function 'checkSpoofing': address.c:1271:37: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(actualDeviceId); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ address.c:1272:54: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(actualDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ address.c:1282:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:1283:8: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Two MAC addresses found for the same IP address %s: [%s/%s] (spoofing detected?)", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c: In function 'subnetId2networkName': address.c:1302:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "0.0.0.0/0"); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:1302:53: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "0.0.0.0/0"); ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:1306:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s/%d", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:1306:53: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s/%d", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c: In function 'host2networkName': address.c:1328:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s/%d", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c:1328:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s/%d", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ address.c: In function 'addDeviceNetworkToKnownSubnetList': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ address.c:1352:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Too many known subnets defined (%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ address.c:1352:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Too many known subnets defined (%d)", ^ In file included from ntop.h:515:0, from address.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ dataFormat.c: In function 'formatKBytes': dataFormat.c:27:27: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numKBytes < 0) return(""); /* It shouldn't happen */ ^ dataFormat.c:30:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKBytes", numKBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:30:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKBytes", numKBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:35:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMBytes", tmpKBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:35:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMBytes", tmpKBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:40:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sGBytes", tmpGBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:40:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sGBytes", tmpGBytes, myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:42:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sTBytes", ((float)(tmpGBytes)/1024), myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:42:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sTBytes", ((float)(tmpGBytes)/1024), myGlobals.separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatBytes': dataFormat.c:58:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] locSeparator = " "; ^ dataFormat.c:61:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("0"); /* return(" "); */ ^ dataFormat.c:63:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)numBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:63:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)numBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:65:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKBytes", ((float)(numBytes)/1024), locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:65:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKBytes", ((float)(numBytes)/1024), locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:70:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMBytes", tmpMBytes, locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:70:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMBytes", tmpMBytes, locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:75:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sGBytes", tmpMBytes, locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:75:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sGBytes", tmpMBytes, locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:77:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sTBytes", ((float)(tmpMBytes)/1024), locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:77:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sTBytes", ((float)(tmpMBytes)/1024), locSeparator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatAdapterSpeed': dataFormat.c:89:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("0"); /* return(" "); */ ^ dataFormat.c:91:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)numBits); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:91:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)numBits); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:93:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Kbit/s", (float)(numBits)/1000); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:93:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Kbit/s", (float)(numBits)/1000); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:98:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Mbit/s", tmpMBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:98:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Mbit/s", tmpMBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:103:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Gbit/s", tmpMBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:103:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Gbit/s", tmpMBytes); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:105:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Tbit/s", ((float)(tmpMBytes)/1000)); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:105:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f Tbit/s", ((float)(tmpMBytes)/1000)); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatSeconds': dataFormat.c:139:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, yearStr, sizeof(yearStr), "%d years, ", days/365); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:139:67: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, yearStr, sizeof(yearStr), "%d years, ", days/365); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:144:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%s%u day%s %u:%02u:%02lu", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:144:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%s%u day%s %u:%02u:%02lu", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:147:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%u:%02u:%02lu", hour, min, sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:147:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%u:%02u:%02lu", hour, min, sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:149:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%u:%02lu", min, sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:149:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%u:%02lu", min, sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:151:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu sec", sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:151:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu sec", sec); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatMicroSeconds': dataFormat.c:164:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f ms", f); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:164:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f ms", f); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:166:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f sec", (f/1000)); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:166:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f sec", (f/1000)); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatThroughput': dataFormat.c:182:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] separator = " "; ^ dataFormat.c:188:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sbit/s", numBits, separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:188:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sbit/s", numBits, separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:190:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKbit/s", ((float)(numBits)/divider), separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:190:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sKbit/s", ((float)(numBits)/divider), separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:192:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMbit/s", ((float)(numBits)/1048576), separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:192:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.1f%sMbit/s", ((float)(numBits)/1048576), separator); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatLatency': dataFormat.c:214:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(" "); ^ dataFormat.c:216:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.02f ms", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:216:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%.02f ms", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function 'formatTimeStamp': dataFormat.c:238:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("now"); ^ dataFormat.c: In function 'formatPkts': dataFormat.c:257:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)pktNr); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:257:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu", (unsigned long)pktNr); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:259:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:259:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu", ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:267:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu,%03lu", a, b, c); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:267:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu,%03lu", a, b, c); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:278:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu,%03lu,%03lu", e, a, b, c); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c:278:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outStr, outStrLen, "%lu,%03lu,%03lu,%03lu", e, a, b, c); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ dataFormat.c: In function '_formatTime': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ dataFormat.c:292:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d for formatTime()", file, line); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ dataFormat.c:292:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d for formatTime()", file, line); ^ In file included from ntop.h:515:0, from dataFormat.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'setDomainName': initialize.c:60:22: warning: variable 'stLclAddr' set but not used [-Wunused-but-set-variable] struct in_addr stLclAddr; ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:99:33: note: in expansion of macro 'strdup' myGlobals.shortDomainName = strdup(&myGlobals.runningPref.domainName[len+1]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:101:33: note: in expansion of macro 'strdup' myGlobals.shortDomainName = strdup(myGlobals.runningPref.domainName); ^ initialize.c: In function 'initIPServices': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:114:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Initializing IP services"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:114:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Initializing IP services"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:121:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s/services", myGlobals.configFileDirs[idx]); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:121:63: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s/services", myGlobals.configFileDirs[idx]); ^ event.c: In function 'flag2string': In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ event.c:29:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_THE_DOMAIN_HAS_BEEN_COMPUTED : return("THE_DOMAIN_HAS_BEEN_COMPUTED"); ^ event.c:30:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_PRIVATE_IP_ADDRESS : return("PRIVATE_IP_ADDRESS"); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:143:38: note: in expansion of macro 'malloc' myGlobals.udpSvc = (ServiceEntry**)malloc(len); ^ event.c:31:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_SUBNET_LOCALHOST : return("SUBNET_LOCALHOST"); ^ event.c:32:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_BROADCAST_HOST : return("BROADCAST_HOST"); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:145:38: note: in expansion of macro 'malloc' myGlobals.tcpSvc = (ServiceEntry**)malloc(len); ^ event.c:33:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_MULTICAST_HOST : return("MULTICAST_HOST"); ^ event.c:34:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_GATEWAY_HOST : return("GATEWAY_HOST"); ^ event.c:35:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_NAME_SERVER_HOST : return("NAME_SERVER_HOST"); ^ initialize.c:151:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s/services", myGlobals.configFileDirs[idx]); ^ event.c:36:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_SUBNET_PSEUDO_LOCALHOST : return("SUBNET_PSEUDO_LOCALHOST"); ^ event.c:37:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SERVER : return("HOST_TYPE_SERVER"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:151:63: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s/services", myGlobals.configFileDirs[idx]); ^ event.c:38:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_WORKSTATION : return("HOST_TYPE_WORKSTATION"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ event.c:39:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_PRINTER : return("HOST_TYPE_PRINTER"); ^ event.c:40:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_SMTP : return("HOST_TYPE_SVC_SMTP"); ^ event.c:41:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_POP : return("HOST_TYPE_SVC_POP"); ^ event.c:42:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_IMAP : return("HOST_TYPE_SVC_IMAP"); ^ event.c:43:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_DIRECTORY : return("HOST_TYPE_SVC_DIRECTORY"); ^ event.c:44:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_FTP : return("HOST_TYPE_SVC_FTP"); ^ event.c:45:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_HTTP : return("HOST_TYPE_SVC_HTTP"); ^ event.c:46:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_WINS : return("HOST_TYPE_SVC_WINS"); ^ event.c:47:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_BRIDGE : return("HOST_TYPE_SVC_BRIDGE"); ^ event.c:48:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_DHCP_CLIENT : return("HOST_TYPE_SVC_DHCP_CLIENT"); ^ event.c:49:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_DHCP_SERVER : return("HOST_TYPE_SVC_DHCP_SERVER"); ^ event.c:50:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_MASTER_BROWSER : return("HOST_TYPE_MASTER_BROWSER"); ^ event.c:51:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_MULTIHOMED : return("HOST_TYPE_MULTIHOMED"); ^ event.c:52:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_NTP_SERVER : return("HOST_TYPE_SVC_NTP_SERVER"); ^ event.c:53:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_MULTIVLANED : return("HOST_TYPE_MULTIVLANED"); ^ event.c:54:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_VOIP_CLIENT : return("HOST_TYPE_SVC_VOIP_CLIENT"); ^ event.c:55:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_TYPE_SVC_VOIP_GATEWAY : return("HOST_TYPE_SVC_VOIP_GATEWAY"); ^ event.c:56:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_WRONG_NETMASK : return("HOST_WRONG_NETMASK"); ^ event.c:57:52: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case FLAG_HOST_DUPLICATED_MAC : return("HOST_DUPLICATED_MAC"); ^ event.c: In function 'notifyEvent': event.c:67:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *event = NULL, *info = ""; ^ event.c:79:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "Host created"; ^ event.c:82:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "Host deleted"; ^ event.c:85:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "IP session created"; ^ initialize.c:180:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 21, "ftp"); ^ event.c:88:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "IP session deleted"; ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ event.c:91:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "Host flagged"; ^ initialize.c:181:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 20, "ftp-data"); ^ event.c:95:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] event = "Host un-flagged"; ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:182:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 23, "telnet"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:183:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 42, "name"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:184:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 80, "http"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:185:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 443, "https"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:187:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 137, "netbios-ns"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ event.c:116:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to write into log event [%s]", ^ initialize.c:188:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 137, "netbios-ns"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:189:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 138, "netbios-dgm"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:190:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 138, "netbios-dgm"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:191:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 139, "netbios-ssn"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ event.c:116:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to write into log event [%s]", ^ initialize.c:192:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 139, "netbios-ssn"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:194:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 109, "pop-2"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:195:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 110, "pop-3"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:196:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.tcpSvc, 1109,"kpop"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:198:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 161, "snmp"); ^ event.c: In function 'init_events': event.c:125:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = EVENTS_MASK; ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ event.c:130:26: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue(key, "0"); ^ initialize.c:199:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 162, "snmp-trap"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ initialize.c:200:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 635, "mount"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:201:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 640, "pcnfs"); ^ event.c:133:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = EVENTS_LOG; ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ event.c:135:27: note: in expansion of macro 'strdup' myGlobals.event_log = strdup(buf); ^ event.c:138:26: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue(key, ""); ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ event.c:141:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Initialized events [mask: %d][path: %s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ event.c:141:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Initialized events [mask: %d][path: %s]", ^ In file included from ntop.h:515:0, from event.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:202:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 650, "bwnfs"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:203:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 2049,"nfsd"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c:204:43: warning: passing argument 3 of 'addPortHashEntry' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPortHashEntry(myGlobals.udpSvc, 1110,"nfsd-status"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:697:13: note: expected 'char *' but argument is of type 'const char *' extern void addPortHashEntry(ServiceEntry **theSvc, int port, char* name); ^ initialize.c: In function 'createDeviceIpProtosList': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:214:7: note: in expansion of macro 'free' free(myGlobals.device[devIdx].ipProtosList); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:215:66: note: in expansion of macro 'malloc' if((myGlobals.device[devIdx].ipProtosList = (TrafficCounter*)malloc(len)) == NULL) ^ initialize.c: In function 'resetDevice': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:237:11: note: in expansion of macro 'calloc' ptr = calloc(CONST_HASH_INITIAL_SIZE, sizeof(HostTraffic*)); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:316:7: note: in expansion of macro 'free' free(myGlobals.device[devIdx].netflowGlobals); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:320:7: note: in expansion of macro 'free' free(myGlobals.device[devIdx].sflowGlobals); ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c argv.c -o argv.o >/dev/null 2>&1 globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:327:70: note: in expansion of macro 'malloc' myGlobals.device[devIdx].ipProtoStats = (SimpleProtoTrafficInfo*)malloc(len); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:332:5: note: in expansion of macro 'free' free(myGlobals.device[devIdx].ipProtosList); ^ initialize.c: In function 'initCounters': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:372:53: note: in expansion of macro 'malloc' myGlobals.device[i].tcpSession = (IPSession**)malloc(len); ^ initialize.c: In function 'resetStats': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:425:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Resetting traffic statistics for device %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:425:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Resetting traffic statistics for device %s", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:429:40: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "resetStats"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ initialize.c:429:52: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "resetStats"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ initialize.c:434:44: warning: passing argument 2 of '_lockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(el) lockExclusiveHostsHashMutex(el, "resetStats"); ^ globals-core.h:628:75: note: in definition of macro 'lockExclusiveHostsHashMutex' #define lockExclusiveHostsHashMutex(a, b) _lockExclusiveHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:629:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockExclusiveHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ initialize.c:434:56: warning: passing argument 3 of '_lockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(el) lockExclusiveHostsHashMutex(el, "resetStats"); ^ globals-core.h:629:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockExclusiveHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ initialize.c:440:34: warning: passing argument 2 of '_unlockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockExclusiveHostsHashMutex(el); ^ globals-core.h:631:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockExclusiveHostsHashMutex(HostTraffic *host, char* file, int line); ^ initialize.c:442:49: warning: passing argument 2 of '_lockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(elNext) lockExclusiveHostsHashMutex(elNext, "resetStats"); ^ globals-core.h:628:75: note: in definition of macro 'lockExclusiveHostsHashMutex' #define lockExclusiveHostsHashMutex(a, b) _lockExclusiveHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:629:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockExclusiveHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ initialize.c:442:61: warning: passing argument 3 of '_lockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(elNext) lockExclusiveHostsHashMutex(elNext, "resetStats"); ^ globals-core.h:629:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockExclusiveHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ initialize.c:445:36: warning: passing argument 2 of '_unlockExclusiveHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockExclusiveHostsHashMutex(el); ^ globals-core.h:631:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockExclusiveHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:459:2: note: in expansion of macro 'free' free(myGlobals.device[deviceId].tcpSession[j]); ^ initialize.c:479:39: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgeMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c: In function 'initSingleGdbm': initialize.c:511:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpBuf, sizeof(tmpBuf), "%s/%s", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:511:61: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpBuf, sizeof(tmpBuf), "%s/%s", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:521:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Checking age of database %s", tmpBuf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:521:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Checking age of database %s", tmpBuf); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:536:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:537:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "...last create/modify/access was %s, %d second(s) ago", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:542:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "...older, will recreate it"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:542:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "...older, will recreate it"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:545:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "...new enough, will not recreate it"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:545:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "...new enough, will not recreate it"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:557:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "%s database '%s'", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:557:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "%s database '%s'", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:563:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "....open of %s failed: %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:563:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "....open of %s failed: %s", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:573:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Possible solution: please use '-P '"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:573:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Possible solution: please use '-P '"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:575:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "1. Is another instance of ntop running?"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:575:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "1. Is another instance of ntop running?"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:576:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "2. Make sure that the user you specified can write in the target directory"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:576:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "2. Make sure that the user you specified can write in the target directory"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:578:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "GDBM open failed, ntop shutting down..."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:578:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "GDBM open failed, ntop shutting down..."); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'reinitMutexes': initialize.c:604:38: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.logViewMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:605:35: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.gdbmMutex); /* data to synchronize thread access to db files */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:606:36: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.portsMutex); /* Avoid race conditions while handling ports */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:609:47: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.tcpSessionsMutex[i]); /* data to synchronize TCP sessions access */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:611:43: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.purgePortsMutex); /* data to synchronize port purge access */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:612:41: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.purgePortsMutex); /* data to synchronize port purge access */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:615:45: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.hostsHashMutex[i]); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:619:44: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.securityItemsMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:620:44: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c: In function 'initThreads': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:638:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Started thread for fingerprinting", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:638:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Started thread for fingerprinting", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:645:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Started thread for idle hosts detection", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:645:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Started thread for idle hosts detection", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:649:50: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.addressResolutionMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:664:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: DNSAR(%d): Started thread for DNS address resolution", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:664:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: DNSAR(%d): Started thread for DNS address resolution", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'initApps': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:674:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Initializing external applications"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:674:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Initializing external applications"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'initDeviceSemaphores': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:681:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Initializing device %s (%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:681:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Initializing device %s (%d)", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:684:55: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.device[deviceId].counterMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:685:50: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.device[deviceId].asMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:686:61: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.device[deviceId].packetProcessMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c:687:59: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.device[deviceId].packetQueueMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ initialize.c: In function 'allocDeviceMemory': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:704:22: note: in expansion of macro 'calloc' (PortCounter**)calloc(sizeof(PortCounter*), MAX_IP_PORT); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:708:27: note: in expansion of macro 'calloc' (PacketInformation*)calloc(sizeof(PacketInformation), (CONST_PACKET_QUEUE_LENGTH+1)); ^ initialize.c: In function 'addDevice': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:735:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Attempt to add a NULL device"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:735:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Attempt to add a NULL device"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:742:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Adding network device %s", deviceName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:742:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Adding network device %s", deviceName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:745:37: warning: passing argument 1 of 'createDummyInterface' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deviceId = createDummyInterface("none"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:246:14: note: expected 'char *' but argument is of type 'const char *' extern u_int createDummyInterface(char *ifName); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:746:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "-i none, so initialized only a dummy device"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:746:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "-i none, so initialized only a dummy device"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:750:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "device.name.%s", deviceName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:750:63: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "device.name.%s", deviceName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:752:54: note: in expansion of macro 'strdup' myGlobals.device[deviceId].humanFriendlyName = strdup(ebuf); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:754:54: note: in expansion of macro 'strdup' myGlobals.device[deviceId].humanFriendlyName = strdup(deviceDescr); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:758:47: note: in expansion of macro 'strdup' myGlobals.device[deviceId].name = strdup(deviceName); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:767:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "ntop can handle up to %d interfaces", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:767:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "ntop can handle up to %d interfaces", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:769:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Additional interfaces will be ignored"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:769:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Additional interfaces will be ignored"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:816:18: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Unable to become root"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:816:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Unable to become root"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:829:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "pcap_open_live(): '%s'", ebuf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:829:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "pcap_open_live(): '%s'", ebuf); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:831:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:832:8: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Sorry, but on this system, even with -s, it appears " ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:834:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Please correct the problem or select " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:834:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Please correct the problem or select " ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:836:13: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Not root, ntop shutting down..."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:836:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Not root, ntop shutting down..."); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:843:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%c%s.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:843:67: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%c%s.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:853:22: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "pcap_dump_open(..., '%s') failed", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:853:46: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "pcap_dump_open(..., '%s') failed", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:857:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:857:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:862:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.dev%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:862:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.dev%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:869:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:869:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:877:15: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "pcap_dump_open(..., '%s') failed (suspicious packets)", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:877:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "pcap_dump_open(..., '%s') failed (suspicious packets)", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:878:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Continuing without suspicious packet dump"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:878:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Continuing without suspicious packet dump"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:880:15: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:880:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:884:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-other-pkts.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:884:67: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-other-pkts.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:895:15: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "pcap_dump_open(..., '%s') failed (other (unknown) packets)", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:895:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "pcap_dump_open(..., '%s') failed (other (unknown) packets)", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:896:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Continuing without other (unknown) packet dump"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:896:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Continuing without other (unknown) packet dump"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:898:15: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:898:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:946:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Truncated network size (device %s) to %d hosts (real netmask %s)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:946:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Truncated network size (device %s) to %d hosts (real netmask %s)", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:950:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Interface '%s' (netmask %s) computed network size is %d hosts", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:950:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Interface '%s' (netmask %s) computed network size is %d hosts", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:978:17: note: in expansion of macro 'calloc' workDevices = calloc(mallocLen+1, 1); ^ initialize.c:986:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:988:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%s", (i > 0) ? ", " : "", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:994:5: note: in expansion of macro 'free' free(myGlobals.runningPref.devices); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1010:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Checking %s for additional devices", myGlobals.device[deviceId].name); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1010:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Checking %s for additional devices", myGlobals.device[deviceId].name); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1014:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpDeviceName, sizeof(tmpDeviceName), "%s:%d", myGlobals.device[deviceId].name, k); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1014:74: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpDeviceName, sizeof(tmpDeviceName), "%s:%d", myGlobals.device[deviceId].name, k); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1016:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Checking %s", tmpDeviceName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1016:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Checking %s", tmpDeviceName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1024:62: note: in expansion of macro 'strdup' myGlobals.device[myGlobals.numDevices].humanFriendlyName = strdup(tmpDeviceName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1025:49: note: in expansion of macro 'strdup' myGlobals.device[myGlobals.numDevices].name = strdup(tmpDeviceName); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1028:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Added virtual interface: '%s'", tmpDeviceName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1028:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Added virtual interface: '%s'", tmpDeviceName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1030:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Stopping scan - no room for additional (virtual) interfaces"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1030:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Stopping scan - no room for additional (virtual) interfaces"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'initDevices': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1078:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Initializing network devices [%s]", devices ? devices : ""); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1078:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Initializing network devices [%s]", devices ? devices : ""); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1081:26: warning: passing argument 1 of 'createDummyInterface' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createDummyInterface("none"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:246:14: note: expected 'char *' but argument is of type 'const char *' extern u_int createDummyInterface(char *ifName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:1085:55: note: in expansion of macro 'free' if(myGlobals.device[0].humanFriendlyName != NULL) free(myGlobals.device[0].humanFriendlyName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1086:45: note: in expansion of macro 'strdup' myGlobals.device[0].humanFriendlyName = strdup(myGlobals.pcap_file_list->fileName); ^ initialize.c:1094:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1094:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.%s.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1101:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1101:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myName, sizeof(myName), "%s%cntop-suspicious-pkts.pcap", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1108:15: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "pcap_dump_open() for suspicious packets: '%s'", ebuf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1108:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "pcap_dump_open() for suspicious packets: '%s'", ebuf); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1110:15: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1110:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Saving packets into file %s", myName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:1113:5: note: in expansion of macro 'free' free(myGlobals.device[0].name); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1114:32: note: in expansion of macro 'strdup' myGlobals.device[0].name = strdup("pcap-file"); ^ initialize.c:1114:39: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.device[0].name = strdup("pcap-file"); ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1120:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "pcap_findalldevs() call failed [%s]", ebuf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1120:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "pcap_findalldevs() call failed [%s]", ebuf); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1121:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Have you installed libpcap/winpcap properly?"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1121:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Have you installed libpcap/winpcap properly?"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1128:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Found interface [index=%d] '%s'", ifIdx, devpointer->name); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1128:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Found interface [index=%d] '%s'", ifIdx, devpointer->name); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1152:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, intDescr[ifIdx], MAX_IF_NAME, "%s_%d", descr, ifIdx); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1152:68: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, intDescr[ifIdx], MAX_IF_NAME, "%s_%d", descr, ifIdx); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1154:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, intDescr[ifIdx], MAX_IF_NAME, "%s", devpointer->name); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ initialize.c:1154:68: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, intDescr[ifIdx], MAX_IF_NAME, "%s", devpointer->name); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1174:25: note: in expansion of macro 'strdup' char *workDevices = strdup(devices), *strtokState = NULL; ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1184:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Checking requested device '%s'", tmpDev); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1184:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Checking requested device '%s'", tmpDev); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1194:24: note: in expansion of macro 'strdup' requestedDev = strdup(tmpDev); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1198:22: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Virtual device(s), e.g. %s, specified on " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1198:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Virtual device(s), e.g. %s, specified on " ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1208:24: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1209:24: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "NOTE: Virual device '%s' is already implied from a prior base device", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:1217:11: note: in expansion of macro 'free' free(requestedDev); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1221:20: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Using base device %s in place of requested %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1221:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Using base device %s in place of requested %s", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:1224:9: note: in expansion of macro 'free' free(requestedDev); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1258:20: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1259:20: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Device '%s' is already specified/implied - ignoring it", tmpDev); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ initialize.c:1266:5: note: in expansion of macro 'free' free(workDevices); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1269:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "No default device configured. Using %s", intNames[defaultIdx]); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1269:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "No default device configured. Using %s", intNames[defaultIdx]); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from initialize.c:25: globals-defines.h:2641:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DEVICES "ntop.devices" ^ initialize.c:1270:20: note: in expansion of macro 'NTOP_PREF_DEVICES' processStrPref(NTOP_PREF_DEVICES, intNames[defaultIdx], &myGlobals.runningPref.devices, TRUE); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:478:13: note: expected 'char *' but argument is of type 'const char *' extern void processStrPref(char *key, char *value, char **globalVar, bool savePref); ^ In file included from ntop.h:511:0, from initialize.c:25: globals-defines.h:2641:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DEVICES "ntop.devices" ^ initialize.c:1271:20: note: in expansion of macro 'NTOP_PREF_DEVICES' processStrPref(NTOP_PREF_DEVICES, intNames[defaultIdx], &myGlobals.savedPref.devices, TRUE); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:478:13: note: expected 'char *' but argument is of type 'const char *' extern void processStrPref(char *key, char *value, char **globalVar, bool savePref); ^ initialize.c: In function 'initDeviceDatalink': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1296:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "DLT: Device %d [%s] is loopback, treating as DLT_NULL", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1296:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "DLT: Device %d [%s] is loopback, treating as DLT_NULL", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1306:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1307:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "DLT: Device %d [%s] DLT_ value, %d, exceeds highest known value(%d)", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1312:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "DLT: Please report above message to the ntop-dev list."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1312:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "DLT: Please report above message to the ntop-dev list."); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1313:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "DLT: Processing continues OK"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1313:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "DLT: Processing continues OK"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1322:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "DLT: Device %d [%s] MTU value unknown", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1322:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "DLT: Device %d [%s] MTU value unknown", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1326:20: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "DLT: Please report your DLT and MTU values (e.g. ifconfig) to the ntop-dev list"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1326:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "DLT: Please report your DLT and MTU values (e.g. ifconfig) to the ntop-dev list"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1327:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "DLT: Processing continues OK"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1327:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "DLT: Processing continues OK"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1331:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "DLT: Device %d [%s] is %d, mtu %d, header %d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1331:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "DLT: Device %d [%s] is %d, mtu %d, header %d", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'parseTrafficFilter': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1349:53: note: in expansion of macro 'strdup' myGlobals.runningPref.currentFilterExpression = strdup(""); /* so that it isn't NULL! */ ^ initialize.c:1349:60: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.runningPref.currentFilterExpression = strdup(""); /* so that it isn't NULL! */ ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ initialize.c: In function 'startSniffer': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1395:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Unable to start sniffer - not in INIT state"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1395:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Unable to start sniffer - not in INIT state"); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1400:33: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_RUN); ^ globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1410:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%d): Started thread for network packet sniffing [%s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1410:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%d): Started thread for network packet sniffing [%s]", ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c: In function 'createDummyInterface': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1424:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Creating dummy interface, '%s'", ifName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1424:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Creating dummy interface, '%s'", ifName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ initialize.c:1427:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Too many devices: device '%s' can't be created", ifName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ initialize.c:1427:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Too many devices: device '%s' can't be created", ifName); ^ In file included from ntop.h:515:0, from initialize.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1437:37: note: in expansion of macro 'strdup' myGlobals.device[deviceId].name = strdup(ifName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1438:50: note: in expansion of macro 'strdup' myGlobals.device[deviceId].humanFriendlyName = strdup(ifName); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1455:62: note: in expansion of macro 'calloc' myGlobals.device[deviceId].networkHost[i].protocolInfo = calloc(1, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1456:72: note: in expansion of macro 'calloc' myGlobals.device[deviceId].networkHost[i].protocolInfo->dnsStats = calloc(1, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1457:73: note: in expansion of macro 'calloc' myGlobals.device[deviceId].networkHost[i].protocolInfo->httpStats = calloc(1, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ initialize.c:1458:73: note: in expansion of macro 'calloc' myGlobals.device[deviceId].networkHost[i].protocolInfo->dhcpStats = calloc(1, sizeof(DHCPStats)); ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c event.c -o event.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o leaks.lo leaks.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c leaks.c -fPIC -DPIC -o .libs/leaks.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c dataFormat.c -o dataFormat.o >/dev/null 2>&1 globals-core.c:60:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ".", ^ In file included from ntop.h:66:0, from globals-core.c:26: config.h:14:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CFG_DATAFILE_DIR "/usr/share/ntop" ^ globals-core.c:64:3: note: in expansion of macro 'CFG_DATAFILE_DIR' CFG_DATAFILE_DIR, DEFAULT_NTOP_HTML_INSTALL, NULL }; ^ In file included from ntop.h:511:0, from globals-core.c:26: globals-defines.h:2700:41: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define DEFAULT_NTOP_HTML_INSTALL "/usr/local/share/ntop" ^ globals-core.c:64:21: note: in expansion of macro 'DEFAULT_NTOP_HTML_INSTALL' CFG_DATAFILE_DIR, DEFAULT_NTOP_HTML_INSTALL, NULL }; ^ globals-core.c:65:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static char *_pluginDirs[] = { "./plugins", CFG_PLUGIN_DIR, DEFAULT_NTOP_PLUGINS_INSTALL, NULL }; ^ In file included from ntop.h:66:0, from globals-core.c:26: config.h:26:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CFG_PLUGIN_DIR "/usr/lib64/ntop/plugins" ^ globals-core.c:65:49: note: in expansion of macro 'CFG_PLUGIN_DIR' static char *_pluginDirs[] = { "./plugins", CFG_PLUGIN_DIR, DEFAULT_NTOP_PLUGINS_INSTALL, NULL }; ^ In file included from ntop.h:511:0, from globals-core.c:26: globals-defines.h:2699:41: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define DEFAULT_NTOP_PLUGINS_INSTALL "/usr/local/lib/ntop/plugins" ^ globals-core.c:65:65: note: in expansion of macro 'DEFAULT_NTOP_PLUGINS_INSTALL' static char *_pluginDirs[] = { "./plugins", CFG_PLUGIN_DIR, DEFAULT_NTOP_PLUGINS_INSTALL, NULL }; ^ globals-core.c:66:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static char *_configFileDirs[] = { ".", CFG_CONFIGFILE_DIR, DEFAULT_NTOP_CFG_CONFIGFILE_DIR, ^ In file included from ntop.h:66:0, from globals-core.c:26: config.h:11:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CFG_CONFIGFILE_DIR "/etc/ntop" ^ globals-core.c:66:41: note: in expansion of macro 'CFG_CONFIGFILE_DIR' static char *_configFileDirs[] = { ".", CFG_CONFIGFILE_DIR, DEFAULT_NTOP_CFG_CONFIGFILE_DIR, ^ In file included from ntop.h:511:0, from globals-core.c:26: globals-defines.h:2701:41: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define DEFAULT_NTOP_CFG_CONFIGFILE_DIR "/usr/local/etc/ntop" ^ globals-core.c:66:61: note: in expansion of macro 'DEFAULT_NTOP_CFG_CONFIGFILE_DIR' static char *_configFileDirs[] = { ".", CFG_CONFIGFILE_DIR, DEFAULT_NTOP_CFG_CONFIGFILE_DIR, ^ globals-core.c:70:8: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "/etc", ^ globals-core.c: In function 'initGdbm': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:83:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Initializing gdbm databases"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:83:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Initializing gdbm databases"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:86:49: warning: passing argument 2 of 'initSingleGdbm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initSingleGdbm(&myGlobals.prefsFile, "prefsCache.db", prefDirectory, FALSE, NULL); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:247:13: note: expected 'char *' but argument is of type 'const char *' extern void initSingleGdbm(GDBM_FILE *database, char *dbName, char *directory, ^ globals-core.c:87:49: warning: passing argument 2 of 'initSingleGdbm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initSingleGdbm(&myGlobals.pwFile, "ntop_pw.db", prefDirectory, FALSE, NULL); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:247:13: note: expected 'char *' but argument is of type 'const char *' extern void initSingleGdbm(GDBM_FILE *database, char *dbName, char *directory, ^ globals-core.c:91:47: warning: passing argument 2 of 'initSingleGdbm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initSingleGdbm(&myGlobals.macPrefixFile, "macPrefix.db", spoolDirectory, FALSE, &statbuf); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:247:13: note: expected 'char *' but argument is of type 'const char *' extern void initSingleGdbm(GDBM_FILE *database, char *dbName, char *directory, ^ globals-core.c:92:47: warning: passing argument 2 of 'initSingleGdbm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initSingleGdbm(&myGlobals.fingerprintFile, "fingerprint.db", spoolDirectory, FALSE, &statbuf); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:247:13: note: expected 'char *' but argument is of type 'const char *' extern void initSingleGdbm(GDBM_FILE *database, char *dbName, char *directory, ^ globals-core.c: In function 'allocateOtherHosts': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:102:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Attempting to call twice allocateOtherHosts()"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:102:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Attempting to call twice allocateOtherHosts()"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:106:44: note: in expansion of macro 'malloc' myGlobals.otherHostEntry = (HostTraffic*)malloc(sizeof(HostTraffic)); ^ globals-core.c: In function 'initNtopGlobals': globals-core.c:141:26: warning: operation on 'myGlobals.program_name' may be undefined [-Wsequence-point] myGlobals.program_name = ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:159:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled by default"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:159:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled by default"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:161:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge enabled by default"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:161:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge enabled by default"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:177:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] defaultPath = CFG_DBFILE_DIR; ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:179:31: note: in expansion of macro 'strdup' myGlobals.dbPath = strdup(defaultPath); /* a NULL pointer will break the logic */ ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:188:22: note: in expansion of macro 'calloc' myGlobals.device = calloc(MAX_NUM_DEVICES, sizeof(NtopInterface)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:191:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Not enough memory :-("); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:191:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Not enough memory :-("); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:221:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.separator = " "; ^ globals-core.c:263:46: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.geolocalizationMutex); /* GeoIP mutex */ ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:266:38: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.logViewMutex); /* synchronize logView buffer */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:272:31: note: in expansion of macro 'calloc' myGlobals.logView = (char**)calloc(sizeof(char*), ^ In file included from ntop.h:515:0, from iface.c:26: iface.c: In function 'calculateUniqueInterfaceName': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ iface.c:750:5: note: in expansion of macro 'free' free(myGlobals.device[deviceId].uniqueIfName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ iface.c:752:45: note: in expansion of macro 'strdup' myGlobals.device[deviceId].uniqueIfName = strdup(myGlobals.device[deviceId].humanFriendlyName); ^ globals-core.c:286:35: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.gdbmMutex); /* data to synchronize thread access to db files */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:287:36: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.portsMutex); /* Avoid race conditions while handling ports */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:290:47: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.tcpSessionsMutex[i]); /* data to synchronize TCP sessions access */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:292:41: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.purgePortsMutex); /* data to synchronize port purge access */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:293:36: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.purgeMutex); /* synchronize purging */ ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:294:44: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.securityItemsMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:295:44: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.c:298:45: warning: passing argument 2 of '_createMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] createMutex(&myGlobals.hostsHashMutex[i]); ^ globals-core.h:612:14: note: expected 'char *' but argument is of type 'const char *' extern int _createMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:409:44: note: in expansion of macro 'malloc' myGlobals.broadcastEntry = (HostTraffic*)malloc(sizeof(HostTraffic)); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:438:22: note: in expansion of macro 'malloc' startedAs = (char*)malloc(bufLen); ^ globals-core.c: In function 'loadGeoIP': globals-core.c:467:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, path, sizeof(path), ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.c:468:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%c%s", ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:475:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "GeoIP: loaded config file %s", path); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:475:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "GeoIP: loaded config file %s", path); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:482:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "GeoIP: unable to load file %s", GEO_IP_FILE); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:482:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "GeoIP: unable to load file %s", GEO_IP_FILE); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:489:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, path, sizeof(path), ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.c:490:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%c%s", ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:497:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "GeoIP: loaded ASN config file %s", path); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:497:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "GeoIP: loaded ASN config file %s", path); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:504:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "GeoIP: unable to load ASN file %s", GEO_IP_ASN_FILE); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:504:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "GeoIP: unable to load ASN file %s", GEO_IP_ASN_FILE); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c: In function 'initNtop': globals-core.c:549:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.c:550:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s/html/%s", ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:562:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "ntop will not become a daemon as it has not been"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:562:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "ntop will not become a daemon as it has not been"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:563:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "installed properly (did you do 'make install')"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:563:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "installed properly (did you do 'make install')"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:576:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *any_net = "0.0.0.0/0"; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:578:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:579:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "-m | local-subnets must be specified when the -f option is used" ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:581:44: note: in expansion of macro 'strdup' myGlobals.runningPref.localAddresses = strdup(any_net); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.c:587:53: note: in expansion of macro 'strdup' myGlobals.runningPref.currentFilterExpression = strdup(""); /* so that it isn't NULL! */ ^ globals-core.c:587:60: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.runningPref.currentFilterExpression = strdup(""); /* so that it isn't NULL! */ ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:598:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Starting Plugins"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:598:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Starting Plugins"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:600:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Plugins started... continuing with initialization"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:600:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Plugins started... continuing with initialization"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:607:28: warning: passing argument 1 of 'addNewIpProtocolToHandle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addNewIpProtocolToHandle("IGMP", 2, 0 /* no proto */); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:413:13: note: expected 'char *' but argument is of type 'const char *' extern void addNewIpProtocolToHandle(char* name, u_int16_t id, u_int16_t idAlias); ^ globals-core.c:608:28: warning: passing argument 1 of 'addNewIpProtocolToHandle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addNewIpProtocolToHandle("OSPF", 89, 0 /* no proto */); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:413:13: note: expected 'char *' but argument is of type 'const char *' extern void addNewIpProtocolToHandle(char* name, u_int16_t id, u_int16_t idAlias); ^ globals-core.c:609:28: warning: passing argument 1 of 'addNewIpProtocolToHandle' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addNewIpProtocolToHandle("IPsec", 50, 51); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:413:13: note: expected 'char *' but argument is of type 'const char *' extern void addNewIpProtocolToHandle(char* name, u_int16_t id, u_int16_t idAlias); ^ globals-core.c:614:22: warning: passing argument 1 of 'fetchPrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(fetchPrefsValue("globals.displayPolicy", value, sizeof(value)) == -1) { ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:472:12: note: expected 'char *' but argument is of type 'const char *' extern int fetchPrefsValue(char *key, char *value, int valueLen); ^ globals-core.c:616:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPolicy", "0"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-core.c:616:46: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPolicy", "0"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-core.c:626:22: warning: passing argument 1 of 'fetchPrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(fetchPrefsValue("globals.localityPolicy", value, sizeof(value)) == -1) { ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c address.c -o address.o >/dev/null 2>&1 In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:472:12: note: expected 'char *' but argument is of type 'const char *' extern int fetchPrefsValue(char *key, char *value, int valueLen); ^ globals-core.c:628:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.localityPolicy", "0"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-core.c:628:47: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.localityPolicy", "0"); ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-core.c: In function '_setRunState': globals-core.c:694:55: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_NOTINIT] = "NOTINIT"; ^ globals-core.c:695:55: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_PREINIT] = "PREINIT"; ^ globals-core.c:696:52: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_INIT] = "INIT"; ^ globals-core.c:697:59: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_INITNONROOT] = "INITNONROOT"; ^ globals-core.c:698:51: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_RUN] = "RUN"; ^ globals-core.c:699:55: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_STOPCAP] = "STOPCAP"; ^ globals-core.c:700:59: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_SHUTDOWNREQ] = "SHUTDOWNREQ"; ^ globals-core.c:701:56: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_SHUTDOWN] = "SHUTDOWN"; ^ globals-core.c:702:52: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stateTransitionTableNames[FLAG_NTOPSTATE_TERM] = "TERM"; ^ globals-core.c:710:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Invalid runState transition %d to %d", ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ globals-core.c:763:14: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "THREADMGMT[t%lu]: ntop RUNSTATE: %s(%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c:763:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "THREADMGMT[t%lu]: ntop RUNSTATE: %s(%d)", ^ In file included from ntop.h:515:0, from globals-core.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.c: At top level: globals-core.c:786:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "auth", LOG_AUTH }, ^ globals-core.c:787:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "cron", LOG_CRON }, ^ globals-core.c:788:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "daemon", LOG_DAEMON }, ^ globals-core.c:789:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "kern", LOG_KERN }, ^ globals-core.c:790:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "lpr", LOG_LPR }, ^ globals-core.c:791:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "mail", LOG_MAIL }, ^ globals-core.c:792:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "news", LOG_NEWS }, ^ globals-core.c:793:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "syslog", LOG_SYSLOG }, ^ globals-core.c:794:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "user", LOG_USER }, ^ globals-core.c:795:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "uucp", LOG_UUCP }, ^ globals-core.c:796:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local0", LOG_LOCAL0 }, ^ globals-core.c:797:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local1", LOG_LOCAL1 }, ^ globals-core.c:798:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local2", LOG_LOCAL2 }, ^ globals-core.c:799:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local3", LOG_LOCAL3 }, ^ globals-core.c:800:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local4", LOG_LOCAL4 }, ^ globals-core.c:801:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local5", LOG_LOCAL5 }, ^ globals-core.c:802:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local6", LOG_LOCAL6 }, ^ globals-core.c:803:7: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { "local7", LOG_LOCAL7 }, ^ hash.c: In function 'hashHost': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:94:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Index calculation problem (1)"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:94:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Index calculation problem (1)"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c: In function 'freeHostInfo': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:115:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(NULL)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:115:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(NULL)"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:124:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(otherHostEntry)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:124:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(otherHostEntry)"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:129:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(broadcastEntry)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:129:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Attempting to call freeHostInfo(broadcastEntry)"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:134:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) freeHostInfo()", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:134:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) freeHostInfo()", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:154:11: warning: variable 'key_data' set but not used [-Wunused-but-set-variable] datum key_data; ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:174:2: note: in expansion of macro 'free' free(host->protoIPTrafficInfos[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:176:5: note: in expansion of macro 'free' free(host->protoIPTrafficInfos); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:182:2: note: in expansion of macro 'free' free(host->ipProtosList[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:184:5: note: in expansion of macro 'free' free(host->ipProtosList); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:188:57: note: in expansion of macro 'free' if(host->nonIPTraffic->nbHostName != NULL) free(host->nonIPTraffic->nbHostName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:189:57: note: in expansion of macro 'free' if(host->nonIPTraffic->nbAccountName != NULL) free(host->nonIPTraffic->nbAccountName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:190:57: note: in expansion of macro 'free' if(host->nonIPTraffic->nbDomainName != NULL) free(host->nonIPTraffic->nbDomainName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:191:57: note: in expansion of macro 'free' if(host->nonIPTraffic->nbDescr != NULL) free(host->nonIPTraffic->nbDescr); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:192:57: note: in expansion of macro 'free' if(host->nonIPTraffic->unknownProtoSent != NULL) free(host->nonIPTraffic->unknownProtoSent); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:193:57: note: in expansion of macro 'free' if(host->nonIPTraffic->unknownProtoRcvd != NULL) free(host->nonIPTraffic->unknownProtoRcvd); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:194:5: note: in expansion of macro 'free' free(host->nonIPTraffic); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:202:7: note: in expansion of macro 'free' free(list); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:208:5: note: in expansion of macro 'free' free(host->secHostPkts); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:213:5: note: in expansion of macro 'free' free(host->fingerprint); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:215:35: note: in expansion of macro 'free' if(host->routedTraffic != NULL) free(host->routedTraffic); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:226:4: note: in expansion of macro 'free' free(list->virtualHostName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:227:2: note: in expansion of macro 'free' free(list); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:238:11: note: in expansion of macro 'free' free(list->userName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:239:2: note: in expansion of macro 'free' free(list); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:244:47: note: in expansion of macro 'free' if(host->protocolInfo->dnsStats != NULL) free(host->protocolInfo->dnsStats); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:245:47: note: in expansion of macro 'free' if(host->protocolInfo->httpStats != NULL) free(host->protocolInfo->httpStats); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:246:47: note: in expansion of macro 'free' if(host->protocolInfo->dhcpStats != NULL) free(host->protocolInfo->dhcpStats); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:248:34: note: in expansion of macro 'free' if(host->protocolInfo != NULL) free(host->protocolInfo); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:252:30: note: in expansion of macro 'free' if(host->icmpInfo != NULL) free(host->icmpInfo); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:253:41: note: in expansion of macro 'free' if(host->trafficDistribution != NULL) free(host->trafficDistribution); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:254:33: note: in expansion of macro 'free' if(host->clientDelay != NULL) free(host->clientDelay); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:255:33: note: in expansion of macro 'free' if(host->serverDelay != NULL) free(host->serverDelay); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:256:36: note: in expansion of macro 'free' if(host->dnsDomainValue != NULL) free(host->dnsDomainValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:258:33: note: in expansion of macro 'free' if(host->dnsTLDValue != NULL) free(host->dnsTLDValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:260:33: note: in expansion of macro 'free' if(host->hostASDescr != NULL) free(host->hostASDescr); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:261:33: note: in expansion of macro 'free' if(host->description != NULL) free(host->description); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:262:29: note: in expansion of macro 'free' if(host->hwModel != NULL) free(host->hwModel); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:263:31: note: in expansion of macro 'free' if(host->community != NULL) free(host->community); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:274:3: note: in expansion of macro 'free' free(host); ^ hash.c: In function 'freeHostInstances': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:297:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "FREE_HOST: Start, %d device(s)", max); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:297:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "FREE_HOST: Start, %d device(s)", max); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:332:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "FREE_HOST: End, freed %d", num); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:332:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "FREE_HOST: End, freed %d", num); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c: In function 'readSessionPurgeParams': hash.c:340:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = "purge_host.seconds_idle_with_no_sessions"; ^ hash.c:345:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%u", sec_idle_with_no_sessions); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c:345:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%u", sec_idle_with_no_sessions); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c:349:7: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = "purge_host.seconds_idle_with_sessions"; ^ hash.c:354:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%u", sec_idle_with_sessions); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c:354:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%u", sec_idle_with_sessions); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c: In function 'purgeIdleHosts': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ hash.c:418:36: note: in expansion of macro 'calloc' theFlaggedHosts = (HostTraffic**)calloc(1, myGlobals.piMem); ^ hash.c:425:38: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "purgeIdleHosts"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ hash.c:425:54: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "purgeIdleHosts"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ hash.c:434:46: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "scanIdleLoop"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ hash.c:434:60: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "scanIdleLoop"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ hash.c:484:45: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ hash.c:493:37: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgeMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:498:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "IDLE_PURGE: Device %d [%s] FINISHED selection, " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:498:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "IDLE_PURGE: Device %d [%s] FINISHED selection, " ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ hash.c:513:3: note: in expansion of macro 'free' free(theFlaggedHosts); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:522:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:523:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "IDLE_PURGE: Device %d [%s]: %d/%d hosts deleted, elapsed time is %.6f seconds (%.6f per host)", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:529:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "IDLE_PURGE: Device %s: no hosts [out of %d] deleted", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:529:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "IDLE_PURGE: Device %s: no hosts [out of %d] deleted", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c: In function '_lookupHost': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:579:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:580:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Both Ethernet and IP addresses are NULL in lookupHost()[%s:%d]", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:620:30: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "_lookupHost"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ hash.c:620:43: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "_lookupHost"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:628:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:629:18: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Bad magic number (expected=%d/real=%d) [deviceId=%d] lookupHost()[%s:%d]", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:636:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:637:18: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Error: wrong bucketIdx %s/%s (expected=%d/real=%d) [deviceId=%d] lookupHost()[%s:%d]", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:682:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:683:5: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Two MAC addresses found for the same IP address " ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:709:80: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(myGlobals.device[actualDeviceId].hash_hostTraffic[idx]), locked_mutex = 0; ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:716:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "mVLAN: Host (identical IP/MAC) found on multiple VLANs [%d][%d]", vlanId, el->vlanId); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:716:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "mVLAN: Host (identical IP/MAC) found on multiple VLANs [%d][%d]", vlanId, el->vlanId); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:717:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "mVLAN: ntop continues but will consolidate and thus probably overcount this traffic"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:717:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "mVLAN: ntop continues but will consolidate and thus probably overcount this traffic"); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:718:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "mVLAN: Up to %d examples will be printed", MAX_MULTIPLE_VLAN_WARNINGS); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:718:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "mVLAN: Up to %d examples will be printed", MAX_MULTIPLE_VLAN_WARNINGS); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:723:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "mVLAN: Device %d Host %s (%02x:%02x:%02x:%02x:%02x:%02x) VLANs %d and %d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:723:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "mVLAN: Device %d Host %s (%02x:%02x:%02x:%02x:%02x:%02x) VLANs %d and %d", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:745:75: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, el->hostNumIpAddress, FLAG_HOST_SYM_ADDR_TYPE_IP); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:762:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "WARNING: Max num hash entries (%u) reached (see -x)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:762:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "WARNING: Max num hash entries (%u) reached (see -x)", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:766:99: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(locked_mutex) unlockHostsHashMutex(myGlobals.device[actualDeviceId].hash_hostTraffic[idx]), locked_mutex = 0; ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ hash.c:770:28: note: in expansion of macro 'malloc' if((el = (HostTraffic*)malloc(sizeof(HostTraffic))) == NULL) { ^ hash.c:771:99: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(locked_mutex) unlockHostsHashMutex(myGlobals.device[actualDeviceId].hash_hostTraffic[idx]), locked_mutex = 0; ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ hash.c:788:53: note: in expansion of macro 'malloc' if((el->ipProtosList = (ShortProtoTrafficInfo**)malloc(len)) == NULL) { ^ hash.c:789:99: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(locked_mutex) unlockHostsHashMutex(myGlobals.device[actualDeviceId].hash_hostTraffic[idx]), locked_mutex = 0; ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:814:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "-> Allocated(%d) [tot=%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:814:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "-> Allocated(%d) [tot=%d]", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:886:77: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, el->hostNumIpAddress, FLAG_HOST_SYM_ADDR_TYPE_IP); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:898:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Wrong netmask detected [%s/%s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:898:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Wrong netmask detected [%s/%s]", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:938:75: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, el->hostNumIpAddress, FLAG_HOST_SYM_ADDR_TYPE_IP); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ hash.c:950:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s%s", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c:950:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s%s", ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ hash.c:954:61: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, buf, FLAG_HOST_SYM_ADDR_TYPE_MAC); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ hash.c:1001:95: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(locked_mutex) unlockHostsHashMutex(myGlobals.device[actualDeviceId].hash_hostTraffic[idx]), locked_mutex = 0; ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ hash.c: In function 'add_valid_ptr': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:1072:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "add_valid_ptr(%p)", ptr); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:1072:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "add_valid_ptr(%p)", ptr); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c: In function 'is_valid_ptr': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:1113:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "is_valid_ptr(%p): 1", ptr); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:1113:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "is_valid_ptr(%p): 1", ptr); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ hash.c:1118:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "is_valid_ptr(%p): 0", ptr); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ hash.c:1118:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "is_valid_ptr(%p): 0", ptr); ^ In file included from ntop.h:515:0, from hash.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ iface.c: In function 'getIfName': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ iface.c:796:22: note: in expansion of macro 'strdup' session.peername = strdup(hostname); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ iface.c:820:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ iface.c:821:7: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Reading SNMP interface name: [host=%s][community=%s][ifIdx=%d]", ^ In file included from ntop.h:515:0, from iface.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'stopcap': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:53:14: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "ntop packet capture STOPPED"); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:53:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "ntop packet capture STOPPED"); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:54:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "NOTE: ntop web server remains up"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:54:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "NOTE: ntop web server remains up"); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:55:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "NOTE: Shutdown gracefully and restart with more memory"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:55:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "NOTE: Shutdown gracefully and restart with more memory"); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:56:37: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_STOPCAP); ^ globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ leaks.c: In function 'ntop_safemalloc': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:91:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "malloc(%u) @ %s:%d returned NULL [no more memory?]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:91:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "malloc(%u) @ %s:%d returned NULL [no more memory?]", ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'ntop_safecalloc': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:124:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:125:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "calloc(%u,%u) @ %s:%d returned NULL [no more memory?]", ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'ntop_saferealloc': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:157:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:158:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "realloc(%u) @ %s:%d returned NULL [no more memory?]", ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'ntop_safefree': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:179:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "free of NULL pointer @ %s:%d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:179:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "free of NULL pointer @ %s:%d", ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'ntop_safestrdup': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:192:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "strdup of NULL pointer @ %s:%d", file, line); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:192:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "strdup of NULL pointer @ %s:%d", file, line); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c: In function 'ntop_gdbm_firstkey': leaks.c:736:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_firstkey"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:736:59: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_firstkey"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:748:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ leaks.c: In function 'ntop_gdbm_nextkey': leaks.c:761:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_nextkey"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:761:58: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_nextkey"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:773:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ leaks.c: In function 'ntop_gdbm_fetch': leaks.c:786:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_fetch"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:786:56: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_fetch"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:798:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ leaks.c: In function 'ntop_gdbm_delete': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ leaks.c:809:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Wrong data to delete passed to gdbm_delete()"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:809:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Wrong data to delete passed to gdbm_delete()"); ^ In file included from ntop.h:515:0, from leaks.c:27: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ leaks.c:814:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_delete"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:814:57: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_delete"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:819:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ leaks.c: In function 'ntop_gdbm_store': leaks.c:830:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_store"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:830:56: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_store"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:835:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ leaks.c: In function 'ntop_gdbm_close': leaks.c:844:39: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_close"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:844:56: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.gdbmMutex, "ntop_gdbm_close"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ leaks.c:849:38: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.gdbmMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o ntop.lo ntop.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c ntop.c -fPIC -DPIC -o .libs/ntop.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c iface.c -o iface.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c leaks.c -o leaks.o >/dev/null 2>&1 ntop.c: In function 'handleSigHup': ntop.c:48:40: warning: passing argument 2 of 'printMutexInfo' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printMutexInfo(&myGlobals.gdbmMutex, "myGlobals.gdbmMutex"); ^ ntop.c:30:13: note: expected 'char *' but argument is of type 'const char *' static void printMutexInfo(PthreadMutex *mutexId, char *mutexName) { ^ ntop.c:53:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "myGlobals.packetProcessMutex[%s]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:53:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "myGlobals.packetProcessMutex[%s]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:56:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "myGlobals.packetQueueMutex[%s]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:56:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "myGlobals.packetQueueMutex[%s]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:62:55: warning: passing argument 2 of 'printMutexInfo' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printMutexInfo(&myGlobals.addressResolutionMutex, "myGlobals.addressResolutionMutex"); ^ ntop.c:30:13: note: expected 'char *' but argument is of type 'const char *' static void printMutexInfo(PthreadMutex *mutexId, char *mutexName) { ^ ntop.c: In function 'pcapDispatch': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:78:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread starting [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:78:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread starting [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:87:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread running [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:87:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread running [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:99:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Reading packets on device %d (%s): '%s'", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:99:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Reading packets on device %d (%s): '%s'", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:114:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "pcap_loop (%s) returned %d [No more packets to read]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:114:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "pcap_loop (%s) returned %d [No more packets to read]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:121:4: note: in expansion of macro 'free' free(fl->fileName); free(fl); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:121:24: note: in expansion of macro 'free' free(fl->fileName); free(fl); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:127:56: note: in expansion of macro 'free' if(myGlobals.device[i].humanFriendlyName != NULL) free(myGlobals.device[i].humanFriendlyName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ ntop.c:128:46: note: in expansion of macro 'strdup' myGlobals.device[i].humanFriendlyName = strdup(myGlobals.pcap_file_list->fileName); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:130:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "pcap_loop (%s) : reading packets from file %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:130:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "pcap_loop (%s) : reading packets from file %s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:143:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread terminated [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:143:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPS(%s): pcapDispatch thread terminated [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'daemonizeUnderUnix': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:186:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "INIT: Occurred while daemonizing (errno=%d)", errno); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:186:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "INIT: Occurred while daemonizing (errno=%d)", errno); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:193:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "INIT: Bye bye: I'm becoming a daemon..."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:193:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "INIT: Bye bye: I'm becoming a daemon..."); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:196:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "INIT: Parent process is exiting (this is normal)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:196:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "INIT: Parent process is exiting (this is normal)"); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:202:14: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "THREADMGMT[t%lu]: Now running as a daemon", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:202:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "THREADMGMT[t%lu]: Now running as a daemon", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'detachFromTerminalUnderUnix': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:225:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Chdir(/) failed"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:225:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Chdir(/) failed"); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'handleProtocol': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:287:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:288:20: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "INIT: IP port %d (%s) has been discarded (multiple instances)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:313:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "INIT: Protocol '%s' has been discarded (multiple instances)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:313:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "INIT: Protocol '%s' has been discarded (multiple instances)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:320:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "INIT: Unknown protocol '%s' - it has been ignored", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:320:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "INIT: Unknown protocol '%s' - it has been ignored", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'handleProtocolList': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:334:28: note: in expansion of macro 'malloc' servicesMapper = (int*)malloc(sizeof(int)*MAX_IP_PORT); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:360:48: note: in expansion of macro 'malloc' myGlobals.ipTrafficProtosNames = (char**)malloc(sizeof(char*)); ^ globals-core.h:265:47: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define realloc(p,sz) ntop_saferealloc(p, sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:362:48: note: in expansion of macro 'realloc' myGlobals.ipTrafficProtosNames = (char**)realloc(myGlobals.ipTrafficProtosNames, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ ntop.c:366:70: note: in expansion of macro 'strdup' myGlobals.ipTrafficProtosNames[myGlobals.numIpProtosToMonitor] = strdup(protoName); ^ ntop.c: In function 'addNewIpProtocolToHandle': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:392:11: note: in expansion of macro 'calloc' proto = calloc(1, sizeof(ProtocolsList)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ ntop.c:394:25: note: in expansion of macro 'strdup' proto->protocolName = strdup(name); ^ ntop.c: In function 'createPortHash': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:415:56: note: in expansion of macro 'malloc' myGlobals.ipPortMapper.theMapper = (PortProtoMapper*)malloc(theSize); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:445:3: note: in expansion of macro 'free' free(servicesMapper); ^ ntop.c: In function 'handleProtocols': ntop.c:467:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:468:19: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s", myGlobals.runningPref.protoSpecs); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:474:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "PROTO_INIT: Processing protocol list: '%s'", tmpStr); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:474:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "PROTO_INIT: Processing protocol list: '%s'", tmpStr); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:481:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "PROTO_INIT: Unable to get information about file '%s'", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:481:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "PROTO_INIT: Unable to get information about file '%s'", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ ntop.c:486:37: note: in expansion of macro 'malloc' bufferCurrent = buffer = (char*)malloc(buf.st_size+8) /* just to be safe */; ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:488:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PROTO_INIT: Processing protocol file: '%s', size: %ld", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:488:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PROTO_INIT: Processing protocol file: '%s', size: %ld", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:557:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:558:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "PROTO_INIT: Unknown protocol '%s'. It has been ignored", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:583:5: note: in expansion of macro 'free' free(buffer); ^ ntop.c: In function 'addDefaultProtocols': ntop.c:589:41: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.FTPIdx = handleProtocolList("FTP", "ftp|ftp-data|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:589:53: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.FTPIdx = handleProtocolList("FTP", "ftp|ftp-data|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:590:42: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.HttpIdx = handleProtocolList("HTTP", "http|www|https|3128|"); /* 3128 is HTTP cache */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:590:54: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.HttpIdx = handleProtocolList("HTTP", "http|www|https|3128|"); /* 3128 is HTTP cache */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:591:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("DNS", "name|domain|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:591:34: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("DNS", "name|domain|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:593:41: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.SshIdx = handleProtocolList("Login", "telnet|login|22|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:593:52: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.SshIdx = handleProtocolList("Login", "telnet|login|22|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:594:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NetBios", "netbios-ns|netbios-dgm|netbios-ssn|445|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:594:33: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NetBios", "netbios-ns|netbios-dgm|netbios-ssn|445|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:595:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("Mail", "pop-2|pop-3|pop3|kpop|smtp|imap|imap2|585|993|995|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:595:34: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("Mail", "pop-2|pop-3|pop3|kpop|smtp|imap|imap2|585|993|995|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:596:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("DHCP", "67-68|"); /* Bootp */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:596:30: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("DHCP", "67-68|"); /* Bootp */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:597:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("SNMP", "snmp|snmp-trap|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:597:34: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("SNMP", "snmp|snmp-trap|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:598:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NNTP", "nntp|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:598:34: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NNTP", "nntp|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:599:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NFS/AFS", "mount|pcnfs|bwnfs|nfsd|nfs|nfsd-status|7000-7009"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:599:38: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("NFS/AFS", "mount|pcnfs|bwnfs|nfsd|nfs|nfsd-status|7000-7009"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:600:42: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.VoipIdx = handleProtocolList("VoIP", "5060|2000|54045|"); /* 54045 = Skype default port */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:600:50: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.VoipIdx = handleProtocolList("VoIP", "5060|2000|54045|"); /* 54045 = Skype default port */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:601:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("X11", "6000-6010|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:601:34: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("X11", "6000-6010|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:604:43: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.SkypeIdx = handleProtocolList("Skype", "41652|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:604:52: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.SkypeIdx = handleProtocolList("Skype", "41652|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:605:45: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.EdonkeyIdx = handleProtocolList("eDonkey", "4661-4665|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:605:56: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.EdonkeyIdx = handleProtocolList("eDonkey", "4661-4665|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:606:48: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.BitTorrentIdx = handleProtocolList("BitTorrent", "6881-6999|6969|"); /* http://www.dessent.net/btfaq/#ports */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:606:62: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.BitTorrentIdx = handleProtocolList("BitTorrent", "6881-6999|6969|"); /* http://www.dessent.net/btfaq/#ports */ ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:608:46: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.FacebookIdx = handleProtocolList("Facebook", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:608:58: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.FacebookIdx = handleProtocolList("Facebook", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:609:45: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.TwitterIdx = handleProtocolList("Twitter", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:609:56: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.TwitterIdx = handleProtocolList("Twitter", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:610:45: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.YouTubeIdx = handleProtocolList("YouTube", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:610:56: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.YouTubeIdx = handleProtocolList("YouTube", "0|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:612:22: warning: passing argument 1 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("Messenger", "1863|5000|5001|5190-5193|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ ntop.c:612:35: warning: passing argument 2 of 'handleProtocolList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] handleProtocolList("Messenger", "1863|5000|5001|5190-5193|"); ^ ntop.c:328:12: note: expected 'char *' but argument is of type 'const char *' static int handleProtocolList(char* protoName, char *protocolList) { ^ In file included from ntop.h:515:0, from ntop.c:24: ntop.c: In function 'purgeIpPorts': ntop.c:655:43: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgePortsMutex, "purgeIpPorts"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:655:57: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgePortsMutex, "purgeIpPorts"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:659:7: note: in expansion of macro 'free' free(myGlobals.device[theDevice].ipPorts[i]); ^ ntop.c:664:42: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgePortsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c: In function 'scanIdleLoop': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:674:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread starting [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:674:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread starting [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:679:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread running [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:679:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread running [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:685:51: warning: passing argument 1 of '_ntopSleepWhileSameState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ntopSleepWhileSameState(60 /* do not change */); ^ globals-core.h:708:21: note: expected 'char *' but argument is of type 'const char *' extern unsigned int _ntopSleepWhileSameState(char *file, int line, unsigned int secs); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:708:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread terminated [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:708:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SIH: Idle host scan thread terminated [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'scanFingerprintLoop': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:720:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread starting [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:720:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread starting [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:727:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread running [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:727:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread running [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:736:60: warning: passing argument 1 of '_ntopSleepWhileSameState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ntopSleepWhileSameState(CONST_FINGERPRINT_LOOP_INTERVAL); ^ globals-core.h:708:21: note: expected 'char *' but argument is of type 'const char *' extern unsigned int _ntopSleepWhileSameState(char *file, int line, unsigned int secs); ^ ntop.c:747:35: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(deviceId); el != NULL; el = getNextHost(deviceId, el)) { ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ ntop.c:747:79: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(deviceId); el != NULL; el = getNextHost(deviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:762:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "SFP: Ending fingerprint scan cycle %d - checked %d, resolved %d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:762:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "SFP: Ending fingerprint scan cycle %d - checked %d, resolved %d", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:770:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread terminated [p%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:770:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: SFP: Fingerprint scan thread terminated [p%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'cleanupThreadIs': ntop.c:797:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NPS%d", i+1); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:797:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NPS%d", i+1); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:806:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NPS(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:806:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NPS(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:817:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NF(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:817:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "NF(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:828:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "SF(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:828:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "SF(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c: In function 'runningThreads': ntop.c:849:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "%s%s%s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:849:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeofbuf, "%s%s%s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:858:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " DNSAR%d", i+1); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:858:63: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " DNSAR%d", i+1); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:859:42: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(buf, sizeofbuf, buf2); ^ globals-core.h:243:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:863:20: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Joining thread DNSAR%d", i+1); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:863:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Joining thread DNSAR%d", i+1); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:864:59: warning: passing argument 1 of '_joinThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(joinThread(&myGlobals.dequeueAddressThreadId[i]) != 0) ^ globals-core.h:608:12: note: expected 'char *' but argument is of type 'const char *' extern int _joinThread(char *file, int line, pthread_t *threadId); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:865:22: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:865:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:882:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NPS(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:882:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NPS(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:884:37: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(buf, sizeofbuf, buf2); ^ globals-core.h:243:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:889:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "STATS: %s packets received by filter on %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:889:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "STATS: %s packets received by filter on %s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:892:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "STATS: %s packets dropped (according to libpcap)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:892:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "STATS: %s packets dropped (according to libpcap)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:896:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "STATS: %s packets dropped (by ntop)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:896:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "STATS: %s packets dropped (by ntop)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:902:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Joining thread NPS(%s) [t%lu]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:902:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Joining thread NPS(%s) [t%lu]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:905:59: warning: passing argument 1 of '_joinThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(joinThread(&myGlobals.device[i].pcapDispatchThreadId) != 0) ^ globals-core.h:608:12: note: expected 'char *' but argument is of type 'const char *' extern int _joinThread(char *file, int line, pthread_t *threadId); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:906:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "joinThread() returned: %s", strerror(errno)); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:906:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "joinThread() returned: %s", strerror(errno)); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:915:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NF%d", i); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:915:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NF%d", i); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:916:37: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(buf, sizeofbuf, buf2); ^ globals-core.h:243:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:918:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Joining thread NFt%lu [%u]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:918:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Joining thread NFt%lu [%u]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:922:68: warning: passing argument 1 of '_joinThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(joinThread(&myGlobals.device[i].netflowGlobals->netFlowThread) != 0) ^ globals-core.h:608:12: note: expected 'char *' but argument is of type 'const char *' extern int _joinThread(char *file, int line, pthread_t *threadId); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:923:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:923:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:932:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " SF%d", i); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:932:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " SF%d", i); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:933:37: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(buf, sizeofbuf, buf2); ^ globals-core.h:243:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:935:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Joining thread SF%d", i); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:935:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Joining thread SF%d", i); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:936:64: warning: passing argument 1 of '_joinThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(joinThread(&myGlobals.device[i].sflowGlobals->sflowThread) != 0) ^ globals-core.h:608:12: note: expected 'char *' but argument is of type 'const char *' extern int _joinThread(char *file, int line, pthread_t *threadId); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:937:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:937:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "joinThread() returned %s", strerror(errno)); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:945:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NPA(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:945:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf2, sizeof(buf2), " NPA(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ ntop.c:947:37: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(buf, sizeofbuf, buf2); ^ globals-core.h:243:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:949:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Signaling thread NPA(%s)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:949:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Signaling thread NPA(%s)", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c: In function 'cleanup': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:978:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: ntop caught signal %d [state=%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:978:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: ntop caught signal %d [state=%d]", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:982:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "ntop is now quitting..."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:982:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "ntop is now quitting..."); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1002:38: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_SHUTDOWN); ^ globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1005:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: exiting", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1005:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: exiting", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1013:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu] catching thread is %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1013:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu] catching thread is %s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1017:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP: Running threads%s", buf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1017:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP: Running threads%s", buf); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1020:53: warning: passing argument 1 of '_killThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] killThread(&myGlobals.handleWebConnectionsThreadId); ^ globals-core.h:606:12: note: expected 'char *' but argument is of type 'const char *' extern int _killThread(char *file, int line, pthread_t *threadId); ^ ntop.c:1021:41: warning: passing argument 1 of '_killThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] killThread(&myGlobals.scanIdleThreadId); ^ globals-core.h:606:12: note: expected 'char *' but argument is of type 'const char *' extern int _killThread(char *file, int line, pthread_t *threadId); ^ ntop.c:1022:49: warning: passing argument 1 of '_killThread' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] killThread(&myGlobals.scanFingerprintsThreadId); ^ globals-core.h:606:12: note: expected 'char *' but argument is of type 'const char *' extern int _killThread(char *file, int line, pthread_t *threadId); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1025:14: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "CLEANUP: Locking purge mutex (may block for a little while)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1025:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "CLEANUP: Locking purge mutex (may block for a little while)"); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1026:38: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "cleanup"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1026:47: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "cleanup"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1027:14: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "CLEANUP: Locked purge mutex, continuing shutdown"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1027:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "CLEANUP: Locked purge mutex, continuing shutdown"); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1030:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP: Continues%s%s%s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1030:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP: Continues%s%s%s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1040:7: note: in expansion of macro 'free' free(myGlobals.device[i].fragmentList); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1046:5: note: in expansion of macro 'free' free(myGlobals.hostsCache[i]); ^ ntop.c:1062:48: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].asMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1062:57: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].asMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1063:45: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.device[i].asMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1064:53: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].counterMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1064:62: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].counterMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1065:50: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.device[i].counterMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1066:59: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].packetProcessMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1066:68: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].packetProcessMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1067:56: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.device[i].packetProcessMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1068:57: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].packetQueueMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1068:66: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.device[i].packetQueueMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1069:54: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.device[i].packetQueueMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1073:53: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.addressResolutionMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1073:62: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.addressResolutionMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1074:50: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.addressResolutionMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1078:48: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.hostsHashMutex[i], "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1078:57: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.hostsHashMutex[i], "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1079:45: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.hostsHashMutex[i]); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1094:38: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.gdbmMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1094:47: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.gdbmMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1095:35: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.gdbmMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1096:39: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.purgeMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1096:48: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.purgeMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1097:36: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.purgeMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1105:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP: Freeing device %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1105:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP: Freeing device %s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1109:7: note: in expansion of macro 'free' free(myGlobals.device[i].ipProtoStats); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1112:7: note: in expansion of macro 'free' free(myGlobals.device[i].ipProtosList); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1115:7: note: in expansion of macro 'free' free(myGlobals.device[i].hash_hostTraffic); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1122:4: note: in expansion of macro 'free' free(myGlobals.device[i].ipPorts[port]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1126:7: note: in expansion of macro 'free' free(myGlobals.device[i].ipPorts); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1129:7: note: in expansion of macro 'free' free(myGlobals.device[i].packetQueue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1131:40: note: in expansion of macro 'free' if(myGlobals.device[i].tcpSession) free(myGlobals.device[i].tcpSession); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1133:5: note: in expansion of macro 'free' free(myGlobals.device[i].humanFriendlyName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1134:5: note: in expansion of macro 'free' free(myGlobals.device[i].uniqueIfName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1135:5: note: in expansion of macro 'free' free(myGlobals.device[i].name); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1151:9: note: in expansion of macro 'free' free(tmp); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1157:7: note: in expansion of macro 'free' free(myGlobals.device[i].asStats); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1163:5: note: in expansion of macro 'free' free(myGlobals.device); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1165:40: note: in expansion of macro 'free' if(myGlobals.broadcastEntry != NULL) free(myGlobals.broadcastEntry); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1170:5: note: in expansion of macro 'free' free(myGlobals.otherHostEntry); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1173:35: note: in expansion of macro 'free' if(myGlobals.startedAs != NULL) free(myGlobals.startedAs); ^ ntop.c:1176:54: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.tcpSessionsMutex[idx], "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1176:63: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.tcpSessionsMutex[idx], "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1177:51: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.tcpSessionsMutex[idx]); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1180:44: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.purgePortsMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1180:53: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.purgePortsMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1181:41: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.purgePortsMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ ntop.c:1182:47: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.securityItemsMutex, "cleanup"); ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1182:56: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tryLockMutex(&myGlobals.securityItemsMutex, "cleanup"); ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ ntop.c:1183:44: warning: passing argument 2 of '_deleteMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] deleteMutex(&myGlobals.securityItemsMutex); ^ globals-core.h:614:14: note: expected 'char *' but argument is of type 'const char *' extern void _deleteMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1189:2: note: in expansion of macro 'free' free(myGlobals.logView[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1190:5: note: in expansion of macro 'free' free(myGlobals.logView); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1197:33: note: in expansion of macro 'free' if(myGlobals.shortDomainName) free(myGlobals.shortDomainName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1200:5: note: in expansion of macro 'free' free(myGlobals.ipTrafficProtosNames[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1202:38: note: in expansion of macro 'free' if(myGlobals.ipTrafficProtosNames) free(myGlobals.ipTrafficProtosNames); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1203:40: note: in expansion of macro 'free' if(myGlobals.ipPortMapper.theMapper) free(myGlobals.ipPortMapper.theMapper); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1206:5: note: in expansion of macro 'free' free(myGlobals.runningPref.currentFilterExpression); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1209:5: note: in expansion of macro 'free' free(myGlobals.runningPref.localAddresses); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1211:43: note: in expansion of macro 'free' if(myGlobals.effectiveUserName != NULL) free(myGlobals.effectiveUserName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1213:45: note: in expansion of macro 'free' if(myGlobals.runningPref.devices != NULL) free(myGlobals.runningPref.devices); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1216:3: note: in expansion of macro 'free' free(myGlobals.runningPref.pcapLogBasePath); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1218:27: note: in expansion of macro 'free' if(myGlobals.spoolPath) free(myGlobals.spoolPath); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1220:5: note: in expansion of macro 'free' free(myGlobals.rrdPath); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ ntop.c:1235:3: note: in expansion of macro 'free' free(myGlobals.dbPath); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1237:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP: Clean up complete"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1237:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP: Clean up complete"); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1238:34: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_TERM); ^ globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1244:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: Still running threads%s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1244:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CLEANUP[t%lu]: Still running threads%s", ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1247:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "==================================="); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1247:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "==================================="); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1248:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, " ntop is shutdown... "); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1248:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, " ntop is shutdown... "); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ ntop.c:1249:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "==================================="); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ ntop.c:1249:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "==================================="); ^ In file included from ntop.h:515:0, from ntop.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o pbuf.lo pbuf.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c initialize.c -o initialize.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c pbuf.c -fPIC -DPIC -o .libs/pbuf.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c globals-core.c -o globals-core.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c hash.c -o hash.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o plugin.lo plugin.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o prefs.lo prefs.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o protocols.lo protocols.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c prefs.c -fPIC -DPIC -o .libs/prefs.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c plugin.c -fPIC -DPIC -o .libs/plugin.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c protocols.c -fPIC -DPIC -o .libs/protocols.o In file included from ntop.h:515:0, from pbuf.c:25: pbuf.c: In function 'allocateSecurityHostPkts': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:66:53: note: in expansion of macro 'malloc' if((srcHost->secHostPkts = (SecurityHostProbes*)malloc(sizeof(SecurityHostProbes))) == NULL) return; ^ pbuf.c: In function 'updateRoutedTraffic': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:78:48: note: in expansion of macro 'malloc' router->routedTraffic = (RoutingCounter*)malloc(mallocLen); ^ pbuf.c: In function 'handleIP': libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c ntop.c -o ntop.o >/dev/null 2>&1 globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:118:39: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (4) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:118:58: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (4) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:162:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Discarding idx=%d for port=%d", idx, port); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:162:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Discarding idx=%d for port=%d", idx, port); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:177:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:177:124: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:177:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:177:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ pbuf.c:177:124: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:178:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:178:96: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:178:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:178:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ pbuf.c:178:96: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:183:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:183:124: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:183:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:183:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ pbuf.c:183:124: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos, myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:184:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:184:96: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:184:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:184:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ pbuf.c:184:96: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protoIPTrafficInfos[idx], sizeof(ProtoTrafficInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:190:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:190:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:190:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:193:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:193:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:193:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:197:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:197:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:197:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:200:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:200:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:200:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:206:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:206:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:206:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:209:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:209:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:209:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:213:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:213:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:213:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:216:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:216:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:216:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:226:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:226:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:226:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:228:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:228:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:228:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:233:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:233:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:233:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:235:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:235:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:235:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:242:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:242:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:242:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:244:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:244:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:244:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->sentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:249:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:249:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:249:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->totalFlows, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:251:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:251:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:251:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->rcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:258:38: note: in expansion of macro 'incrementHostTrafficCounter' if(srcHost->protoIPTrafficInfos) incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->pktSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:258:117: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protoIPTrafficInfos) incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->pktSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:258:117: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protoIPTrafficInfos) incrementHostTrafficCounter(srcHost, protoIPTrafficInfos[idx]->pktSent, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:259:38: note: in expansion of macro 'incrementHostTrafficCounter' if(dstHost->protoIPTrafficInfos) incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->pktRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:259:117: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protoIPTrafficInfos) incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->pktRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:259:117: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protoIPTrafficInfos) incrementHostTrafficCounter(dstHost, protoIPTrafficInfos[idx]->pktRcvd, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c: In function 'addContactedPeers': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:275:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Sanity check failed @ addContactedPeers (%p, %p)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:275:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Sanity check failed @ addContactedPeers (%p, %p)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:285:82: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&sender->contactedSentPeers, receiver, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:287:82: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&receiver->contactedRcvdPeers, sender, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c: In function 'deleteFragment': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ pbuf.c:371:3: note: in expansion of macro 'free' free(fragment); ^ pbuf.c: In function 'checkFragmentOverlap': pbuf.c:397:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:398:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Detected overlapping packet fragment [%s->%s]: " ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:410:29: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:412:29: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c: In function 'handleFragment': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:440:30: note: in expansion of macro 'malloc' fragment = (IpFragment*) malloc(sizeof(IpFragment)); ^ pbuf.c: In function 'checkNetworkRouter': pbuf.c:527:92: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] HostTraffic *router = lookupHost(NULL, ether_dst, srcHost->vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ pbuf.c:540:77: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->contactedRouters, router, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c: In function 'resetHourTraffic': pbuf.c:566:26: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(i); el != NULL; el = getNextHost(i, el)) { ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ pbuf.c:566:63: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(i); el != NULL; el = getNextHost(i, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ pbuf.c: In function 'updatePacketCount': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:588:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "NULL host detected"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:588:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "NULL host detected"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:610:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, pktSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:610:58: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:610:58: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktSent, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:611:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, pktSentSession, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:611:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktSentSession, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:611:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktSentSession, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:613:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:613:92: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:613:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:613:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, trafficDistribution, sizeof(TrafficDistribution)); ^ pbuf.c:613:92: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:615:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, trafficDistribution->last24HoursBytesSent[hourId], bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:615:104: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, trafficDistribution->last24HoursBytesSent[hourId], bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:615:104: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, trafficDistribution->last24HoursBytesSent[hourId], bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:616:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:616:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:616:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSent, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:617:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSentSession, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:617:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentSession, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:617:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentSession, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:621:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, pktRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:621:58: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:621:58: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktRcvd, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:622:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, pktRcvdSession, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:622:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktRcvdSession, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:622:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktRcvdSession, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:624:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:624:92: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:624:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:624:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, trafficDistribution, sizeof(TrafficDistribution)); ^ pbuf.c:624:92: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, trafficDistribution, sizeof(TrafficDistribution)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:626:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, trafficDistribution->last24HoursBytesRcvd[hourId], bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:626:104: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, trafficDistribution->last24HoursBytesRcvd[hourId], bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:626:104: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, trafficDistribution->last24HoursBytesRcvd[hourId], bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:627:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvd, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:627:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvd, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:627:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvd, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:628:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvdSession, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:628:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdSession, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:628:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdSession, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:633:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, pktBroadcastSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:633:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktBroadcastSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:633:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktBroadcastSent, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:634:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesBroadcastSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:634:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesBroadcastSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:634:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesBroadcastSent, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:643:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, pktMulticastSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:643:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktMulticastSent, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:643:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, pktMulticastSent, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:644:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesMulticastSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:644:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesMulticastSent, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:644:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesMulticastSent, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:648:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, pktMulticastRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:648:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktMulticastRcvd, numPkts); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:648:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, pktMulticastRcvd, numPkts); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:649:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesMulticastRcvd, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:649:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesMulticastRcvd, bytes.value); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:649:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesMulticastRcvd, bytes.value); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c: In function 'updateHostName': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:668:41: note: in expansion of macro 'calloc' el->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ pbuf.c:678:88: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(el, el->nonIPTraffic->nbHostName, FLAG_HOST_SYM_ADDR_TYPE_NETBIOS); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ pbuf.c: In function 'updateInterfacePorts': pbuf.c:706:43: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgePortsMutex, "updateInterfacePorts"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:706:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgePortsMutex, "updateInterfacePorts"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:712:69: note: in expansion of macro 'malloc' myGlobals.device[actualDeviceId].ipPorts[sport] = (PortCounter*)malloc(sizeof(PortCounter)); ^ pbuf.c:714:46: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgePortsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:723:69: note: in expansion of macro 'malloc' myGlobals.device[actualDeviceId].ipPorts[dport] = (PortCounter*)malloc(sizeof(PortCounter)); ^ pbuf.c:725:46: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgePortsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:736:42: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgePortsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c: In function 'incrementUnknownProto': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:772:41: note: in expansion of macro 'calloc' host->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:779:61: note: in expansion of macro 'malloc' host->nonIPTraffic->unknownProtoSent = (UnknownProto*)malloc(sizeof(UnknownProto)* ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:813:61: note: in expansion of macro 'malloc' host->nonIPTraffic->unknownProtoRcvd = (UnknownProto*)malloc(sizeof(UnknownProto)* ^ pbuf.c: In function 'allocASStats': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:849:32: note: in expansion of macro 'malloc' AsStats *asStats = (AsStats*)malloc(sizeof(AsStats)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:851:20: note: in expansion of macro 'CONST_TRACE_WARNING' if(0) traceEvent(CONST_TRACE_WARNING, "Allocating stats for AS %d", as_id); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:851:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(0) traceEvent(CONST_TRACE_WARNING, "Allocating stats for AS %d", as_id); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c: In function 'updateASTraffic': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:875:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "updateASTraffic(actualDeviceId=%d, src_as_id=%d, dst_as_id=%d, octets=%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:875:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "updateASTraffic(actualDeviceId=%d, src_as_id=%d, dst_as_id=%d, octets=%d)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:881:58: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[actualDeviceId].asMutex, "updateASTraffic"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:881:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[actualDeviceId].asMutex, "updateASTraffic"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:891:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:896:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:906:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:911:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:918:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:925:24: note: in expansion of macro 'CONST_TRACE_INFO' if(0) traceEvent(CONST_TRACE_INFO, "Purging stats about AS %d", stats->as_id); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:925:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(0) traceEvent(CONST_TRACE_INFO, "Purging stats about AS %d", stats->as_id); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ pbuf.c:931:7: note: in expansion of macro 'free' free(stats); ^ pbuf.c:954:57: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[actualDeviceId].asMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c: In function 'processIpPkt': pbuf.c:1005:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ip6 = (struct ip6_hdr *)bp; ^ pbuf.c:1074:73: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1081:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Host %s has a wrong netmask", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1081:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Host %s has a wrong netmask", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1095:74: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(&dstAddr, ether_dst, vlanId, 1 , 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1098:39: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (2) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1098:58: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (2) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1108:45: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] forceUsingIPaddress, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1112:39: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (1) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1112:58: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (1) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1166:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1166:63: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1166:63: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1167:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1167:63: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1167:63: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1169:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipv4BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1169:63: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv4BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1169:63: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv4BytesSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1170:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipv4BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1170:63: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv4BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1170:63: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv4BytesRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1175:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1175:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1175:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1176:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1176:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1176:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1178:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1178:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1178:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1179:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1179:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1179:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1184:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1184:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1184:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1185:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1185:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1185:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1187:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1187:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1187:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, bytesSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1188:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1188:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1188:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, bytesRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1216:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, tcpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1216:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1216:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpFragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1217:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, tcpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1217:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1217:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpFragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1221:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, udpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1221:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1221:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpFragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1222:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, udpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1222:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1222:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpFragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1226:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1226:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1226:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1227:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1227:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1227:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1231:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, greSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1231:59: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, greSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1231:59: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, greSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1232:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, greRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1232:59: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, greRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1232:59: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, greRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1238:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1238:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1238:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1239:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1239:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1239:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1244:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1244:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1244:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1245:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1245:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1245:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1253:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] snapend = (unsigned char *)(bp+length); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1282:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Malformed TCP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1282:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Malformed TCP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1288:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->malformedPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1289:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->malformedPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1293:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto = "TCP"; ^ pbuf.c:1308:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] theData = (u_char*)(bp+hlen+(tp.th_off * 4)); ^ pbuf.c:1345:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] struct tcphdr *tcp = (struct tcphdr*)(bp+hlen); ^ pbuf.c:1406:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, WSS, sizeof(WSS), "WS"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1406:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, WSS, sizeof(WSS), "WS"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1408:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, WSS, sizeof(WSS), "%02X", WS & 0xFFFF); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1408:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, WSS, sizeof(WSS), "%02X", WS & 0xFFFF); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1411:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, _MSS, sizeof(_MSS), "_MSS"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1411:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, _MSS, sizeof(_MSS), "_MSS"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1413:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, _MSS, sizeof(_MSS), "%04X", MSS & 0xFFFFFFFF); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1413:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, _MSS, sizeof(_MSS), "%04X", MSS & 0xFFFFFFFF); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1415:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fingerprint, sizeof(fingerprint), ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ pbuf.c:1416:6: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%04X:%s:%02X:%s:%d:%d:%d:%d:%c:%02X", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:1423:29: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(fingerprint); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1439:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1439:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1439:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1440:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1440:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1440:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1444:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1444:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1444:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1445:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1445:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1445:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1452:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1452:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1452:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1453:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1453:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1453:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1457:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1457:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1457:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, tcpSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1458:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1458:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1458:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, tcpRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1547:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto = "UDP"; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1553:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Malformed UDP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1553:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Malformed UDP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1559:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->malformedPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1560:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->malformedPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1590:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1590:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1590:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1590:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ pbuf.c:1590:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1591:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1591:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1591:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1591:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ pbuf.c:1591:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1594:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1594:89: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1594:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1594:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ pbuf.c:1594:89: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1596:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1596:89: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1596:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1596:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ pbuf.c:1596:89: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1599:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1599:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1599:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1599:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ pbuf.c:1599:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1600:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1600:89: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1600:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1600:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ pbuf.c:1600:89: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1602:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1602:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1602:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1602:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ pbuf.c:1602:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1603:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1603:89: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1603:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1603:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ pbuf.c:1603:89: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->dnsStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1612:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numLocalReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1612:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numLocalReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1612:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numLocalReqSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1614:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numRemReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1614:80: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numRemReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1614:80: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numRemReqSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1618:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numLocalReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1618:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numLocalReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1618:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numLocalReqRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1620:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numRemReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1620:80: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numRemReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1620:80: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numRemReqRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1676:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numPositiveReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1676:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numPositiveReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1676:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numPositiveReplSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1677:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numPositiveReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1677:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numPositiveReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1677:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numPositiveReplRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1679:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numNegativeReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1679:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numNegativeReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1679:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->dnsStats->numNegativeReplSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1680:3: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numNegativeReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1680:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numNegativeReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1680:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->dnsStats->numNegativeReplRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1689:24: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] char *ntpPktPtr = (char*)bp+hlen+sizeof(struct udphdr); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1696:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1696:58: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1696:58: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipsecSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1697:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1697:58: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1697:58: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipsecRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1735:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1735:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1735:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1736:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1736:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1736:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1739:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1739:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1739:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1740:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1740:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1740:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1746:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1746:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1746:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentLoc, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1747:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1747:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1747:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1750:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1750:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1750:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, udpSentRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1751:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1751:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1751:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, udpRcvdFromRem, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1774:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (u_char*)(bp+hlen+sizeof(struct udphdr)), ^ pbuf.c:1780:6: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] (u_char*)(bp+hlen+sizeof(struct udphdr)), ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1831:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Malformed ICMP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1831:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Malformed ICMP pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1837:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->malformedPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1838:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->malformedPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1842:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto = "ICMP"; ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1845:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1845:60: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1845:60: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1846:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1846:60: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1846:60: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1849:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *fmt = "Detected ICMP fragment [%s -> %s] (network attack attempt?)"; ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1851:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1851:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1851:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpFragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1852:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1852:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1852:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpFragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:1854:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpFragmentSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1855:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpFragmentRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1858:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, fmt, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1869:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1869:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1869:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1869:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ pbuf.c:1869:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1871:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmpPkt.icmp_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1871:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmpPkt.icmp_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1871:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmpPkt.icmp_type], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1873:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1873:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:1873:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:1873:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ pbuf.c:1873:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:1875:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmpPkt.icmp_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1875:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmpPkt.icmp_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:1875:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmpPkt.icmp_type], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1911:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Detected ICMP msg [type=%s/code=%d] %s->%s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1911:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Detected ICMP msg [type=%s/code=%d] %s->%s", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1934:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Smurf packet detected for host [%s->%s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1934:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Smurf packet detected for host [%s->%s]", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1941:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] memcpy(&dport, ((u_char *)bp+hlen+30), sizeof(dport)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1946:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1947:5: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent TCP data to a closed port of host [%s:%d] (scan attempt?)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1951:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->rejectedTCPConnSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1952:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->rejectedTCPConnRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1958:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1959:5: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent UDP data to a closed port of host [%s:%d] (scan attempt?)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1962:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->udpToClosedPortSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1963:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->udpToClosedPortRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1968:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpPortUnreachSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1969:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpPortUnreachRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1976:96: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpHostNetUnreachSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1977:96: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpHostNetUnreachRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1983:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, /* See http://www.packetfactory.net/firewalk/ */ ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1984:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] rcvd a ICMP protocol Unreachable from host [%s]" ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1989:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpProtocolUnreachSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:1990:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpProtocolUnreachRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:1996:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, /* See http://www.packetfactory.net/firewalk/ */ ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:1997:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent ICMP Administratively Prohibited packet to host [%s]" ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2001:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpAdminProhibitedSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2002:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpAdminProhibitedRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2014:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING,"Protocol violation: ICMPv6 protocol in IPv4 packet: %s->%s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2014:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING,"Protocol violation: ICMPv6 protocol in IPv4 packet: %s->%s", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2026:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Malformed ICMPv6 pkt %s->%s detected (packet too short)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2026:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Malformed ICMPv6 pkt %s->%s detected (packet too short)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2032:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->malformedPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2033:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->malformedPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2036:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto = "ICMPv6"; ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2038:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmp6Sent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2038:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6Sent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2038:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6Sent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2039:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmp6Rcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2039:61: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6Rcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2039:61: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6Rcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2042:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *fmt = "Detected ICMPv6 fragment [%s -> %s] (network attack attempt?)"; ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2044:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2044:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2044:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmp6FragmentsSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2045:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2045:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2045:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmp6FragmentsRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2047:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpFragmentSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2048:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpFragmentRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2050:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, fmt, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2061:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2061:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2061:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2061:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ pbuf.c:2061:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2064:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2064:84: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2064:84: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, icmpInfo->icmpMsgSent[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2066:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2066:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2066:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2066:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ pbuf.c:2066:71: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, icmpInfo, sizeof(IcmpHostInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2069:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2069:84: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2069:84: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, icmpInfo->icmpMsgRcvd[icmp6Pkt.icmp6_type], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2059:8: warning: variable 'dumpPacket' set but not used [-Wunused-but-set-variable] short dumpPacket = 1; ^ pbuf.c:2104:80: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] HostTraffic *router = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ pbuf.c:2113:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] memcpy(&dport, ((u_char *)bp+hlen+30), sizeof(dport)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2118:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2119:5: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent TCP data to a closed port of host [%s:%d] (scan attempt?)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2123:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->rejectedTCPConnSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2124:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->rejectedTCPConnRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2129:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2130:5: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent UDP data to a closed port of host [%s:%d] (scan attempt?)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2133:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->udpToClosedPortSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2134:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->udpToClosedPortRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2138:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpPortUnreachSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2139:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpPortUnreachRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2145:96: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpHostNetUnreachSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2146:96: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpHostNetUnreachRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2151:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, /* See http://www.packetfactory.net/firewalk/ */ ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2152:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Host [%s] sent ICMPv6 Administratively Prohibited packet to host [%s]" ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2156:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->icmpAdminProhibitedSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ pbuf.c:2157:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->icmpAdminProhibitedRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2174:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2174:122: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2174:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2174:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ pbuf.c:2174:122: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2176:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2176:93: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2176:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2176:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ pbuf.c:2176:93: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2178:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipProtosList[idx]->sent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2178:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipProtosList[idx]->sent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2178:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipProtosList[idx]->sent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2181:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2181:122: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2181:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2181:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ pbuf.c:2181:122: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, ipProtosList, (size_t)myGlobals.numIpProtosToMonitor*sizeof(ProtoTrafficInfo**)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2183:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2183:93: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2183:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2183:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ pbuf.c:2183:93: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, ipProtosList[idx], sizeof(ShortProtoTrafficInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2185:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipProtosList[idx]->rcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2185:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipProtosList[idx]->rcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2185:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipProtosList[idx]->rcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2199:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] proto = "IP (Other)"; ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2205:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2205:80: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2205:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2205:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:2205:80: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2206:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2206:80: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2206:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2206:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:2206:80: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2209:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2209:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2209:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2211:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2211:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2211:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:984:9: warning: variable 'proto' set but not used [-Wunused-but-set-variable] char *proto; ^ pbuf.c: In function 'queuePacket': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2257:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Invalid packet received. Skipped."); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2257:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Invalid packet received. Skipped."); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2297:67: warning: passing argument 2 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(tryLockMutex(&myGlobals.device[deviceId].packetProcessMutex, "queuePacket") == 0) { ^ globals-core.h:620:45: note: in definition of macro 'tryLockMutex' #define tryLockMutex(a, b) _tryLockMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2297:80: warning: passing argument 3 of '_tryLockMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(tryLockMutex(&myGlobals.device[deviceId].packetProcessMutex, "queuePacket") == 0) { ^ globals-core.h:615:13: note: expected 'char *' but argument is of type 'const char *' extern int _tryLockMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2308:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "packet truncated (%d->%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2308:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "packet truncated (%d->%d)", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2313:8: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] ((struct pcap_pkthdr*)h)->caplen = len = MAX_PACKET_LEN-1; ^ pbuf.c:2319:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[deviceId].packetProcessMutex); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2341:63: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetQueueMutex, "queuePacket"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2341:76: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetQueueMutex, "queuePacket"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2359:62: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[deviceId].packetQueueMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c: In function 'dequeuePacket': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2389:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2390:14: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "THREADMGMT[t%lu]: NPA: network packet analyzer (packet processor) thread running [p%d]", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2410:63: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetQueueMutex, "dequeuePacket"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2410:78: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetQueueMutex, "dequeuePacket"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2426:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "dequeuePacket: caplen %d != len %d\n", h.caplen, h.len); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2426:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "dequeuePacket: caplen %d != len %d\n", h.caplen, h.len); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2431:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "packet truncated (%d->%d)", h.len, MAX_PACKET_LEN); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2431:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "packet truncated (%d->%d)", h.len, MAX_PACKET_LEN); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2437:62: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[deviceId].packetQueueMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:2448:65: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetProcessMutex, "dequeuePacket"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2448:80: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.device[deviceId].packetProcessMutex, "dequeuePacket"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2450:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.device[deviceId].packetProcessMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2455:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2456:14: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "THREADMGMT[t%lu]: NPA: network packet analyzer (%s) thread terminated [p%d]", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c: In function 'flowsProcess': pbuf.c:2504:53: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] if(bpf_filter(list->fcode[deviceId].bf_insns, (u_char*)p, h->len, h->caplen)) { ^ In file included from ntop.h:515:0, from pbuf.c:25: pbuf.c: In function 'addNonIpTrafficInfo': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:2550:37: note: in expansion of macro 'calloc' nonIp = (NonIpProtoTrafficInfo*)calloc(1, sizeof(NonIpProtoTrafficInfo)); ^ pbuf.c: In function 'dumpSuspiciousPacket': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2594:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Dumped %d bytes suspicious packet", h_save->caplen); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2594:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Dumped %d bytes suspicious packet", h_save->caplen); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c: In function 'processPacket': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2725:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Packet # %u too long (len = %u)!", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2725:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Packet # %u too long (len = %u)!", ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2765:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] fddip = (struct fddi_header *)p; ^ pbuf.c:2782:23: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] memcpy((char *)&llc, (char *)p, min(caplen, sizeof(llc))); ^ pbuf.c:2806:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] anyHeader = (AnyHeader*)p; ^ pbuf.c:2869:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] trp = (struct tokenRing_header*)p; ^ pbuf.c:2880:15: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] trllc = (struct tokenRing_llc *)p; ^ pbuf.c:2974:8: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] trp = (struct tokenRing_header*)orig_p; ^ pbuf.c:2976:68: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2979:38: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (7) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2979:57: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (7) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2983:32: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-2"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:2983:53: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-2"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:2986:68: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(NULL, ether_dst, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:2989:38: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (8) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2989:57: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (8) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:2990:32: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:2994:32: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-2"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:2994:53: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-2"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:2999:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:2999:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:2999:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:2999:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:2999:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3000:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3000:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3000:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3000:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3000:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3003:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3003:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3003:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3004:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3004:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3004:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3032:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3035:40: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (9) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3035:59: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (9) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3039:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-3"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3039:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-3"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3042:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(NULL, ether_dst, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3045:40: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (10) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3045:59: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (10) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3046:34: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3050:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-3"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3050:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-3"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3055:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3055:77: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3055:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3055:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3055:77: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3056:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3056:77: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3056:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3056:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3056:77: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3060:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ pbuf.c:3061:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(NULL, ether_dst, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3065:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3065:77: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3065:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3065:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3065:77: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3066:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3066:77: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3066:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3066:4: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3066:77: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3072:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-4"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3072:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-4"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3073:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-4"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3073:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-4"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3075:11: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] p1 = (u_char*)(p+hlen); ^ pbuf.c:3078:25: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] memcpy(&llcHeader, (char*)p1, (llcLen = min(length, sizeof(llcHeader)))); ^ pbuf.c:3093:14: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] cdp = (u_char*)(p+hlen+llcLen); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:3134:25: note: in expansion of macro 'malloc' tmpStr = (char*)malloc(tmpStrLen); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:3145:25: note: in expansion of macro 'malloc' tmpStr = (char*)malloc(tmpStrLen); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:3150:28: note: in expansion of macro 'strdup' srcHost->hwModel = strdup(&tmpStr[1]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ pbuf.c:3164:28: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(":Cisco"); /* Default */ ^ pbuf.c:3164:35: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost->fingerprint = strdup(":Cisco"); /* Default */ ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3176:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->stpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3176:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->stpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3176:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->stpSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3177:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->stpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3177:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->stpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3177:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->stpRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3182:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->netbiosSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3182:78: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->netbiosSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3182:78: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->netbiosSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3183:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->netbiosRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3183:78: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->netbiosRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3183:78: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->netbiosRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3190:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->dlcSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3190:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->dlcSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3190:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->dlcSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3191:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->dlcRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3191:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->dlcRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3191:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->dlcRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3197:13: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] p1 = (u_char*)(p1+sizeof(llcHeader)); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3219:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3219:76: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3219:76: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3220:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3220:76: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3220:76: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3268:37: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] struct pppoe_hdr *pppoe_hdr=(struct pppoe_hdr *) (p+hlen); ^ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/bits/waitstatus.h:64, from /usr/include/stdlib.h:42, from ntop.h:139, from pbuf.c:25: pbuf.c:3269:30: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] int protocol=ntohs(*((int *) (p+hlen+6))); ^ pbuf.c:3287:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(NULL, ether_src, vlanId, 0, 0, actualDeviceId); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3290:40: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (11) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3290:59: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (11) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3294:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-5"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3294:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-5"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3295:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3295:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3295:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3295:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3295:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3297:36: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3302:70: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(NULL, ether_dst, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3305:40: note: in expansion of macro 'CONST_TRACE_ERROR' if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (12) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3305:59: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!lowMemoryMsgShown) traceEvent(CONST_TRACE_ERROR, "Sanity check failed (12) [Low memory?]"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3306:34: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3311:34: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-src-5"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3311:55: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-src-5"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3312:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3312:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3312:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3312:6: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3312:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3314:36: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost), unlockHostsHashMutex(dstHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3314:67: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost), unlockHostsHashMutex(dstHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3333:31: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost), unlockHostsHashMutex(dstHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3333:62: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(srcHost), unlockHostsHashMutex(dstHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3335:85: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] dstHost = lookupHost(&addr, (u_char*)&arpHdr.arp_tha, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ pbuf.c:3339:33: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-6"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3339:54: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(dstHost, "processPacket-dst-6"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3340:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3340:78: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3340:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3340:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3340:78: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3341:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->arpReplyPktsRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3341:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->arpReplyPktsRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3341:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->arpReplyPktsRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3344:85: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost = lookupHost(&addr, (u_char*)&arpHdr.arp_sha, vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ pbuf.c:3346:33: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-6"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ pbuf.c:3346:54: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(srcHost, "processPacket-src-6"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3347:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3347:78: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ pbuf.c:3347:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ pbuf.c:3347:5: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ pbuf.c:3347:78: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, nonIPTraffic, sizeof(NonIPTraffic)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3348:5: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->arpReplyPktsSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3348:75: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->arpReplyPktsSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3348:75: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->arpReplyPktsSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3356:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->arp_rarpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3356:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->arp_rarpSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3356:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->arp_rarpSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3361:8: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->arp_rarpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3361:79: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->arp_rarpRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3361:79: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->arp_rarpRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3368:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3368:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3368:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, ipv6BytesSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3369:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3369:64: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3369:64: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, ipv6BytesRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3380:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3380:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3380:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, nonIPTraffic->otherSent, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ pbuf.c:3381:6: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3381:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ pbuf.c:3381:74: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, nonIPTraffic->otherRcvd, length); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ pbuf.c:3403:45: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost) unlockHostsHashMutex(srcHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ pbuf.c:3404:45: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost) unlockHostsHashMutex(dstHost); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3434:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Resetting stats on user request..."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3434:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Resetting stats on user request..."); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ pbuf.c:3436:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "User requested stats reset complete"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ pbuf.c:3436:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "User requested stats reset complete"); ^ In file included from ntop.h:515:0, from pbuf.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c: In function 'loadPlugin': plugin.c:51:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, pluginPath, sizeof(pluginPath), "%s/%s", dirName != NULL ? dirName : ".", pluginName); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ plugin.c:51:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, pluginPath, sizeof(pluginPath), "%s/%s", dirName != NULL ? dirName : ".", pluginName); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:53:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Loading plugin '%s'", pluginPath); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:53:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Loading plugin '%s'", pluginPath); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:59:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to load plugin '%s'", pluginPath); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:59:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to load plugin '%s'", pluginPath); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:60:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Message is '%s'", dlerror()); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:60:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Message is '%s'", dlerror()); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:71:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to locate plugin '%s' entry function [%s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:71:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to locate plugin '%s' entry function [%s]", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:97:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "%s call of plugin '%s' failed", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:97:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "%s call of plugin '%s' failed", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:104:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Plugin '%s' discarded: compiled for a different ntop version", pluginName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:104:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Plugin '%s' discarded: compiled for a different ntop version", pluginName); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:105:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Expected ntop version '%s', actual plugin ntop version '%s'.", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:105:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Expected ntop version '%s', actual plugin ntop version '%s'.", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ plugin.c:111:30: note: in expansion of macro 'calloc' newFlow = (FlowFilterList*)calloc(1, sizeof(FlowFilterList)); ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:114:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Not enough memory for plugin flow filter - aborting"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:114:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Not enough memory for plugin flow filter - aborting"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ plugin.c:117:43: note: in expansion of macro 'calloc' newFlow->fcode = (struct bpf_program*)calloc(MAX_NUM_DEVICES, sizeof(struct bpf_program)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ plugin.c:118:25: note: in expansion of macro 'strdup' newFlow->flowName = strdup(pluginInfo->pluginName); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:122:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Note: Plugin '%s' has an empty BPF filter (this may not be wrong)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:122:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Note: Plugin '%s' has an empty BPF filter (this may not be wrong)", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:135:15: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Compiling filter '%s' on interface %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:135:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Compiling filter '%s' on interface %s", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:142:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Plugin '%s' contains a wrong filter specification", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:142:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Plugin '%s' contains a wrong filter specification", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:144:24: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, " \"%s\" on interface %s (%s)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:144:45: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, " \"%s\" on interface %s (%s)", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:148:24: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "The filter has been discarded"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:148:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "The filter has been discarded"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ plugin.c:149:6: note: in expansion of macro 'free' free(newFlow); ^ plugin.c:160:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, key, sizeof(key), "pluginStatus.%s", pluginInfo->pluginName); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ plugin.c:160:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, key, sizeof(key), "pluginStatus.%s", pluginInfo->pluginName); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ plugin.c:163:28: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue(key, pluginInfo->activeByDefault ? "1" : "0"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ plugin.c: In function 'loadPlugins': plugin.c:213:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, dirPath, sizeof(dirPath), "%s", myGlobals.pluginDirs[idx]); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ plugin.c:213:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, dirPath, sizeof(dirPath), "%s", myGlobals.pluginDirs[idx]); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:222:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to find the plugins/ directory"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:222:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to find the plugins/ directory"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:223:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "ntop continues OK, but without any plugins"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:223:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "ntop continues OK, but without any plugins"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:226:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Searching for plugins in %s", dirPath); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:226:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Searching for plugins in %s", dirPath); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c: In function 'unloadPlugins': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:257:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "PLUGIN_TERM: Unloading plugins (if any)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:257:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "PLUGIN_TERM: Unloading plugins (if any)"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c: In function 'startPlugins': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:295:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Calling plugin start functions (if any)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:295:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Calling plugin start functions (if any)"); ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ plugin.c:299:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Starting '%s'", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ plugin.c:299:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Starting '%s'", ^ In file included from ntop.h:515:0, from plugin.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ protocols.c: In function 'handleBootp': protocols.c:130:49: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost->vlanId, 0, 0, actualDeviceId); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:140:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:140:85: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realDstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:140:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:140:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo, sizeof(ProtocolInfo)); ^ protocols.c:140:85: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realDstHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:141:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:141:93: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realDstHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:141:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:141:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realDstHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ protocols.c:141:93: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realDstHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:143:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:143:81: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:143:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:143:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ protocols.c:143:81: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:144:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:144:89: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:144:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:144:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ protocols.c:144:89: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:167:58: note: in expansion of macro 'free' if (realDstHost->dnsDomainValue != NULL) free(realDstHost->dnsDomainValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:169:55: note: in expansion of macro 'free' if (realDstHost->dnsTLDValue != NULL) free(realDstHost->dnsTLDValue); ^ protocols.c:205:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&realDstHost->contactedRouters, trafficHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ protocols.c:248:28: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rc = safe_snprintf(__FILE__, __LINE__, tmpName, sizeof(tmpName), "%s.%s", ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:248:74: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rc = safe_snprintf(__FILE__, __LINE__, tmpName, sizeof(tmpName), "%s.%s", ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:267:91: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(realDstHost, tmpName, FLAG_HOST_SYM_ADDR_TYPE_NAME); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ protocols.c:233:11: warning: variable 'hostLen' set but not used [-Wunused-but-set-variable] int hostLen, i; ^ In file included from ntop.h:515:0, from protocols.c:42: globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:333:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:334:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:334:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:335:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:336:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:336:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:339:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:340:67: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:340:67: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:341:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:342:67: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:342:67: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:345:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:346:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:346:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:347:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:348:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:348:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:351:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:352:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:352:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:353:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:354:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:354:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:357:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:358:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:358:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:359:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:360:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:360:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:363:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:364:66: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:364:66: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:365:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:366:66: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:366:66: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:369:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:370:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:370:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:371:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:372:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:372:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:375:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:376:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:376:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:377:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:378:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:378:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:382:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realDstHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:383:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:383:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgRcvd[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:384:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:385:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:385:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ protocols.c:490:45: warning: passing argument 7 of '_lookupHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] srcHost->vlanId, 0, 0, actualDeviceId); ^ globals-core.h:211:22: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic * _lookupHost(HostAddr *hostIpAddress, u_char *ether_addr, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:501:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:501:88: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realClientHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:501:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:501:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo, sizeof(ProtocolInfo)); ^ protocols.c:501:88: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realClientHost, protocolInfo, sizeof(ProtocolInfo)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:502:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:502:96: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realClientHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ protocols.c:502:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ protocols.c:502:8: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(realClientHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ protocols.c:502:96: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(realClientHost, protocolInfo->dhcpStats, sizeof(DHCPStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ protocols.c:522:111: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(realClientHost, (char*)&bootProto.bp_vend[idx], FLAG_HOST_SYM_ADDR_TYPE_NAME); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:534:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:535:70: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:535:70: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DISCOVER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:538:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:539:67: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:539:67: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_OFFER_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:542:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:543:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:543:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_REQUEST_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:546:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:547:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:547:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_DECLINE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:550:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:551:65: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:551:65: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_ACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:554:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:555:66: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:555:66: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_NACK_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:558:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:559:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:559:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_RELEASE_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:562:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:563:68: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:563:68: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_INFORM_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ protocols.c:567:7: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(realClientHost, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:568:69: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ protocols.c:568:69: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] protocolInfo->dhcpStats->dhcpMsgSent[FLAG_DHCP_UNKNOWN_MSG], 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ protocols.c: In function 'processDNSPacket': protocols.c:664:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpBuf, sizeof(tmpBuf), "%u", ntohl(hostPtr.addrList[i])); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:664:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpBuf, sizeof(tmpBuf), "%u", ntohl(hostPtr.addrList[i])); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:599:19: warning: variable 'data_data' set but not used [-Wunused-but-set-variable] datum key_data, data_data; ^ protocols.c: In function 'handleNetbios': protocols.c:699:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] char *tmpdata = (char*)packetData + (hlen + sizeof(struct udphdr)); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:717:23: note: in expansion of macro 'malloc' data = (u_char*)malloc(udpDataLen); ^ protocols.c:746:11: warning: variable 'doDecode' set but not used [-Wunused-but-set-variable] u_int8_t doDecode = 0; ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:774:7: note: in expansion of macro 'free' free(data); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:779:23: note: in expansion of macro 'malloc' data = (u_char*)malloc(udpDataLen); ^ protocols.c:822:20: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] name = (u_char*)((char*)packetData+displ); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:851:82: note: in expansion of macro 'calloc' if(srcHost->nonIPTraffic == NULL) srcHost->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:853:4: note: in expansion of macro 'free' free(srcHost->nonIPTraffic->nbDescr); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:858:42: note: in expansion of macro 'strdup' srcHost->nonIPTraffic->nbDescr = strdup(&tmpBuffer[49]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:871:7: note: in expansion of macro 'free' free(data); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:877:23: note: in expansion of macro 'malloc' data = (u_char*)malloc(udpDataLen); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:887:75: note: in expansion of macro 'calloc' if(srcHost->nonIPTraffic == NULL) srcHost->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:888:75: note: in expansion of macro 'calloc' if(dstHost->nonIPTraffic == NULL) dstHost->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:891:40: note: in expansion of macro 'strdup' dstHost->nonIPTraffic->nbHostName = strdup(decodedStr); /* dst before src */ ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:897:40: note: in expansion of macro 'strdup' srcHost->nonIPTraffic->nbHostName = strdup(decodedStr); ^ protocols.c:914:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", &data[45]); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:914:64: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", &data[45]); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:915:29: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(buffer); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ protocols.c:925:77: note: in expansion of macro 'calloc' if(srcHost->nonIPTraffic == NULL) srcHost->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:926:92: note: in expansion of macro 'strdup' if(srcHost->nonIPTraffic->nbAccountName == NULL) srcHost->nonIPTraffic->nbAccountName = strdup((char*)&data[i]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:935:90: note: in expansion of macro 'strdup' if(srcHost->nonIPTraffic->nbDomainName == NULL) srcHost->nonIPTraffic->nbDomainName = strdup((char*)&data[i]); ^ protocols.c:944:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", &data[i]); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ protocols.c:944:64: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", &data[i]); ^ In file included from ntop.h:515:0, from protocols.c:42: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ protocols.c:945:29: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(buffer); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ protocols.c:950:7: note: in expansion of macro 'free' free(data); ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o sessions.lo sessions.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c sessions.c -fPIC -DPIC -o .libs/sessions.o /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o term.lo term.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c term.c -fPIC -DPIC -o .libs/term.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c plugin.c -o plugin.o >/dev/null 2>&1 prefs.c:65:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] static char* short_options = "46a:bcde:f:ghi:jl:m:n:op:qr:st:u:w:x:zAB:C:D:F:IKLM" ^ prefs.c: In function 'loadPrefs': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:182:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "NOTE: Processing parameters (pass1)"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:182:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "NOTE: Processing parameters (pass1)"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:193:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-u | --user"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:194:47: note: in expansion of macro 'free' if(myGlobals.effectiveUserName != NULL) free(myGlobals.effectiveUserName); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:195:37: note: in expansion of macro 'strdup' myGlobals.effectiveUserName = strdup(optarg); ^ prefs.c:221:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-P | --db-file-path"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:222:36: note: in expansion of macro 'free' if(myGlobals.dbPath != NULL) free(myGlobals.dbPath); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:224:26: note: in expansion of macro 'strdup' myGlobals.dbPath = strdup(optarg); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:235:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "NOTE: No preferences file to read from - continuing"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:235:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "NOTE: No preferences file to read from - continuing"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:239:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "NOTE: Reading preferences file entries"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:239:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "NOTE: Reading preferences file entries"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:240:42: warning: passing argument 2 of 'ntop_gdbm_firstkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = gdbm_firstkey(myGlobals.prefsFile); ^ globals-core.h:358:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_firstkey(GDBM_FILE g, char* theFile, int theLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:1016:13: note: in expansion of macro 'malloc' ptr = malloc(sz + 1); \ ^ prefs.c:243:5: note: in expansion of macro 'zeroPadMallocString' zeroPadMallocString(key.dsize, key.dptr); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ globals-core.h:1019:7: note: in expansion of macro 'free' free(_zeropadmallocstringtemp); \ ^ prefs.c:243:5: note: in expansion of macro 'zeroPadMallocString' zeroPadMallocString(key.dsize, key.dptr); ^ prefs.c:249:53: warning: passing argument 3 of 'ntop_gdbm_nextkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_nextkey (myGlobals.prefsFile, key); ^ globals-core.h:359:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_nextkey(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:250:5: note: in expansion of macro 'free' free (key.dptr); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:256:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled from prefs file"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:256:45: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled from prefs file"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:258:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge enabled from prefs file"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:258:45: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge enabled from prefs file"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:176:8: warning: variable 'userSpecified' set but not used [-Wunused-but-set-variable] bool userSpecified = FALSE; ^ In file included from ntop.h:515:0, from prefs.c:24: prefs.c: In function 'readPcapFileList': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ prefs.c:276:30: note: in expansion of macro 'malloc' fl = (struct fileList*)malloc(sizeof(struct fileList)); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:279:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Not enough memory parsing -f argument"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:279:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Not enough memory parsing -f argument"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:284:22: note: in expansion of macro 'strdup' fl->fileName = strdup(&line[idx]); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:285:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "'%s'", fl->fileName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:285:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "'%s'", fl->fileName); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:288:2: note: in expansion of macro 'free' free(fl); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:289:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Not enough memory parsing -f argument"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:289:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Not enough memory parsing -f argument"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:296:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Skipping pcap file %s: '%s'", fl->fileName, ebuf); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:296:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Skipping pcap file %s: '%s'", fl->fileName, ebuf); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:297:2: note: in expansion of macro 'free' free(fl->fileName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:298:2: note: in expansion of macro 'free' free(fl); ^ prefs.c: In function 'parseOptions': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:345:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "NOTE: Processing parameters (pass2)"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:345:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "NOTE: Processing parameters (pass2)"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:362:31: warning: passing argument 2 of 'pathSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pathSanityCheck(optarg, "-a | --access-log-file"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:652:13: note: expected 'char *' but argument is of type 'const char *' extern void pathSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:363:45: note: in expansion of macro 'strdup' myGlobals.runningPref.accessLogFile = strdup(optarg); ^ prefs.c:400:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-i | --interface"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:402:39: note: in expansion of macro 'strdup' myGlobals.runningPref.devices = strdup(optarg); ^ prefs.c:410:31: warning: passing argument 2 of 'pathSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pathSanityCheck(optarg, "-l | --pcap-log"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:652:13: note: expected 'char *' but argument is of type 'const char *' extern void pathSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:411:39: note: in expansion of macro 'strdup' myGlobals.runningPref.pcapLog = strdup(optarg); ^ prefs.c:415:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-m | --local-subnets"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:416:46: note: in expansion of macro 'strdup' myGlobals.runningPref.localAddresses = strdup(optarg); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:422:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Invalid value for -n: setting it to 0"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:422:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Invalid value for -n: setting it to 0"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:432:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-p | --protocols"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:433:42: note: in expansion of macro 'strdup' myGlobals.runningPref.protoSpecs = strdup(optarg); ^ prefs.c:461:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-u | --user"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:462:37: note: in expansion of macro 'strdup' myGlobals.effectiveUserName = strdup(optarg); ^ prefs.c:487:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-w | --http-server"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ prefs.c:517:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-B | --filter-expression"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:519:50: note: in expansion of macro 'strdup' myGlobals.runningPref.currentFilterExpression = strdup(optarg); ^ prefs.c:523:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-C | --sampling-rate"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ prefs.c:528:30: warning: passing argument 2 of 'uriSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] uriSanityCheck(optarg, "-D | --domain", FALSE); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:651:13: note: expected 'char *' but argument is of type 'const char *' extern void uriSanityCheck(char* string, char* parm, int allowParms); ^ prefs.c:533:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-F | --flow-spec"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:534:41: note: in expansion of macro 'strdup' myGlobals.runningPref.flowSpecs = strdup(optarg); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:551:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled due to command line switch"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:551:45: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "NOTE: Interface merge disabled due to command line switch"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:555:31: warning: passing argument 2 of 'pathSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pathSanityCheck(optarg, "-O | --output-packet-path"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:652:13: note: expected 'char *' but argument is of type 'const char *' extern void pathSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:556:48: note: in expansion of macro 'strdup' myGlobals.runningPref.pcapLogBasePath = strdup(optarg); ^ prefs.c:560:31: warning: passing argument 2 of 'pathSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pathSanityCheck(optarg, "-P | --db-file-path"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:652:13: note: expected 'char *' but argument is of type 'const char *' extern void pathSanityCheck(char* string, char* parm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:561:36: note: in expansion of macro 'free' if(myGlobals.dbPath != NULL) free(myGlobals.dbPath); ^ prefs.c:564:15: warning: passing argument 1 of 'mkdir_p' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] mkdir_p("dbPath", optarg, 0777); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:803:13: note: expected 'char *' but argument is of type 'const char *' extern void mkdir_p(char *tag, char *path, int permission); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:565:26: note: in expansion of macro 'strdup' myGlobals.dbPath = strdup(optarg); ^ prefs.c:569:31: warning: passing argument 2 of 'pathSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pathSanityCheck(optarg, "-Q | --spool-file-path" ); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:652:13: note: expected 'char *' but argument is of type 'const char *' extern void pathSanityCheck(char* string, char* parm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:570:39: note: in expansion of macro 'free' if(myGlobals.spoolPath != NULL) free(myGlobals.spoolPath); ^ prefs.c:572:15: warning: passing argument 1 of 'mkdir_p' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] mkdir_p("spoolPath", optarg, 0777); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:803:13: note: expected 'char *' but argument is of type 'const char *' extern void mkdir_p(char *tag, char *path, int permission); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:573:29: note: in expansion of macro 'strdup' myGlobals.spoolPath = strdup(optarg); ^ prefs.c:577:30: warning: passing argument 2 of 'uriSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] uriSanityCheck(optarg, "-U | --mapper", TRUE); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:651:13: note: expected 'char *' but argument is of type 'const char *' extern void uriSanityCheck(char* string, char* parm, int allowParms); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:578:41: note: in expansion of macro 'strdup' myGlobals.runningPref.mapperURL = strdup(optarg); ^ prefs.c:595:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "-W | --https-server"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ prefs.c:636:28: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "--use-syslog"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ prefs.c:661:35: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "--set-admin-password"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:662:12: note: in expansion of macro 'strdup' adminPw = strdup(optarg); ^ prefs.c:675:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "--p3pcp"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:676:37: note: in expansion of macro 'strdup' myGlobals.runningPref.P3Pcp = strdup(optarg); ^ prefs.c:680:30: warning: passing argument 2 of 'uriSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] uriSanityCheck(optarg, "--p3puri", FALSE); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:651:13: note: expected 'char *' but argument is of type 'const char *' extern void uriSanityCheck(char* string, char* parm, int allowParms); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:681:38: note: in expansion of macro 'strdup' myGlobals.runningPref.P3Puri = strdup(optarg); ^ prefs.c:691:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "--instance"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:692:40: note: in expansion of macro 'strdup' myGlobals.runningPref.instance = strdup(optarg); ^ prefs.c:697:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fileName, sizeof(fileName), ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:698:23: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s_" CONST_NTOP_LOGO, ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:700:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:701:23: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s/html/%s", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:709:40: note: in expansion of macro 'strdup' myGlobals.runningPref.logo = strdup(fileName); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:715:20: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Cannot find per-instance logo '%s', ignored...", fileName); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:715:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Cannot find per-instance logo '%s', ignored...", fileName); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:737:33: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(optarg, "--known-subnets"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:738:44: note: in expansion of macro 'strdup' myGlobals.runningPref.knownSubnets = strdup(optarg); ^ prefs.c:761:33: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(adminPw == NULL) adminPw = "admin"; ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:806:27: note: in expansion of macro 'strdup' myGlobals.spoolPath = strdup(myGlobals.dbPath); ^ prefs.c:821:26: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pw = getpwnam(user = "nobody"); ^ prefs.c:822:41: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(pw == NULL) pw = getpwnam(user = "anonymous"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:827:32: note: in expansion of macro 'strdup' myGlobals.effectiveUserName = strdup(user); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:828:13: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "ntop will be started as user %s", user); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:828:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "ntop will be started as user %s", user); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c: In function 'fetchGdbmValue': prefs.c:865:44: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] data_data = gdbm_fetch(gdbmfile, key_data); ^ globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:873:5: note: in expansion of macro 'free' free(data_data.dptr); ^ prefs.c: In function 'storeGdbmValue': prefs.c:921:60: warning: passing argument 5 of 'ntop_gdbm_store' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(gdbm_store(gdbmfile, key_data, data_data, GDBM_REPLACE) != 0) ^ globals-core.h:361:14: note: expected 'char *' but argument is of type 'const char *' extern int ntop_gdbm_store(GDBM_FILE g, datum d, datum v, int r, char* theFile, int theLine); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:922:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "While adding %s=%s.", key, value); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:922:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "While adding %s=%s.", key, value); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c: In function 'delGdbmValue': prefs.c:966:36: warning: passing argument 3 of 'ntop_gdbm_delete' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(gdbm_delete(gdbmfile, key_data) != 0) { ^ globals-core.h:357:14: note: expected 'char *' but argument is of type 'const char *' extern int ntop_gdbm_delete(GDBM_FILE g, datum d, char* theFile, int theLine); ^ prefs.c: In function 'processStrPref': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:1002:7: note: in expansion of macro 'free' free (*globalVar); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1006:16: note: in expansion of macro 'strdup' *globalVar = strdup(value); ^ prefs.c:1017:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpValue, sizeof(tmpValue), ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1018:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s,%s", *globalVar, value); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:1020:2: note: in expansion of macro 'free' free(*globalVar); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1021:15: note: in expansion of macro 'strdup' *globalVar = strdup (tmpValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:1028:7: note: in expansion of macro 'free' free (*globalVar); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1033:20: note: in expansion of macro 'strdup' *globalVar = strdup (value); ^ prefs.c: In function 'processIntPref': prefs.c:1048:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d", *globalVar); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1048:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d", *globalVar); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c: In function 'processBoolPref': prefs.c:1062:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1063:6: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%d", value); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c: In function 'processNtopPref': prefs.c:1085:27: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(value == NULL) value = ""; /* Safer */ ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2641:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DEVICES "ntop.devices" ^ prefs.c:1095:22: note: in expansion of macro 'NTOP_PREF_DEVICES' processStrPref(NTOP_PREF_DEVICES, value, &pref->devices, savePref); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2642:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_FILTER "ntop.currentFilterExpression" ^ prefs.c:1097:20: note: in expansion of macro 'NTOP_PREF_FILTER' processStrPref(NTOP_PREF_FILTER, value, &pref->currentFilterExpression, savePref); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2643:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_SAMPLING "ntop.sampleRate" ^ prefs.c:1100:20: note: in expansion of macro 'NTOP_PREF_SAMPLING' processIntPref(NTOP_PREF_SAMPLING, value, &sampleRate, savePref); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ sessions.c: In function '_checkSessionIdx': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:35:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Index error idx=%u/deviceId=%d:0-%d @ [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:35:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Index error idx=%u/deviceId=%d:0-%d @ [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c: In function 'updateHTTPVirtualHosts': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:67:49: note: in expansion of macro 'malloc' theRemHost->protocolInfo = (ProtocolInfo*)malloc(sizeof(ProtocolInfo)); ^ prefs.c:1104:32: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(value, "-w | --http-server"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:1106:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "flag -w expects a numeric argument.\n"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:91:32: note: in expansion of macro 'malloc' list = (VirtualHostList*)malloc(sizeof(VirtualHostList)); ^ prefs.c:1106:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "flag -w expects a numeric argument.\n"); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:92:31: note: in expansion of macro 'strdup' list->virtualHostName = strdup(virtualHostName); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1119:18: note: in expansion of macro 'strdup' pref->webAddr = strdup (value); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2644:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_WEBPORT "ntop.webPort" ^ prefs.c:1122:17: note: in expansion of macro 'NTOP_PREF_WEBPORT' processIntPref(NTOP_PREF_WEBPORT, value, &pref->webPort, savePref); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ prefs.c:1125:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c: In function 'updateHostUsers': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:129:2: note: in expansion of macro 'free' free(list->userName); ^ prefs.c:1125:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:130:2: note: in expansion of macro 'free' free(list); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2644:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_WEBPORT "ntop.webPort" ^ prefs.c:1128:22: note: in expansion of macro 'NTOP_PREF_WEBPORT' processIntPref(NTOP_PREF_WEBPORT, value, &pref->webPort, savePref); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:144:63: note: in expansion of macro 'calloc' if(theHost->protocolInfo == NULL) theHost->protocolInfo = calloc(1, sizeof(ProtocolInfo)); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ prefs.c:1134:32: warning: passing argument 2 of 'stringSanityCheck' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] stringSanityCheck(value, "-W | --https-server"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:650:13: note: expected 'char *' but argument is of type 'const char *' extern void stringSanityCheck(char* string, char* parm); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:158:25: note: in expansion of macro 'malloc' list = (UserList*)malloc(sizeof(UserList)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:159:24: note: in expansion of macro 'strdup' list->userName = strdup(userName); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:1136:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "flag -W expects a numeric argument.\n"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:1136:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "flag -W expects a numeric argument.\n"); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1140:16: note: in expansion of macro 'strdup' tmpStr = strdup (value); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2645:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_SSLPORT "ntop.sslPort" ^ prefs.c:1152:17: note: in expansion of macro 'NTOP_PREF_SSLPORT' processIntPref(NTOP_PREF_SSLPORT, value, &pref->sslPort, savePref); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:1154:7: note: in expansion of macro 'free' free(tmpStr); ^ prefs.c:1157:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1157:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2645:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_SSLPORT "ntop.sslPort" ^ prefs.c:1160:22: note: in expansion of macro 'NTOP_PREF_SSLPORT' processIntPref(NTOP_PREF_SSLPORT, value, &pref->sslPort, savePref); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ sessions.c: In function 'freeSession': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:259:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) freeSession()", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:259:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) freeSession()", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:265:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Either initiator or remote peer is NULL"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:265:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Either initiator or remote peer is NULL"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2646:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_EN_SESSION "ntop.enableSessionHandling" ^ prefs.c:1165:21: note: in expansion of macro 'NTOP_PREF_EN_SESSION' processBoolPref(NTOP_PREF_EN_SESSION, value2bool(value), ^ sessions.c:285:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *fmt = "Detected TCP connection with no data exchanged " ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c:292:102: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&theHost->secHostPkts->closedEmptyTCPConnSent, theRemHost, actualDeviceId); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:293:103: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&theHost->secHostPkts->terminatedTCPConnServer, theRemHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:296:102: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&theRemHost->secHostPkts->closedEmptyTCPConnRcvd, theHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:297:103: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&theRemHost->secHostPkts->terminatedTCPConnClient, theHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:303:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, fmt, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:328:5: note: in expansion of macro 'free' free(sessionToPurge->virtualPeerName); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2647:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_EN_PROTO_DECODE "ntop.enablePacketDecoding" ^ prefs.c:1168:21: note: in expansion of macro 'NTOP_PREF_EN_PROTO_DECODE' processBoolPref(NTOP_PREF_EN_PROTO_DECODE, value2bool(value), ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:331:5: note: in expansion of macro 'free' free(sessionToPurge->session_info); ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:334:5: note: in expansion of macro 'free' free(sessionToPurge->guessed_protocol); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:351:3: note: in expansion of macro 'free' free(sessionToPurge); ^ sessions.c: In function 'scanTimedoutTCPSessions': sessions.c:392:57: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.tcpSessionsMutex[mutex_idx], "purgeIdleHosts"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:392:73: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.tcpSessionsMutex[mutex_idx], "purgeIdleHosts"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:400:20: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) scanTimedoutTCPSessions()", ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2648:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_FLOWSPECS "ntop.flowSpecs" ^ prefs.c:1171:20: note: in expansion of macro 'NTOP_PREF_FLOWSPECS' processStrPref(NTOP_PREF_FLOWSPECS, value, &pref->flowSpecs, savePref); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:400:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) scanTimedoutTCPSessions()", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:443:17: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Internal error: pointer inconsistency"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:443:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Internal error: pointer inconsistency"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:455:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.tcpSessionsMutex[mutex_idx]); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ sessions.c: In function 'handleFTPSession': In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2649:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_LOCALADDR "ntop.localAddresses" ^ prefs.c:1173:20: note: in expansion of macro 'NTOP_PREF_LOCALADDR' processStrPref(NTOP_PREF_LOCALADDR, value, &pref->localAddresses, ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:484:24: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:485:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handleFTPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:485:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handleFTPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2650:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_KNOWNSUBNETS "ntop.knownSubnetworks" ^ prefs.c:1176:20: note: in expansion of macro 'NTOP_PREF_KNOWNSUBNETS' processStrPref(NTOP_PREF_KNOWNSUBNETS, value, &pref->knownSubnets, ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2652:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_STICKY_HOSTS "ntop.stickyHosts" ^ prefs.c:1179:21: note: in expansion of macro 'NTOP_PREF_STICKY_HOSTS' processBoolPref(NTOP_PREF_STICKY_HOSTS, value2bool(value), &pref->stickyHosts, ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:506:5: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handleSMTPSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:530:24: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:531:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handleSMTPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:531:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handleSMTPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2653:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_TRACK_LOCAL "ntop.trackOnlyLocalHosts" ^ prefs.c:1182:21: note: in expansion of macro 'NTOP_PREF_TRACK_LOCAL' processBoolPref(NTOP_PREF_TRACK_LOCAL, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:569:5: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handlePOPSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:591:24: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:592:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handlePOPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:592:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handlePOPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2654:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_NO_PROMISC "ntop.disablePromiscuousMode" ^ prefs.c:1185:21: note: in expansion of macro 'NTOP_PREF_NO_PROMISC' processBoolPref(NTOP_PREF_NO_PROMISC, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2655:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DAEMON "ntop.daemonMode" ^ prefs.c:1188:21: note: in expansion of macro 'NTOP_PREF_DAEMON' processBoolPref(NTOP_PREF_DAEMON, value2bool(value), &pref->daemonMode, ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:613:5: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handleIMAPSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:636:24: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:637:19: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handleIMAPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:637:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handleIMAPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:1192:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1192:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2656:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_REFRESH_RATE "ntop.refreshRate" ^ prefs.c:1196:20: note: in expansion of macro 'NTOP_PREF_REFRESH_RATE' processIntPref(NTOP_PREF_REFRESH_RATE, value, &pref->refreshRate, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:667:5: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handleAsteriskSession': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:702:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "-------------------------"); ^ prefs.c:1200:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:702:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "-------------------------"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:1200:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:703:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "[Class=%d][SubClass=%d]", header->frame_class, header->frame_subclass); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2657:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_MAXLINES "ntop.maxNumLines" ^ prefs.c:1204:20: note: in expansion of macro 'NTOP_PREF_MAXLINES' processIntPref(NTOP_PREF_MAXLINES, value, &pref->maxNumLines, ^ sessions.c:703:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "[Class=%d][SubClass=%d]", header->frame_class, header->frame_subclass); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:743:23: note: in expansion of macro 'CONST_TRACE_WARNING' if(debug) traceEvent(CONST_TRACE_WARNING, "\t[Id=%d][Len=%d][%s]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:743:44: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(debug) traceEvent(CONST_TRACE_WARNING, "\t[Id=%d][Len=%d][%s]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:750:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "-------------------------"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:750:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "-------------------------"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2658:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_W3C "ntop.w3c" ^ prefs.c:1207:21: note: in expansion of macro 'NTOP_PREF_W3C' processBoolPref(NTOP_PREF_W3C, value2bool(value), &pref->w3c, savePref); ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c:763:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, logStr, sizeof(logStr), ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:764:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s <%s> -> <%s>", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:767:29: note: in expansion of macro 'strdup' theSession->session_info = strdup(logStr); ^ sessions.c: In function 'handleSIPSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:791:26: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:792:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "handleSIPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:792:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "handleSIPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2661:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_IPV4V6 "ntop.ipv4orv6" ^ prefs.c:1209:20: note: in expansion of macro 'NTOP_PREF_IPV4V6' processIntPref(NTOP_PREF_IPV4V6, value, &pref->ipv4or6, savePref); ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2662:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DOMAINNAME "ntop.domainName" ^ prefs.c:1211:20: note: in expansion of macro 'NTOP_PREF_DOMAINNAME' processStrPref(NTOP_PREF_DOMAINNAME, value, &tmpStr, ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ prefs.c:1215:7: note: in expansion of macro 'free' free (tmpStr); /* alloc'd in processStrPref() */ ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2663:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_NUMERIC_IP "ntop.numericFlag" ^ prefs.c:1218:20: note: in expansion of macro 'NTOP_PREF_NUMERIC_IP' processIntPref(NTOP_PREF_NUMERIC_IP, value, (int*)&pref->numericFlag, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2664:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_PROTOSPECS "ntop.protoSpecs" ^ prefs.c:1221:20: note: in expansion of macro 'NTOP_PREF_PROTOSPECS' processStrPref(NTOP_PREF_PROTOSPECS, value, &pref->protoSpecs, ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2665:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_P3PCP "ntop.P3Pcp" ^ prefs.c:1224:20: note: in expansion of macro 'NTOP_PREF_P3PCP' processStrPref(NTOP_PREF_P3PCP, value, &pref->P3Pcp, savePref); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2666:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_P3PURI "ntop.P3Puri" ^ prefs.c:1226:20: note: in expansion of macro 'NTOP_PREF_P3PURI' processStrPref(NTOP_PREF_P3PURI, value, &pref->P3Puri, savePref); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ prefs.c:1229:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1229:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2668:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_MAXHASH "ntop.maxNumHashEntries" ^ prefs.c:1233:20: note: in expansion of macro 'NTOP_PREF_MAXHASH' processIntPref(NTOP_PREF_MAXHASH, value, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ prefs.c:1237:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1237:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2669:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_MAXSESSIONS "ntop.maxNumSessions" ^ prefs.c:1241:20: note: in expansion of macro 'NTOP_PREF_MAXSESSIONS' processIntPref(NTOP_PREF_MAXSESSIONS, value, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ sessions.c:845:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s called %s", from, to); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:845:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s called %s", from, to); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:846:31: note: in expansion of macro 'strdup' theSession->session_info = strdup(tmpStr); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2670:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_MERGEIF "ntop.mergeInterfaces" ^ prefs.c:1244:21: note: in expansion of macro 'NTOP_PREF_MERGEIF' processBoolPref(NTOP_PREF_MERGEIF, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:874:7: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handleSCCPSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:903:26: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:904:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "handleSCCPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:904:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "handleSCCPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2670:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_MERGEIF "ntop.mergeInterfaces" ^ prefs.c:1247:21: note: in expansion of macro 'NTOP_PREF_MERGEIF' processBoolPref(NTOP_PREF_MERGEIF, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c:926:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, caller, sizeof(caller), "%s <%s>", calling_party_name, calling_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:926:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, caller, sizeof(caller), "%s <%s>", calling_party_name, calling_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:928:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, caller, sizeof(caller), "%s", calling_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:928:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, caller, sizeof(caller), "%s", calling_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:931:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, called, sizeof(called), "%s <%s>", called_party_name, called_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:931:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, called, sizeof(called), "%s <%s>", called_party_name, called_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:933:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, called, sizeof(called), "%s", called_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:933:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, called, sizeof(called), "%s", called_party); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2671:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_ENABLE_L7PROTO "ntop.enableL7Proto" ^ prefs.c:1250:21: note: in expansion of macro 'NTOP_PREF_ENABLE_L7PROTO' processBoolPref(NTOP_PREF_ENABLE_L7PROTO, value2bool(value), ^ sessions.c:938:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s called %s", caller, called); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c:938:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "%s called %s", caller, called); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:939:29: note: in expansion of macro 'strdup' theSession->session_info = strdup(tmpStr); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:952:7: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'handleMsnMsgrSession': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:967:24: note: in expansion of macro 'malloc' if((rcStr = (u_char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:968:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handleMsnMsgrSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:968:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handleMsnMsgrSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2672:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_NO_TRUST_MAC "ntop.dontTrustMACaddr" ^ prefs.c:1253:21: note: in expansion of macro 'NTOP_PREF_NO_TRUST_MAC' processBoolPref(NTOP_PREF_NO_TRUST_MAC, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2673:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_PCAP_LOGBASE "ntop.pcapLogBasePath" ^ prefs.c:1256:20: note: in expansion of macro 'NTOP_PREF_PCAP_LOGBASE' processStrPref(NTOP_PREF_PCAP_LOGBASE, value, ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2674:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DBG_MODE "ntop.debugMode" ^ prefs.c:1260:21: note: in expansion of macro 'NTOP_PREF_DBG_MODE' processBoolPref(NTOP_PREF_DBG_MODE, value2bool(value), &pref->debugMode, ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ prefs.c:1264:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:993:5: note: in expansion of macro 'free' free(rcStr); ^ prefs.c:1264:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2675:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_TRACE_LVL "ntop.traceLevel" ^ prefs.c:1268:20: note: in expansion of macro 'NTOP_PREF_TRACE_LVL' processIntPref(NTOP_PREF_TRACE_LVL, value, &pref->traceLevel, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ sessions.c: In function 'handleHTTPSSession': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1050:21: note: in expansion of macro 'strdup' vhost_name = strdup(buffer); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2676:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DUMP_OTHER "ntop.enableOtherPacketDump" ^ prefs.c:1271:21: note: in expansion of macro 'NTOP_PREF_DUMP_OTHER' processBoolPref(NTOP_PREF_DUMP_OTHER, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1103:21: note: in expansion of macro 'strdup' vhost_name = strdup(buffer); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:1121:7: note: in expansion of macro 'free' free(vhost_name); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2677:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_DUMP_SUSP "ntop.enableSuspiciousPacketDump" ^ prefs.c:1274:21: note: in expansion of macro 'NTOP_PREF_DUMP_SUSP' processBoolPref(NTOP_PREF_DUMP_SUSP, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c: In function 'handleHTTPSession': globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1162:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2678:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_ACCESS_LOG "ntop.accessLogFile" ^ prefs.c:1277:20: note: in expansion of macro 'NTOP_PREF_ACCESS_LOG' processStrPref(NTOP_PREF_ACCESS_LOG, value, ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ sessions.c:1162:114: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1162:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1162:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ sessions.c:1162:114: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1163:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ prefs.c:1284:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ sessions.c:1163:114: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ prefs.c:1284:60: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, buf, sizeof(buf), "%d", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1163:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2679:42: warning: passing argument 1 of 'processIntPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_USE_SYSLOG "ntop.useSyslog" ^ prefs.c:1288:20: note: in expansion of macro 'NTOP_PREF_USE_SYSLOG' processIntPref(NTOP_PREF_USE_SYSLOG, value, ^ prefs.c:1039:6: note: expected 'char *' but argument is of type 'const char *' void processIntPref(char *key, char *value, int *globalVar, bool savePref) ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1163:41: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ sessions.c:1163:114: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1166:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1166:91: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1166:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2680:42: warning: passing argument 1 of 'processStrPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_PCAP_LOG "ntop.pcapLog" ^ prefs.c:1293:20: note: in expansion of macro 'NTOP_PREF_PCAP_LOG' processStrPref(NTOP_PREF_PCAP_LOG, value, &pref->pcapLog, savePref); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1166:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ prefs.c:992:6: note: expected 'char *' but argument is of type 'const char *' void processStrPref(char *key, char *value, char **globalVar, bool savePref) ^ sessions.c:1166:91: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1167:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1167:91: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1167:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1167:7: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ In file included from ntop.h:511:0, from prefs.c:24: globals-defines.h:2681:42: warning: passing argument 1 of 'processBoolPref' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define NTOP_PREF_NO_MUTEX_EXTRA "ntop.disableMutexExtraInfo" ^ prefs.c:1295:21: note: in expansion of macro 'NTOP_PREF_NO_MUTEX_EXTRA' processBoolPref(NTOP_PREF_NO_MUTEX_EXTRA, value2bool(value), ^ prefs.c:1055:6: note: expected 'char *' but argument is of type 'const char *' void processBoolPref(char *key, bool value, bool *globalVar, bool savePref) ^ sessions.c:1167:91: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1172:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numPositiveReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1172:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numPositiveReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1172:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numPositiveReplSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1173:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numPositiveReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1173:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numPositiveReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ prefs.c:1299:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unknown preference: %s, value = %s\n", ^ sessions.c:1173:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numPositiveReplRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1175:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numNegativeReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ prefs.c:1299:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unknown preference: %s, value = %s\n", ^ In file included from ntop.h:515:0, from prefs.c:24: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1175:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numNegativeReplSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1175:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numNegativeReplSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1176:2: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numNegativeReplRcvd, 1); ^ prefs.c: In function 'initUserPrefs': globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1346:27: note: in expansion of macro 'strdup' pref->pcapLogBasePath = strdup(CFG_DBFILE_DIR); ^ sessions.c:1176:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numNegativeReplRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ config.h:17:24: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CFG_DBFILE_DIR "/var/lib/ntop" ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ prefs.c:1346:34: note: in expansion of macro 'CFG_DBFILE_DIR' pref->pcapLogBasePath = strdup(CFG_DBFILE_DIR); ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ prefs.c:1349:19: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] pref->mapperURL = DEFAULT_NTOP_MAPPER_URL; ^ sessions.c:1176:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numNegativeReplRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1215:26: note: in expansion of macro 'malloc' if((rcStr = (char*)malloc(packetDataLength+1)) == NULL) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1216:14: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent (CONST_TRACE_WARNING, "handleHTTPSession: Unable to " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1216:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent (CONST_TRACE_WARNING, "handleHTTPSession: Unable to " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1241:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1241:109: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1241:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1241:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ sessions.c:1241:109: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(srcHost->protocolInfo == NULL) allocHostTrafficCounterMemory(srcHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1242:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1242:109: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1242:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1242:36: note: in expansion of macro 'allocHostTrafficCounterMemory' if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ sessions.c:1242:109: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(dstHost->protocolInfo == NULL) allocHostTrafficCounterMemory(dstHost, protocolInfo, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1245:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1245:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1245:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1245:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ sessions.c:1245:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(srcHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2727:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1246:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1246:86: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2731:80: note: in expansion of macro 'calloc' myGlobals.device[actualDeviceId].networkHost[_a_->known_subnet_id]._b_ = calloc(_c_, 1); \ ^ sessions.c:1246:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ globals-defines.h:2733:18: note: in expansion of macro 'calloc' _a_->_b_ = calloc(_c_, 1); \ ^ sessions.c:1246:2: note: in expansion of macro 'allocHostTrafficCounterMemory' allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ sessions.c:1246:86: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] allocHostTrafficCounterMemory(dstHost, protocolInfo->httpStats, sizeof(ServiceStats)); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1249:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numLocalReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1249:84: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numLocalReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1249:84: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numLocalReqSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1251:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numRemReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1251:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numRemReqSent, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1251:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(srcHost, protocolInfo->httpStats->numRemReqSent, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1255:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numLocalReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1255:84: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numLocalReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1255:84: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numLocalReqRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:2715:78: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define quickLock(_a_, _b_) accessMutex(&myGlobals.device[_b_].counterMutex, "quickLock"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-defines.h:2719:5: note: in expansion of macro 'quickLock' quickLock(_a_, actualDeviceId); \ ^ sessions.c:1257:4: note: in expansion of macro 'incrementHostTrafficCounter' incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numRemReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1257:82: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numRemReqRcvd, 1); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1257:82: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementHostTrafficCounter(dstHost, protocolInfo->httpStats->numRemReqRcvd, 1); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ sessions.c:1286:9: warning: variable 'tok1' set but not used [-Wunused-but-set-variable] char *tok1, *tok2; ^ sessions.c:1311:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", os); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ sessions.c:1311:61: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buffer, sizeof(buffer), ":%s", os); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1317:26: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(buffer); ^ sessions.c:1266:38: warning: variable 'browser' set but not used [-Wunused-but-set-variable] char *token, *tokState = NULL, *browser = NULL, *os = NULL; ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1336:38: note: in expansion of macro 'strdup' theSession->virtualPeerName = strdup(host); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1362:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "unknown protocol (no HTTP) detected (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1362:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "unknown protocol (no HTTP) detected (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:1372:7: note: in expansion of macro 'free' free(rcStr); ^ sessions.c: In function 'tcpSessionSecurityChecks': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1430:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "HTTP detected at wrong port (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1430:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "HTTP detected at wrong port (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1440:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "FTP/SMTP detected at wrong port (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1440:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "FTP/SMTP detected at wrong port (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1450:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unknown protocol (no FTP/SMTP) detected (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1450:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unknown protocol (no FTP/SMTP) detected (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1461:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "SSH detected at wrong port (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1461:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "SSH detected at wrong port (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1471:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unknown protocol (no SSH) detected (trojan?) " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1471:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unknown protocol (no SSH) detected (trojan?) " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1492:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->establishedTCPConnSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1493:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->establishedTCPConnRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1504:99: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->establishedTCPConnSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1505:99: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->establishedTCPConnRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1507:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->synPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1508:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->synPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1511:99: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->establishedTCPConnRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1512:99: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->establishedTCPConnSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1514:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->synPktsSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1515:88: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->synPktsRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1526:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->rstAckPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1527:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->rstAckPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1537:102: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->ackXmasFinSynNullScanRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1538:102: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->ackXmasFinSynNullScanSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1542:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed ACK scan of host [%s:%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1542:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed ACK scan of host [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1550:86: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->rstPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1551:86: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->rstPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1555:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->synFinPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1556:89: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->synFinPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1560:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->finPushUrgPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1561:93: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->finPushUrgPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1565:86: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->synPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1566:86: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->synPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1570:87: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->nullPktsSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1571:87: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->nullPktsRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1585:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Detected Land Attack against host %s:%d", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1585:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Detected Land Attack against host %s:%d", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1597:91: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->rejectedTCPConnSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1598:91: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->rejectedTCPConnRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1601:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Host %s rejected TCP session from %s [%s:%d]<->[%s:%d] (port closed?)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1601:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Host %s rejected TCP session from %s [%s:%d]<->[%s:%d] (port closed?)", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1611:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->ackXmasFinSynNullScanSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1612:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->ackXmasFinSynNullScanRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1615:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed XMAS scan of host [%s:%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1615:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed XMAS scan of host [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1624:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->ackXmasFinSynNullScanSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1625:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->ackXmasFinSynNullScanRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1628:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed FIN scan of host [%s:%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1628:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed FIN scan of host [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1639:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->ackXmasFinSynNullScanRcvd, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:1640:97: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->ackXmasFinSynNullScanSent, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1643:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed NULL scan of host [%s:%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1643:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Host [%s:%d] performed NULL scan of host [%s:%d]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c: In function 'updateNetworkDelay': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1709:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1710:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "updateNetworkDelay(port=%d [idx=%d], delay=%.2f ms)", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c: In function 'updatePeersDelayStats': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1751:39: note: in expansion of macro 'calloc' peer_a->clientDelay = (NetworkDelay*)calloc(sizeof(NetworkDelay), ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1755:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Sanity check failed [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1755:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Sanity check failed [Low memory?]"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1769:39: note: in expansion of macro 'calloc' peer_a->serverDelay = (NetworkDelay*)calloc(sizeof(NetworkDelay), ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1772:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Sanity check failed [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1772:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Sanity check failed [Low memory?]"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c: In function 'handleTCPUDPSession': sessions.c:1848:55: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.tcpSessionsMutex[mutex_idx], "handleTCPUDPSession"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ sessions.c:1848:76: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.tcpSessionsMutex[mutex_idx], "handleTCPUDPSession"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1862:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Internal Error (4) (idx=%d)", idx); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1862:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Internal Error (4) (idx=%d)", idx); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:1903:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "WARNING: Max num TCP sessions (%u) reached (see -X)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1903:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "WARNING: Max num TCP sessions (%u) reached (see -X)", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:1907:58: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.tcpSessionsMutex[mutex_idx]); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:1932:36: note: in expansion of macro 'malloc' if((theSession = (IPSession*)malloc(sizeof(IPSession))) == NULL) { ^ sessions.c:1933:53: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.tcpSessionsMutex[mutex_idx]); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ sessions.c:2000:40: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] timeval_diff(&theSession->synTime, (struct timeval*)&h->ts, &theSession->serverNwDelay); ^ sessions.c:2021:45: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] timeval_diff(&theSession->synAckTime, (struct timeval*)&h->ts, &theSession->clientNwDelay); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ sessions.c:2127:19: note: in expansion of macro 'malloc' rcStr = (u_char*)malloc(len+1); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ sessions.c:2142:2: note: in expansion of macro 'free' free(rcStr); ^ sessions.c:2231:60: warning: passing argument 3 of 'addPassiveSessionInfo' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] addPassiveSessionInfo(&srcHost->hostIpAddress, (e*256+f), "Passive FTP session"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:686:13: note: expected 'char *' but argument is of type 'const char *' extern void addPassiveSessionInfo(HostAddr *theHost, u_short thePort, char *notes); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:2261:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "LATENCY: %s:%d->%s:%d [CND: %d us][SND: %d us]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2261:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "LATENCY: %s:%d->%s:%d [CND: %d us][SND: %d us]", ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:2517:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "TCP session [%s:%d]<->[%s:%d] reset by %s " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2517:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "TCP session [%s:%d]<->[%s:%d] reset by %s " ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2563:56: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.tcpSessionsMutex[mutex_idx]); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ sessions.c:2567:54: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.tcpSessionsMutex[mutex_idx]); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ sessions.c: In function 'handleSession': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:2616:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Sanity check failed (3) [Low memory?]"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2616:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Sanity check failed (3) [Low memory?]"); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2706:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *fmt = "Detected traffic [%s:%d] -> [%s:%d] on " ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:2710:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, fmt, ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ sessions.c:2722:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->udpToDiagnosticPortSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2723:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->udpToDiagnosticPortRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2726:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->tcpToDiagnosticPortSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2727:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->tcpToDiagnosticPortRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2733:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->udpToDiagnosticPortSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2734:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->udpToDiagnosticPortRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2737:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->tcpToDiagnosticPortSent, dstHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2738:95: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->tcpToDiagnosticPortRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2745:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *fmt = "Detected tiny fragment (%d bytes) " ^ sessions.c:2748:91: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&srcHost->secHostPkts->tinyFragmentSent, dstHost, actualDeviceId); ^ In file included from ntop.h:515:0, from sessions.c:25: globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ sessions.c:2749:91: warning: passing argument 4 of '_incrementUsageCounter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] incrementUsageCounter(&dstHost->secHostPkts->tinyFragmentRcvd, srcHost, actualDeviceId); ^ globals-core.h:701:12: note: expected 'char *' but argument is of type 'const char *' extern int _incrementUsageCounter(UsageCounter *counter, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ sessions.c:2753:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, fmt, packetDataLength, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o util.lo util.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c protocols.c -o protocols.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c util.c -fPIC -DPIC -o .libs/util.o /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o utildl.lo utildl.c In file included from ntop.h:515:0, from term.c:21: term.c: In function 'termIPServices': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:33:7: note: in expansion of macro 'free' free(myGlobals.udpSvc[i]->name); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:34:7: note: in expansion of macro 'free' free(myGlobals.udpSvc[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:39:2: note: in expansion of macro 'free' free(myGlobals.tcpSvc[i]->name); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:41:7: note: in expansion of macro 'free' free(myGlobals.tcpSvc[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:45:24: note: in expansion of macro 'free' if(myGlobals.udpSvc) free(myGlobals.udpSvc); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:46:24: note: in expansion of macro 'free' if(myGlobals.tcpSvc) free(myGlobals.tcpSvc); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:53:5: note: in expansion of macro 'free' free(proto->protocolName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:54:5: note: in expansion of macro 'free' free(proto); ^ term.c: In function 'termIPSessions': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ term.c:73:2: note: in expansion of macro 'free' free(session); ^ term.c: In function 'termGdbm': term.c:93:63: warning: passing argument 2 of 'ntop_gdbm_close' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(myGlobals.pwFile) { gdbm_close(myGlobals.pwFile); myGlobals.pwFile = NULL; } ^ globals-core.h:362:14: note: expected 'char *' but argument is of type 'const char *' extern void ntop_gdbm_close(GDBM_FILE g, char* theFile, int theLine); ^ term.c:94:66: warning: passing argument 2 of 'ntop_gdbm_close' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(myGlobals.prefsFile) { gdbm_close(myGlobals.prefsFile); myGlobals.prefsFile = NULL; } ^ globals-core.h:362:14: note: expected 'char *' but argument is of type 'const char *' extern void ntop_gdbm_close(GDBM_FILE g, char* theFile, int theLine); ^ term.c:95:70: warning: passing argument 2 of 'ntop_gdbm_close' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(myGlobals.macPrefixFile) { gdbm_close(myGlobals.macPrefixFile); myGlobals.macPrefixFile = NULL; } ^ globals-core.h:362:14: note: expected 'char *' but argument is of type 'const char *' extern void ntop_gdbm_close(GDBM_FILE g, char* theFile, int theLine); ^ term.c:96:72: warning: passing argument 2 of 'ntop_gdbm_close' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(myGlobals.fingerprintFile) { gdbm_close(myGlobals.fingerprintFile); myGlobals.fingerprintFile = NULL; } ^ globals-core.h:362:14: note: expected 'char *' but argument is of type 'const char *' extern void ntop_gdbm_close(GDBM_FILE g, char* theFile, int theLine); ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c utildl.c -fPIC -DPIC -o .libs/utildl.o utildl.c: In function 'getDynamicLoadPaths': utildl.c:129:49: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(env, envLen, "LD_LIBRARY_PATH "); ^ utildl.c:65:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ utildl.c:129:31: warning: passing argument 5 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(env, envLen, "LD_LIBRARY_PATH "); ^ utildl.c:64:71: note: in definition of macro 'safe_strncat' #define safe_strncat(a, b, c) _safe_strncat(__FILE__, __LINE__, a, b, c) ^ utildl.c:65:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ utildl.c:130:35: warning: passing argument 1 of '_safe_strncat' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_strncat(env, envLen, _env); ^ utildl.c:65:12: note: expected 'char *' but argument is of type 'const char *' extern int _safe_strncat(char* file, int line, ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c term.c -o term.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c utildl.c -o utildl.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o traffic.lo traffic.c /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o vendor.lo vendor.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c traffic.c -fPIC -DPIC -o .libs/traffic.o In file included from ntop.h:511:0, from util.c:25: globals-defines.h:878:45: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_VERSIONCHECK_SITE "version.ntop.org" ^ util.c:50:3: note: in expansion of macro 'CONST_VERSIONCHECK_SITE' CONST_VERSIONCHECK_SITE, ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c vendor.c -fPIC -DPIC -o .libs/vendor.o In file included from ntop.h:515:0, from util.c:25: util.c: In function '__getFirstHost': util.c:59:46: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "__getFirstHost"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ util.c:59:62: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "__getFirstHost"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:69:15: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:70:8: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Bad magic number [expected=%d/real=%d][deviceId=%d] getFirstHost()[%s/%d]", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:72:46: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c:78:46: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c:87:45: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c: In function '_getNextHost': util.c:103:46: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "getNextHost"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ util.c:103:59: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.hostsHashLockMutex, "getNextHost"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ util.c:106:47: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:114:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) getNextHost()[%s/%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:114:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Bad magic number (expected=%d/real=%d) getNextHost()[%s/%d]", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:116:49: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c:121:49: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c:128:45: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.hostsHashLockMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ util.c: In function 'copy_argv': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:563:16: note: in expansion of macro 'malloc' buf = (char*)malloc(len); ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:565:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Insufficient memory for copy_argv"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:565:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Insufficient memory for copy_argv"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'in6_isLocalAddress': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:634:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Index %u out of range [0..%u] - address treated as remote", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:634:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Index %u out of range [0..%u] - address treated as remote", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'in_isLocalAddress': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:757:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Index %u out of range [0..%u] - address treated as remote", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:757:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Index %u out of range [0..%u] - address treated as remote", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'handleAddressLists': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:925:20: note: in expansion of macro 'CONST_TRACE_NOISY' if(0) traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:926:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Processing %s parameter '%s'", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:946:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, key, sizeof(key), "subnet.name.%s", address); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:946:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, key, sizeof(key), "subnet.name.%s", address); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:959:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Bad format '%s' - ignoring entry", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:959:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Bad format '%s' - ignoring entry", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:967:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Net mask '%s' not valid - ignoring entry", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:967:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Net mask '%s' not valid - ignoring entry", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:993:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "%d.%d.%d.%d/%d is not a valid network - correcting mask", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:993:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "%d.%d.%d.%d/%d is not a valid network - correcting mask", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1004:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Assuming %d.%d.%d.%d/%d [0x%08x/0x%08x]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1004:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Assuming %d.%d.%d.%d/%d [0x%08x/0x%08x]", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1039:17: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1040:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Discarded unnecessary parameter %d.%d.%d.%d/%d - this is the local network", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1066:31: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] laBufferUsed = safe_snprintf(__FILE__, __LINE__, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:1069:10: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%d.%d.%d.%d/%d", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1087:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1088:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s: %d.%d.%d.%d/%d - Too many networks (limit %d) - discarded", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'handleLocalAddresses': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1109:28: note: in expansion of macro 'strdup' char *addresses_copy = strdup(addresses); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1114:5: note: in expansion of macro 'free' free(addresses_copy); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1118:52: note: in expansion of macro 'free' if(myGlobals.runningPref.localAddresses != NULL) free(myGlobals.runningPref.localAddresses); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1121:44: note: in expansion of macro 'strdup' myGlobals.runningPref.localAddresses = strdup(localAddresses); ^ util.c: In function 'read_file': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1130:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to read file %s", path); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1130:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to read file %s", path); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1142:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[idx], buf_len-idx-2, "%s%s", (idx > 0) ? "," : "", line); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:1142:67: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[idx], buf_len-idx-2, "%s%s", (idx > 0) ? "," : "", line); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c: In function 'handleKnownAddresses': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1166:19: note: in expansion of macro 'strdup' addresses_copy = strdup(buf); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1168:24: note: in expansion of macro 'strdup' addresses_copy = strdup(addresses); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1174:7: note: in expansion of macro 'free' free(addresses_copy); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1179:50: note: in expansion of macro 'free' if(myGlobals.runningPref.knownSubnets != NULL) free(myGlobals.runningPref.knownSubnets); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1182:42: note: in expansion of macro 'strdup' myGlobals.runningPref.knownSubnets = strdup(knownSubnets); ^ util.c: In function 'dotToSlash': util.c:1496:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s", name); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:1496:51: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, "%s", name); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c: In function 'handleFlowsSpecs': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1534:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Error while stat() of %s", flows); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1534:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Error while stat() of %s", flows); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1537:7: note: in expansion of macro 'free' free(myGlobals.runningPref.flowSpecs); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1538:41: note: in expansion of macro 'strdup' myGlobals.runningPref.flowSpecs = strdup("Error reading file"); ^ util.c:1538:48: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.runningPref.flowSpecs = strdup("Error reading file"); ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:1542:21: note: in expansion of macro 'malloc' buffer = (char*)malloc(buf.st_size+8) /* just to be safe */; ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1563:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Missing flow spec '%s'. It has been ignored.", flow); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1563:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Missing flow spec '%s'. It has been ignored.", flow); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1577:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (missing \'). " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1577:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (missing \'). " ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1583:20: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Compiling flow specification '%s'", flowSpec); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1583:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Compiling flow specification '%s'", flowSpec); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1588:22: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (syntax error). " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1588:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (syntax error). " ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ util.c:1594:38: note: in expansion of macro 'calloc' newFlow = (FlowFilterList*)calloc(1, sizeof(FlowFilterList)); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1597:32: note: in expansion of macro 'free' if(buffer != NULL) free(buffer); ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1598:24: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Fatal error: not enough memory. Bye!"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1598:48: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Fatal error: not enough memory. Bye!"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ util.c:1603:44: note: in expansion of macro 'calloc' newFlow->fcode = (struct bpf_program*)calloc(myGlobals.numDevices, sizeof(struct bpf_program)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1614:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (syntax error). " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1614:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Wrong flow specification \"%s\" (syntax error). " ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1616:5: note: in expansion of macro 'free' free(newFlow); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1619:5: note: in expansion of macro 'free' free(myGlobals.runningPref.flowSpecs); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1620:39: note: in expansion of macro 'strdup' myGlobals.runningPref.flowSpecs = strdup("Error, wrong flow specification"); ^ util.c:1620:46: warning: passing argument 1 of 'ntop_safestrdup' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] myGlobals.runningPref.flowSpecs = strdup("Error, wrong flow specification"); ^ globals-core.h:268:39: note: in definition of macro 'strdup' #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ globals-core.h:269:14: note: expected 'char *' but argument is of type 'const char *' extern char* ntop_safestrdup(char *ptr, char* file, int line); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:1626:33: note: in expansion of macro 'strdup' newFlow->flowName = strdup(flowName); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:1640:5: note: in expansion of macro 'free' free(buffer); ^ util.c: In function 'getLocalHostAddress': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1663:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "socket error: %d", errno); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1663:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "socket error: %d", errno); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'createThread': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1749:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_create(), rc = %s(%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1749:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_create(), rc = %s(%d)", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function '_killThread': util.c:1762:53: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_NOISY_TRACE_LEVEL, file, line, "THREADMGMT: killThread(0) call...ignored"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1767:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_detach(), rc = %s(%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1767:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_detach(), rc = %s(%d)", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function '_joinThread': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:1787:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_join(), rc = %s(%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:1787:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_join(), rc = %s(%d)", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function '_lockHostsHashMutex': util.c:2233:70: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] _accessMutex(&myGlobals.hostsHashMutex[host->hostTrafficBucket], "_lockHostsHashMutex", file, line); ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c: In function '_unlockHostsHashMutex': util.c:2273:70: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] _accessMutex(&myGlobals.hostsHashMutex[host->hostTrafficBucket], "_unlockHostsHashMutex", file, line); ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2277:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "NEgative decrement!"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2277:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "NEgative decrement!"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'checkCommand': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2297:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2298:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "External tool test failed(code=%d). Disabling %s function (popen failed).", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2308:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2309:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "External tool test failed(code=%d20). Disabling %s function (tool won't run).", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2316:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] rc = safe_snprintf(__FILE__, __LINE__, buf, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:2318:8: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "which %s 2>/dev/null", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2335:17: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2336:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "External tool %s is suid root. FYI: This is good for ntop, but could be dangerous for the system!", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2356:14: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c:2357:14: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "External tool test failed(code=%d%d%d). Disabling %s function%s.", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'getNwInterfaceType': util.c:2450:10: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] return((char*)pcap_datalink_val_to_description(myGlobals.device[i].datalink)); ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'resetHostsVariables': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2480:40: note: in expansion of macro 'free' if (el->dnsDomainValue != NULL) free(el->dnsDomainValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2482:40: note: in expansion of macro 'free' if (el->dnsTLDValue != NULL) free(el->dnsTLDValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2486:40: note: in expansion of macro 'free' if (el->fingerprint != NULL) free(el->fingerprint); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2488:40: note: in expansion of macro 'free' if (el->nonIPTraffic != NULL) free(el->nonIPTraffic); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2490:40: note: in expansion of macro 'free' if (el->routedTraffic != NULL) free(el->routedTraffic); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2499:38: note: in expansion of macro 'free' if(el->protoIPTrafficInfos[i]) free(el->protoIPTrafficInfos[i]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2501:5: note: in expansion of macro 'free' free(el->protoIPTrafficInfos); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2504:40: note: in expansion of macro 'free' if (el->icmpInfo != NULL) free(el->icmpInfo); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2506:40: note: in expansion of macro 'free' if (el->protocolInfo != NULL) free(el->protocolInfo); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2518:40: note: in expansion of macro 'free' if (el->secHostPkts != NULL) free(el->secHostPkts); ^ In file included from /usr/include/bits/byteswap.h:35:0, from /usr/include/endian.h:60, from /usr/include/bits/waitstatus.h:64, from /usr/include/stdlib.h:42, from ntop.h:139, from util.c:25: util.c: In function 'in_cksum': util.c:2544:19: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] sum += htons(*(u_char *)w<<8); ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'traceEvent': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:2677:15: note: in expansion of macro 'strdup' mFile = strdup(file); ^ util.c:2696:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, bufLineID, sizeof(bufLineID), "[%s:%d] ", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:2696:68: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, bufLineID, sizeof(bufLineID), "[%s:%d] ", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2712:2: note: in expansion of macro 'free' free(mFile); ^ util.c:2726:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s %s %s%s%s", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:2726:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s %s %s%s%s", ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:2751:4: note: in expansion of macro 'free' free(myGlobals.logView[myGlobals.logViewNext]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:2753:45: note: in expansion of macro 'strdup' myGlobals.logView[myGlobals.logViewNext] = strdup(buf); ^ util.c: In function 'getNewRandomFile': util.c:2969:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fileName, len, "%s-%lu", tmpFileName, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ util.c:2969:52: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fileName, len, "%s-%lu", tmpFileName, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2978:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to create temp. file (%s). ", fileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:2978:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to create temp. file (%s). ", fileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'stringSanityCheck': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:2997:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) string specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:2997:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) string specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3013:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid string specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3013:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid string specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3014:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3014:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3015:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid option string, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3015:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid option string, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3021:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Trailing slash removed from argument for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3021:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Trailing slash removed from argument for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'uriSanityCheck': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3052:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) uri specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3052:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) uri specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3087:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid uri specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3087:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid uri specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3088:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3088:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3089:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid uri, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3089:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid uri, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'pathSanityCheck': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3115:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) path specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3115:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid (empty) path specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3159:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid path/filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3159:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid path/filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3160:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3160:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3161:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid path/filename, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3161:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid path/filename, ntop shutting down..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'fileSanityCheck': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3202:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid (empty) filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3202:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid (empty) filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3254:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3254:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid filename specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3255:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3255:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'ipSanityCheck': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3278:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Invalid (empty) path specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3278:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Invalid (empty) path specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3307:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Invalid ip address specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3307:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Invalid ip address specified for option %s", parm); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3308:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3308:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Sanitized value is '%s'", string); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'deviceSanityCheck': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3342:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Invalid device specified"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3342:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Invalid device specified"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'safe_snprintf': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3383:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d", file, line); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3383:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d", file, line); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3385:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d (increase to at least %d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3385:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Buffer too short @ %s:%d (increase to at least %d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function '_safe_strncat': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3406:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "strncat buffer too short @ %s:%d (increase to at least %d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3406:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "strncat buffer too short @ %s:%d (increase to at least %d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'fillDomainName': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3425:34: note: in expansion of macro 'free' if(el->dnsDomainValue != NULL) free(el->dnsDomainValue); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3427:31: note: in expansion of macro 'free' if(el->dnsTLDValue != NULL) free(el->dnsTLDValue); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3449:23: note: in expansion of macro 'strdup' el->dnsTLDValue = strdup(&el->hostResolvedName[i+1]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3460:25: note: in expansion of macro 'strdup' el->dnsTLDValue = strdup(&(myGlobals.shortDomainName[i+1])); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3474:26: note: in expansion of macro 'strdup' el->dnsDomainValue = strdup(&el->hostResolvedName[i+1]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3476:26: note: in expansion of macro 'strdup' el->dnsDomainValue = strdup(myGlobals.shortDomainName); ^ util.c: In function 'trimString': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:3488:24: note: in expansion of macro 'malloc' char *out = (char *) malloc(sizeof(char) * (len+1)); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3514:3: note: in expansion of macro 'free' free(out); ^ util.c: In function 'setNBnodeNameType': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ util.c:3529:76: note: in expansion of macro 'calloc' if(theHost->nonIPTraffic == NULL) theHost->nonIPTraffic = (NonIPTraffic*)calloc(1, sizeof(NonIPTraffic)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3541:38: note: in expansion of macro 'strdup' theHost->nonIPTraffic->nbHostName = strdup(nbName); ^ util.c:3552:75: warning: passing argument 4 of '_setResolvedName' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setResolvedName(theHost, nbName, FLAG_HOST_SYM_ADDR_TYPE_NETBIOS); ^ globals-core.h:88:13: note: expected 'char *' but argument is of type 'const char *' extern void _setResolvedName(HostTraffic *el, char *updateValue, short updateType, char* file, int line); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3567:40: note: in expansion of macro 'strdup' theHost->nonIPTraffic->nbDomainName = strdup(nbName); ^ util.c: In function 'addSessionInfo': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3605:34: note: in expansion of macro 'free' if(ptr[i].session_info != NULL) free(ptr[i].session_info); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3607:26: note: in expansion of macro 'strdup' ptr[i].session_info = strdup(notes); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3619:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "addSessionInfo: hash full [size=%d]", ptr_len); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3619:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "addSessionInfo: hash full [size=%d]", ptr_len); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'initSessionInfo': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:3697:24: note: in expansion of macro 'malloc' *ptr = (SessionInfo*)malloc(len); ^ util.c: In function 'termPassiveSessions': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3713:5: note: in expansion of macro 'free' free(passiveSessions); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:3718:5: note: in expansion of macro 'free' free(voipSessions); ^ util.c: In function 'getAllPortByNum': util.c:3789:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outBuf, outBufLen, "%d", port); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:3789:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, outBuf, outBufLen, "%d", port); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'addPortHashEntry': globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:3817:36: note: in expansion of macro 'malloc' theSvc[idx] = (ServiceEntry*)malloc(sizeof(ServiceEntry)); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:3819:27: note: in expansion of macro 'strdup' theSvc[idx]->name = strdup(name); ^ util.c: In function 'mapIcmpType': util.c:3914:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 0: return("ECHOREPLY"); ^ util.c:3915:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 3: return("UNREACH"); ^ util.c:3916:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 4: return("SOURCEQUENCH"); ^ util.c:3917:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 5: return("REDIRECT"); ^ util.c:3918:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 8: return("ECHO"); ^ util.c:3919:17: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 9: return("ROUTERADVERT"); ^ util.c:3920:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 10: return("ROUTERSOLICI"); ^ util.c:3921:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 11: return("TIMXCEED"); ^ util.c:3922:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 12: return("PARAMPROB"); ^ util.c:3923:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 13: return("TIMESTAMP"); ^ util.c:3924:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 14: return("TIMESTAMPREPLY"); ^ util.c:3925:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 15: return("INFOREQ"); ^ util.c:3926:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 16: return("INFOREQREPLY"); ^ util.c:3927:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 17: return("MASKREQ"); ^ util.c:3928:18: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case 18: return("MASKREPLY"); ^ util.c:3930:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, icmpString, sizeof(icmpString), "%d", icmpType); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:3930:71: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, icmpString, sizeof(icmpString), "%d", icmpType); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c: In function 'checkUserIdentity': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:3987:18: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Unable to drop privileges"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:3987:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Unable to drop privileges"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4000:15: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Unable to change user"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4000:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Unable to change user"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4007:15: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "For security reasons you cannot run ntop as root - aborting"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4007:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "For security reasons you cannot run ntop as root - aborting"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4008:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Unless you really, really, know what you're doing"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4008:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Unless you really, really, know what you're doing"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4009:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Please specify the user name using the -u option!"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4009:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Please specify the user name using the -u option!"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4010:15: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "ntop shutting down for security reasons..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4010:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "ntop shutting down for security reasons..."); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4013:15: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "For security reasons you should not run ntop as root (-u)!"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4013:42: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "For security reasons you should not run ntop as root (-u)!"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4016:47: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_INITNONROOT); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4017:13: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "Now running as requested user... continuing with initialization"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4017:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "Now running as requested user... continuing with initialization"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function '_ntopSleepMSWhileSameState': util.c:4091:57: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_BEYONDNOISY_TRACE_LEVEL, file, line, "ntopSleepMS(%lu)", ulDelay); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4110:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "nanosleep({%d, %d}, )", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4117:67: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_BEYONDNOISY_TRACE_LEVEL, file, line, "ntopSleepMS() terminating due to runstate %lu remained", ulDelay); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4130:61: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_BEYONDNOISY_TRACE_LEVEL, file, line, "ntopSleepMS() terminating due to runstate %lu remained", ulDelay); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'ntopSleepUntilStateRUN': globals-defines.h:1355:76: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_BEYONDNOISY CONST_BEYONDNOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4149:14: note: in expansion of macro 'CONST_TRACE_BEYONDNOISY' traceEvent(CONST_TRACE_BEYONDNOISY, "WAIT[t%lu]: for ntopState RUN", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4149:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_BEYONDNOISY, "WAIT[t%lu]: for ntopState RUN", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1355:76: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_BEYONDNOISY CONST_BEYONDNOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4166:14: note: in expansion of macro 'CONST_TRACE_BEYONDNOISY' traceEvent(CONST_TRACE_BEYONDNOISY, "WAIT[t%lu]: ntopState is RUN", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4166:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_BEYONDNOISY, "WAIT[t%lu]: ntopState is RUN", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'numActiveSenders': util.c:4250:31: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(deviceId); ^ util.c:93:14: note: expected 'char *' but argument is of type 'const char *' HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line) { ^ util.c:4251:48: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(deviceId, el)) { ^ util.c:99:14: note: expected 'char *' but argument is of type 'const char *' HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line) { ^ util.c: In function 'setHostFingerprint': util.c:4321:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fingerprint, sizeof(fingerprint)-1, "%s", srcHost->fingerprint); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:4321:73: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, fingerprint, sizeof(fingerprint)-1, "%s", srcHost->fingerprint); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:4348:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, lineKey, sizeof(lineKey), "%d", numEntries++); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:4348:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, lineKey, sizeof(lineKey), "%d", numEntries++); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:4352:63: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] data_data = gdbm_fetch(myGlobals.fingerprintFile, key_data); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:4357:7: note: in expansion of macro 'free' free(data_data.dptr); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:4395:32: note: in expansion of macro 'free' if(srcHost->fingerprint) free(srcHost->fingerprint); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:4396:30: note: in expansion of macro 'strdup' srcHost->fingerprint = strdup(&line[28]); ^ util.c: In function 'setSpecifiedUser': globals-defines.h:1349:75: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_FATALERROR CONST_FATALERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4486:16: note: in expansion of macro 'CONST_TRACE_FATALERROR' traceEvent(CONST_TRACE_FATALERROR, "Unable to change user ID"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4486:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_FATALERROR, "Unable to change user ID"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4491:43: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_INITNONROOT); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4493:14: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "Now running as requested user '%s' (%d:%d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4493:41: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "Now running as requested user '%s' (%d:%d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'saveNtopPid': util.c:4589:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myGlobals.pidFileName, sizeof(myGlobals.pidFileName), "%s/%s", ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:4589:91: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myGlobals.pidFileName, sizeof(myGlobals.pidFileName), "%s/%s", ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4597:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "INIT: Unable to create pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4597:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "INIT: Unable to create pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4601:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "INIT: Created pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4601:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "INIT: Created pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'removeNtopPid': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4612:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "TERM: Removed pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4612:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "TERM: Removed pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4614:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "TERM: Unable to remove pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4614:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "TERM: Unable to remove pid file (%s)", myGlobals.pidFileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'displayPrivacyNotice': util.c:4743:22: warning: passing argument 1 of 'fetchPrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(fetchPrefsValue("globals.displayPrivacyNotice", value, sizeof(value)) == -1) { ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:472:12: note: expected 'char *' but argument is of type 'const char *' extern int fetchPrefsValue(char *key, char *value, int valueLen); ^ util.c:4749:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "1"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ util.c:4749:53: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "1"); ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4752:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4753:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: **********************PRIVACY**NOTICE**********************"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4754:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4755:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * ntop instances may record individually identifiable *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4756:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4757:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * information on a remote system as part of the version *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4758:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4759:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * check. *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4760:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4761:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4763:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4764:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * You have requested - via the --skip-version-check *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4765:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4766:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * option that this check be skipped and so no *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4767:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c prefs.c -o prefs.o >/dev/null 2>&1 util.c:4768:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * individually identifiable information will be recorded. *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4770:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4771:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * You may request - via the --skip-version-check option *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4772:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4773:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * that this check be skipped and that no individually *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4774:18: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4775:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * identifiable information be recorded. *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4777:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4778:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4779:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4780:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * In general, we ask you to permit this check because it *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4781:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4782:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * benefits both the users and developers of ntop. *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4783:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4784:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4785:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4786:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * Review the man ntop page for more information. *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4787:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4788:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: * *"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4789:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4790:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: **********************PRIVACY**NOTICE**********************"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'reportNtopVersionCheck': util.c:4837:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "was not checked"; ^ util.c:4839:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "an OBSOLETE and UNSUPPORTED version - please upgrade"; ^ util.c:4841:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "an UNSUPPORTED version - please upgrade"; ^ util.c:4843:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "a minimally supported but OLDER version - please upgrade"; ^ util.c:4845:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "the CURRENT stable version"; ^ util.c:4847:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "an unsupported old DEVELOPMENT version - upgrade"; ^ util.c:4849:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "the current DEVELOPMENT version - Expect the unexpected!"; ^ util.c:4851:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "a new DEVELOPMENT version - Be careful!"; ^ util.c:4853:12: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return "is UNKNOWN..."; ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'tokenizeCleanupAndAppend': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:4876:8: note: in expansion of macro 'strdup' work=strdup(input); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:4923:3: note: in expansion of macro 'free' free(work); ^ util.c: In function 'extractAndAppend': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:4933:8: note: in expansion of macro 'strdup' work=strdup(input); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:4954:3: note: in expansion of macro 'free' free(work); ^ util.c: In function 'retrieveVersionFile': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4974:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "CHKVER: Unable to resolve site %s", versSite); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4974:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "CHKVER: Unable to resolve site %s", versSite); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:4988:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:4989:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Unable to create socket: %s(%d)", strerror(errno), errno); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5004:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5005:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Unable to connect socket: %s(%d)", strerror(errno), errno); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ util.c:5013:13: note: in expansion of macro 'malloc' userAgent=malloc(LEN_GENERAL_WORK_BUFFER); ^ util.c:5015:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, userAgent, LEN_GENERAL_WORK_BUFFER, "ntop/%s", version); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5015:73: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, userAgent, LEN_GENERAL_WORK_BUFFER, "ntop/%s", version); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5060:64: warning: passing argument 3 of 'tokenizeCleanupAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tokenizeCleanupAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "config", configure_parameters); ^ util.c:4871:6: note: expected 'char *' but argument is of type 'const char *' void tokenizeCleanupAndAppend(char *userAgent, int userAgentLen, ^ util.c:5061:64: warning: passing argument 3 of 'tokenizeCleanupAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] tokenizeCleanupAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "run", myGlobals.startedAs); ^ util.c:4871:6: note: expected 'char *' but argument is of type 'const char *' void tokenizeCleanupAndAppend(char *userAgent, int userAgentLen, ^ util.c:5065:67: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "libpcap", (char*)pcap_lib_version()); ^ util.c:5065:56: warning: passing argument 3 of 'extractAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "libpcap", (char*)pcap_lib_version()); ^ util.c:4928:6: note: expected 'char *' but argument is of type 'const char *' void extractAndAppend(char *userAgent, int userAgentLen, ^ util.c:5071:56: warning: passing argument 3 of 'extractAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "gdbm", gdbm_version); ^ util.c:4928:6: note: expected 'char *' but argument is of type 'const char *' void extractAndAppend(char *userAgent, int userAgentLen, ^ util.c:5075:67: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "openssl", (char*)SSLeay_version(0)); ^ util.c:5075:56: warning: passing argument 3 of 'extractAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "openssl", (char*)SSLeay_version(0)); ^ util.c:4928:6: note: expected 'char *' but argument is of type 'const char *' void extractAndAppend(char *userAgent, int userAgentLen, ^ util.c:5078:64: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "zlib", (char*)zlibVersion()); ^ util.c:5078:56: warning: passing argument 3 of 'extractAndAppend' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] extractAndAppend(userAgent, LEN_GENERAL_WORK_BUFFER, "zlib", (char*)zlibVersion()); ^ util.c:4928:6: note: expected 'char *' but argument is of type 'const char *' void extractAndAppend(char *userAgent, int userAgentLen, ^ util.c:5111:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, small_buf, ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5112:28: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] LEN_SMALL_WORK_BUFFER, " uptime(%d)", ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5118:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, bufLen, "GET /%s HTTP/1.0\r\n" ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5118:50: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, bufLen, "GET /%s HTTP/1.0\r\n" ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:5128:3: note: in expansion of macro 'free' free(userAgent); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5131:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: Sending request: %s", buf); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5131:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: Sending request: %s", buf); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5134:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5135:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Unable to send http request: %s(%d)", strerror(errno), errno); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5152:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5153:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Unable to receive http response: %s(%d)", strerror(errno), errno); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5159:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5160:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Unable to receive entire http response (%d/%d)- skipping", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'processVersionFile': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5196:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "CHKVER: Past end processing http response"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5196:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "CHKVER: Past end processing http response"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5236:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "CHKVER: http response: Nothing"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5236:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "CHKVER: http response: Nothing"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5256:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5257:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: http response: %d - skipping check", rc); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5260:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: http response: %d", rc); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5260:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: http response: %d", rc); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5328:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5329:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: version file INVALID - ignoring version check"); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5330:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5331:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Please report to ntop mailing list, codes (%u,%u,%u,%u,%u)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5336:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CHKVER: Version file is from '%s'", site); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5336:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CHKVER: Version file is from '%s'", site); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5337:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "CHKVER: as of date is '%s'", date); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5337:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "CHKVER: as of date is '%s'", date); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5339:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: obsolete is '%-10s' (%9u)", obsolete, oNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5339:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: obsolete is '%-10s' (%9u)", obsolete, oNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5340:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: unsupported is '%-10s' (%9u)", unsupported, uNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5340:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: unsupported is '%-10s' (%9u)", unsupported, uNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5341:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: stable is '%-10s' (%9u)", stable, sNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5341:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: stable is '%-10s' (%9u)", stable, sNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5342:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: development is '%-10s' (%9u)", development, dNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5342:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: development is '%-10s' (%9u)", development, dNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5343:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "CHKVER: version is '%-10s' (%9u)", version, vNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5343:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "CHKVER: version is '%-10s' (%9u)", version, vNumber); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'checkVersion': globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5377:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5378:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: Checking current ntop version at %s/%s", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from util.c:25: globals-defines.h:879:45: warning: passing argument 2 of 'retrieveVersionFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_VERSIONCHECK_DOCUMENT "version.xml" ^ util.c:5388:48: note: in expansion of macro 'CONST_VERSIONCHECK_DOCUMENT' rc = retrieveVersionFile(versionSite[idx], CONST_VERSIONCHECK_DOCUMENT, buf, sizeof(buf)); ^ util.c:4962:5: note: expected 'char *' but argument is of type 'const char *' int retrieveVersionFile(char *versSite, char *versionFile, char *buf, int bufLen) { ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5397:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5398:4: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "CHKVER: This version of ntop is %s", reportNtopVersionCheck()); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'readInputFile': util.c:5439:25: warning: passing argument 1 of 'gzgets' from incompatible pointer type [-Wincompatible-pointer-types] getValue = gzgets(fd, buf, bufLen); ^ In file included from ntop.h:428:0, from util.c:25: /usr/include/zlib.h:1372:24: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5447:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "%s: ....%6d records read", logTag, (*recordsRead)); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5447:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "%s: ....%6d records read", logTag, (*recordsRead)); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5454:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "%s: Closing file", logTag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5454:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "%s: Closing file", logTag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5459:15: warning: passing argument 1 of 'gzclose' from incompatible pointer type [-Wincompatible-pointer-types] gzclose(fd); ^ In file included from ntop.h:428:0, from util.c:25: /usr/include/zlib.h:1511:24: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzclose OF((gzFile file)); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5466:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "%s: ...found %d lines", logTag, *recordsRead); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5466:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "%s: ...found %d lines", logTag, *recordsRead); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'checkForInputFile': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5498:33: note: in expansion of macro 'CONST_TRACE_INFO' if(logTag != NULL) traceEvent(CONST_TRACE_INFO, "%s: Checking for %s file", logTag, descr); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5498:51: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(logTag != NULL) traceEvent(CONST_TRACE_INFO, "%s: Checking for %s file", logTag, descr); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5503:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpFile, sizeof(tmpFile), ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5504:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%c%s.gz", ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5506:35: note: in expansion of macro 'CONST_TRACE_NOISY' if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: Checking '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5506:54: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: Checking '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5507:8: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] fd = gzopen(tmpFile, "r"); ^ util.c:5513:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpFile, sizeof(tmpFile), ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5514:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%c%s", ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5516:37: note: in expansion of macro 'CONST_TRACE_NOISY' if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: Checking '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5516:56: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: Checking '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5522:37: note: in expansion of macro 'CONST_TRACE_NOISY' if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: ...Found", logTag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5522:56: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(logTag != NULL) traceEvent(CONST_TRACE_NOISY, "%s: ...Found", logTag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5529:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "%s: Unable to open file '%s'", logTag, fileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5529:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "%s: Unable to open file '%s'", logTag, fileName); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5544:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "%s: Database %s created/last modified %s", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5544:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "%s: Database %s created/last modified %s", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5557:13: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "%s: Input file created/last modified %s", logTag, bufTime); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5557:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "%s: Input file created/last modified %s", logTag, bufTime); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5561:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO,"%s: File '%s' does not need to be reloaded", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5561:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO,"%s: File '%s' does not need to be reloaded", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5564:12: warning: passing argument 1 of 'gzclose' from incompatible pointer type [-Wincompatible-pointer-types] gzclose(fd); ^ In file included from ntop.h:428:0, from util.c:25: /usr/include/zlib.h:1511:24: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzclose OF((gzFile file)); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5571:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "%s: Loading newer file '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5571:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "%s: Loading newer file '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5575:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5576:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s: Unable to check file age %s(%d)", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5578:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "%s: File '%s' loading", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5578:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "%s: File '%s' loading", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:5583:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "%s: Loading file '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:5583:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "%s: Loading file '%s'", logTag, tmpFile); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'updateGeoIP': util.c:5623:52: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.geolocalizationMutex, "GeoIP_record_by_addr"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:5623:74: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.geolocalizationMutex, "GeoIP_record_by_addr"); ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:5625:51: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.geolocalizationMutex); ^ util.c:2031:5: note: expected 'char *' but argument is of type 'const char *' int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine) { ^ In file included from ntop.h:515:0, from util.c:25: util.c:5630:47: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.geolocalizationMutex, "GeoIP_name_by_ipnum/v6"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:5630:71: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.geolocalizationMutex, "GeoIP_name_by_ipnum/v6"); ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:5633:46: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.geolocalizationMutex); ^ util.c:2031:5: note: expected 'char *' but argument is of type 'const char *' int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine) { ^ In file included from ntop.h:515:0, from util.c:25: globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ util.c:5641:31: note: in expansion of macro 'strdup' if(name) el->hostASDescr = strdup(&name[1]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:5642:4: note: in expansion of macro 'free' free(rsp); ^ util.c: In function '_setResolvedName': util.c:5678:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, el->hostResolvedName, ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c:5679:35: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sizeof(el->hostResolvedName), "%s", updateValue); ^ util.c:3373:5: note: expected 'char *' but argument is of type 'const char *' int safe_snprintf(char* file, int line, ^ util.c: In function 'cmpFctnResolvedName': util.c:5770:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] HostTraffic **a = (HostTraffic **)_a; ^ util.c:5771:21: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] HostTraffic **b = (HostTraffic **)_b; ^ In file included from ntop.h:515:0, from util.c:25: util.c: In function 'freePortsUsage': globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ util.c:6049:5: note: in expansion of macro 'free' free(act); ^ util.c: In function 'allocatePortUsage': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ util.c:6064:21: note: in expansion of macro 'calloc' ptr = (PortUsage*)calloc(1, sizeof(PortUsage)); ^ util.c: In function 'getPortsUsage': util.c:6085:38: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.portsMutex, "getPortsUsage"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:6085:53: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.portsMutex, "getPortsUsage"); ^ util.c:1881:5: note: expected 'char *' but argument is of type 'const char *' int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine) { ^ util.c:6095:39: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.portsMutex); ^ util.c:2031:5: note: expected 'char *' but argument is of type 'const char *' int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine) { ^ util.c:6100:39: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.portsMutex); ^ util.c:2031:5: note: expected 'char *' but argument is of type 'const char *' int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine) { ^ util.c:6120:37: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.portsMutex); ^ util.c:2031:5: note: expected 'char *' but argument is of type 'const char *' int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine) { ^ util.c: In function 'vlan2name': util.c:6150:25: warning: argument to 'sizeof' in 'snprintf' call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess] snprintf(buf, sizeof(buf), "%d", vlanId); ^ util.c: In function 'mkdir_p': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:6162:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "%s: mkdir(null) skipped", tag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:6162:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "%s: mkdir(null) skipped", tag); ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:6183:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "RRD: [path=%s][error=%d/%s]", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:6183:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "RRD: [path=%s][error=%d/%s]", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ util.c:6197:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "%s: mkdir(%s), error %d %s", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c:6197:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "%s: mkdir(%s), error %d %s", ^ util.c:2649:6: note: expected 'char *' but argument is of type 'const char *' void traceEvent(int eventTraceLevel, char* file, ^ util.c: In function 'ntop_strsignal': util.c:6241:9: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(sig == SIGHUP ? "SIGHUP" ^ vendor.c:97:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "specialMAC.txt", ^ vendor.c:98:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "oui.txt", ^ vendor.c: In function 'getMACInfo': vendor.c:126:63: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] data_data = gdbm_fetch(myGlobals.macPrefixFile, key_data); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ vendor.c:138:2: note: in expansion of macro 'free' free(data_data.dptr); ^ vendor.c:154:59: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] data_data = gdbm_fetch(myGlobals.macPrefixFile, key_data); ^ globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ vendor.c:160:7: note: in expansion of macro 'free' free(data_data.dptr); ^ vendor.c:175:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(""); ^ vendor.c:181:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("Multicast"); ^ vendor.c:186:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return("LAA (Locally assigned address)"); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:189:14: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "MAC prefix '%s' not found in vendor database", tmpBuf); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:189:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "MAC prefix '%s' not found in vendor database", tmpBuf); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:191:9: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(""); ^ vendor.c: In function 'getVendorInfo': vendor.c:200:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(""); ^ vendor.c:209:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(""); ^ vendor.c: In function 'getSpecialMacInfo': vendor.c:221:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(""); ^ vendor.c: In function 'createVendorTable': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:267:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "VENDOR: Loading MAC address table."); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:267:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "VENDOR: Loading MAC address table."); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:269:26: warning: passing argument 1 of 'checkForInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fd=checkForInputFile("VENDOR", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:80:14: note: expected 'char *' but argument is of type 'const char *' extern FILE* checkForInputFile(char* logTag, char* descr, char* fileName, struct stat *dbStat, ^ vendor.c:270:26: warning: passing argument 2 of 'checkForInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "MAC address table", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:80:14: note: expected 'char *' but argument is of type 'const char *' extern FILE* checkForInputFile(char* logTag, char* descr, char* fileName, struct stat *dbStat, ^ vendor.c:278:27: warning: passing argument 2 of 'readInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "VENDOR", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:82:12: note: expected 'char *' but argument is of type 'const char *' extern int readInputFile(FILE* fd, char* logTag, u_char forceClose, u_char compressedFormat, ^ vendor.c:338:76: warning: passing argument 5 of 'ntop_gdbm_store' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(gdbm_store(myGlobals.macPrefixFile, key_data, data_data, GDBM_REPLACE) != 0) { ^ globals-core.h:361:14: note: expected 'char *' but argument is of type 'const char *' extern int ntop_gdbm_store(GDBM_FILE g, datum d, datum v, int r, char* theFile, int theLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:339:17: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:340:10: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "VENDOR: unable to add record '%s': {%d, %s} - skipped", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:360:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "VENDOR: ...loaded %d records", numLoaded); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:360:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "VENDOR: ...loaded %d records", numLoaded); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:362:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:363:18: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "VENDOR: ntop continues ok"); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:368:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Fingerprint: Loading signature file"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:368:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Fingerprint: Loading signature file"); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:370:28: warning: passing argument 1 of 'checkForInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fd = checkForInputFile("Fingerprint", "Fingerprint file...", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:80:14: note: expected 'char *' but argument is of type 'const char *' extern FILE* checkForInputFile(char* logTag, char* descr, char* fileName, struct stat *dbStat, ^ vendor.c:370:43: warning: passing argument 2 of 'checkForInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] fd = checkForInputFile("Fingerprint", "Fingerprint file...", ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:80:14: note: expected 'char *' but argument is of type 'const char *' extern FILE* checkForInputFile(char* logTag, char* descr, char* fileName, struct stat *dbStat, ^ In file included from ntop.h:511:0, from vendor.c:92: globals-defines.h:841:45: warning: passing argument 3 of 'checkForInputFile' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_OSFINGERPRINT_FILE "etter.finger.os" ^ vendor.c:371:7: note: in expansion of macro 'CONST_OSFINGERPRINT_FILE' CONST_OSFINGERPRINT_FILE, NULL, &compressedFormat); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:80:14: note: expected 'char *' but argument is of type 'const char *' extern FILE* checkForInputFile(char* logTag, char* descr, char* fileName, struct stat *dbStat, ^ vendor.c:383:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, lineKey, sizeof(lineKey), "%d", numEntries++); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ vendor.c:383:62: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, lineKey, sizeof(lineKey), "%d", numEntries++); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ vendor.c:390:76: warning: passing argument 5 of 'ntop_gdbm_store' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(gdbm_store(myGlobals.fingerprintFile, key_data, data_data, GDBM_REPLACE) != 0) ^ globals-core.h:361:14: note: expected 'char *' but argument is of type 'const char *' extern int ntop_gdbm_store(GDBM_FILE g, datum d, datum v, int r, char* theFile, int theLine); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:391:15: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "While adding %s=%s.", lineKey, line); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:391:34: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "While adding %s=%s.", lineKey, line); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:394:18: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "Fingerprint: ...loaded %d records", numEntries); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:394:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "Fingerprint: ...loaded %d records", numEntries); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ vendor.c:396:18: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Unable to find fingeprint signature file."); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ vendor.c:396:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Unable to find fingeprint signature file."); ^ In file included from ntop.h:515:0, from vendor.c:92: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o version.lo version.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c version.c -fPIC -DPIC -o .libs/version.o version.c:1:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * version = "4.1.0 ALTLinux RPM"; ^ version.c:2:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * osName = "x86_64-pc-linux-gnu"; ^ version.c:3:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * author = "Luca Deri "; ^ version.c:4:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * configureDate = "Apr 14 2019 2:11:09"; ^ version.c:5:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define buildDateIs __DATE__ " " __TIME__ ^ version.c:6:23: note: in expansion of macro 'buildDateIs' char * buildDate = buildDateIs; ^ version.c:7:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * configure_parameters = "--build=x86_64-alt-linux --host=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext AWK=gawk --disable-static --with-gnu-ld --with-ossl-root=/usr --with-localedir=/usr/lib64/locale --enable-snmp --enable-jumbo-frames"; ^ version.c:8:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * host_system_type = "x86_64-alt-linux-gnu"; ^ version.c:9:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * target_system_type = "x86_64-alt-linux-gnu"; ^ version.c:10:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * compiler_cppflags = "x86_64-alt-linux-gcc -E -DLINUX -I/usr/local/include -I/opt/local/include"; ^ version.c:11:28: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * compiler_cflags = "x86_64-alt-linux-gcc -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -DHAVE_CONFIG_H"; ^ version.c:12:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * include_path = "-DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include"; ^ version.c:13:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * system_libs = "-L/usr/local/lib -L/opt/local/lib -lpthread -ldl -lcrypt -lc -lrrd_th -lpcap -lgdbm -lz -lnetsnmp -lssl -lnl-3 -lm -lcrypto -lwrap -lGeoIP"; ^ version.c:14:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * install_path = "/usr"; ^ version.c:15:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * locale_dir = "/usr/lib/locale"; ^ version.c:16:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * distro = "fedora"; ^ version.c:17:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * release = "unknown"; ^ version.c:18:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char * force_runtime = ""; ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c version.c -o version.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o emitter.lo emitter.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c vendor.c -o vendor.o >/dev/null 2>&1 libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c emitter.c -fPIC -DPIC -o .libs/emitter.o traffic.c: In function 'updateDeviceThpt': traffic.c:306:37: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(deviceToUpdate); el != NULL; el = getNextHost(deviceToUpdate, el)) { ^ In file included from ntop.h:515:0, from traffic.c:21: globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ traffic.c:306:87: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(deviceToUpdate); el != NULL; el = getNextHost(deviceToUpdate, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ traffic.c: In function 'checkCommunities': traffic.c:602:42: warning: passing argument 2 of 'ntop_gdbm_firstkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = gdbm_firstkey(myGlobals.prefsFile); ^ globals-core.h:358:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_firstkey(GDBM_FILE g, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ traffic.c:609:7: note: in expansion of macro 'free' free(key.dptr); ^ traffic.c:614:52: warning: passing argument 3 of 'ntop_gdbm_nextkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_nextkey(myGlobals.prefsFile, key); ^ globals-core.h:359:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_nextkey(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ traffic.c:615:5: note: in expansion of macro 'free' free (key.dptr); ^ traffic.c: In function 'findHostCommunity': traffic.c:629:44: warning: passing argument 2 of 'ntop_gdbm_firstkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = gdbm_firstkey(myGlobals.prefsFile); ^ globals-core.h:358:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_firstkey(GDBM_FILE g, char* theFile, int theLine); ^ traffic.c:654:54: warning: passing argument 3 of 'ntop_gdbm_nextkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_nextkey(myGlobals.prefsFile, key); ^ globals-core.h:359:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_nextkey(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ traffic.c:655:7: note: in expansion of macro 'free' free (key.dptr); ^ traffic.c: In function 'setHostCommunity': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ traffic.c:677:21: note: in expansion of macro 'strdup' el->community = strdup(community); ^ traffic.c: In function 'httpSiteIcon': traffic.c:705:11: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] return(" "); ^ traffic.c:721:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, ^ In file included from ntop.h:515:0, from traffic.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ traffic.c:722:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " %s", ^ In file included from ntop.h:515:0, from traffic.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ traffic.c:725:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, buf_len, ^ In file included from ntop.h:515:0, from traffic.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ traffic.c:726:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " ", ^ In file included from ntop.h:515:0, from traffic.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o globals-report.lo globals-report.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c globals-report.c -fPIC -DPIC -o .libs/globals-report.o /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o graph.lo graph.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c sessions.c -o sessions.o >/dev/null 2>&1 /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o http.lo http.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c graph.c -fPIC -DPIC -o .libs/graph.o libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c http.c -fPIC -DPIC -o .libs/http.o emitter.c:31:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:49: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:59: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c:31:67: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *languages[] = { "", "perl", "php", "xml", "python", "json", "no" }; ^ emitter.c: In function 'initWriteArray': emitter.c:53:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "%ntopHash =(\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:56:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "$ntopHash = array(\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:59:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "ntopDict = {\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:62:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "{ \"ntop\": ["); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:65:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "" ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c: In function 'endWriteArray': emitter.c:81:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, ");\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:84:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "}\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:87:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:88:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "], \"totalRecords\":%d\n}\n", numEntries); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:92:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "\n\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:95:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c: In function 'initWriteKey': emitter.c:126:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s' => {\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:126:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s' => {\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:130:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s' => array(\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:130:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s' => array(\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:134:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s': {\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:134:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s': {\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:138:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "{ \"host_key\": \"%s\",", keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:138:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "{ \"host_key\": \"%s\",", keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:142:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s<%s>\n", indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:142:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s<%s>\n", indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:146:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:146:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'endWriteKey': emitter.c:168:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s}%c\n",indent,last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:168:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s}%c\n",indent,last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:172:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s)%c\n",indent,last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:172:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s)%c\n",indent,last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:176:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:176:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s\n",indent, keyName); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:180:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s}%c\n",indent, last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:180:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"%s}%c\n",indent, last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:185:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf)," \"dummy\": 1"); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:185:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf)," \"dummy\": 1"); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:189:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"}%c\n", last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:189:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf),"}%c\n", last); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:193:59: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(strcmp(indent, "") == 0) sendEmitterString(fDescr, "\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c: In function 'sanitize': emitter.c:203:10: warning: right-hand operand of comma expression has no effect [-Wunused-value] for(i=0, j; (i %s%c\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:229:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s' => %s%c\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:234:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s<%s>%s\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:234:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s<%s>%s\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:239:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s': %s%c\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:239:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s'%s': %s%c\n", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:244:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), " \"%s\": %s,", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:244:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), " \"%s\": %s,", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:250:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:250:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:254:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:254:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s|", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtStrItm': emitter.c:268:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:269:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] (lang == FLAG_XML_LANGUAGE) ? "%s" : ((lang == FLAG_JSON_LANGUAGE) ? "\"%s\"" : "'%s'"), ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtIntItm': emitter.c:280:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:280:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtUintItm': emitter.c:300:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:300:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtUcharItm': emitter.c:309:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:309:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtFloatItm': emitter.c:318:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%0.2f",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:318:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%0.2f",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtIntFloatItm': emitter.c:327:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d", name); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:327:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d", name); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:328:37: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, indent, (lang == FLAG_XML_LANGUAGE) ? "number" : buf, ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c: In function 'wrtUlongItm': emitter.c:338:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%lu",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:338:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%lu",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtLlongItm': emitter.c:348:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%llu", value.value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:348:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%llu", value.value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtTime_tItm': emitter.c:357:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%ld",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:357:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%ld",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'wrtUshortItm': emitter.c:366:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:366:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%d",value); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c: In function 'dumpNtopFlows': emitter.c:430:30: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "", list->flowName, numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:431:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "packets", list->packets, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:431:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "packets", list->packets, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:432:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytes", list->bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:432:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytes", list->bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:433:30: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang, "", list->flowName, ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ In file included from ntop.h:515:0, from emitter.c:21: emitter.c: In function 'updateRefCount': emitter.c:452:26: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "decrementRefCount"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ emitter.c:452:45: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "decrementRefCount"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ emitter.c:454:26: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(el); ^ globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ emitter.c: In function 'dumpNtopHashes': emitter.c:517:37: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(actualDeviceId); ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ emitter.c:518:54: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(actualDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ emitter.c:552:32: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:552:37: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:554:32: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:554:36: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:555:59: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(lang == FLAG_XML_LANGUAGE) wrtStrItm(fDescr, lang, "\t", "key", hostKey, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:555:65: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(lang == FLAG_XML_LANGUAGE) wrtStrItm(fDescr, lang, "\t", "key", hostKey, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:560:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "index")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:561:27: warning: passing argument 3 of 'wrtUintItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUintItm(fDescr, lang, "\t","index", 0, ' ', numEntries); ^ emitter.c:297:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUintItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:561:32: warning: passing argument 4 of 'wrtUintItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUintItm(fDescr, lang, "\t","index", 0, ' ', numEntries); ^ emitter.c:297:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUintItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:563:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "hostNumIpAddress")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:564:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "hostNumIpAddress", el->hostNumIpAddress, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:564:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "hostNumIpAddress", el->hostNumIpAddress, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:567:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "hostResolvedName")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:568:31: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "hostResolvedName", workSymIpAddress, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:568:37: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "hostResolvedName", workSymIpAddress, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:571:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "firstSeen")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:572:29: warning: passing argument 3 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "firstSeen", el->firstSeen, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:572:35: warning: passing argument 4 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "firstSeen", el->firstSeen, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:573:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastSeen")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:574:29: warning: passing argument 3 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "lastSeen", el->lastSeen, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:574:35: warning: passing argument 4 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "lastSeen", el->lastSeen, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:575:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "minTTL")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:576:29: warning: passing argument 3 of 'wrtUshortItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUshortItm(fDescr, lang, "\t", "minTTL", el->minTTL, ' ', numEntries); ^ emitter.c:363:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUshortItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:576:35: warning: passing argument 4 of 'wrtUshortItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUshortItm(fDescr, lang, "\t", "minTTL", el->minTTL, ' ', numEntries); ^ emitter.c:363:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUshortItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:577:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "maxTTL")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:578:29: warning: passing argument 3 of 'wrtUshortItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUshortItm(fDescr, lang, "\t", "maxTTL", el->maxTTL, ' ', numEntries); ^ emitter.c:363:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUshortItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:578:35: warning: passing argument 4 of 'wrtUshortItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUshortItm(fDescr, lang, "\t", "maxTTL", el->maxTTL, ' ', numEntries); ^ emitter.c:363:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUshortItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:581:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "nbHostName")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:582:28: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbHostName", el->nonIPTraffic->nbHostName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:582:34: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbHostName", el->nonIPTraffic->nbHostName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:583:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "nbDomainName")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:584:28: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbDomainName", el->nonIPTraffic->nbDomainName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:584:34: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbDomainName", el->nonIPTraffic->nbDomainName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:585:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "nbDescr")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:586:28: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbDescr", el->nonIPTraffic->nbDescr, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:586:34: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "nbDescr", el->nonIPTraffic->nbDescr, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:587:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "nodeType")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:588:31: warning: passing argument 3 of 'wrtUcharItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUcharItm (fDescr, lang, "\t", "nodeType", el->nonIPTraffic->nbNodeType, ' ', numEntries); ^ emitter.c:306:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUcharItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:588:37: warning: passing argument 4 of 'wrtUcharItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUcharItm (fDescr, lang, "\t", "nodeType", el->nonIPTraffic->nbNodeType, ' ', numEntries); ^ emitter.c:306:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUcharItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:592:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:593:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktSent", el->pktSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:593:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktSent", el->pktSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:594:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:595:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktRcvd", el->pktRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:595:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktRcvd", el->pktRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:597:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv4BytesSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:598:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv4BytesSent", el->ipv4BytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:598:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv4BytesSent", el->ipv4BytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:599:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv4BytesRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:600:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv4BytesRcvd", el->ipv4BytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:600:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv4BytesRcvd", el->ipv4BytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:605:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktDuplicatedAckSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:606:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktDuplicatedAckSent",el->pktDuplicatedAckSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:606:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktDuplicatedAckSent",el->pktDuplicatedAckSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:607:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktDuplicatedAckRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:608:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktDuplicatedAckRcvd",el->pktDuplicatedAckRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:608:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktDuplicatedAckRcvd",el->pktDuplicatedAckRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:609:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktBroadcastSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:610:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktBroadcastSent", el->pktBroadcastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:610:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktBroadcastSent", el->pktBroadcastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:613:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesMulticastSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:614:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesMulticastSent", el->bytesMulticastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:614:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesMulticastSent", el->bytesMulticastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:615:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktMulticastSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:616:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktMulticastSent", el->pktMulticastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:616:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktMulticastSent", el->pktMulticastSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:618:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesMulticastRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:619:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesMulticastRcvd", el->bytesMulticastRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:619:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesMulticastRcvd", el->bytesMulticastRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:620:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "pktMulticastRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:621:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktMulticastRcvd", el->pktMulticastRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:621:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "pktMulticastRcvd", el->pktMulticastRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:625:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:626:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSent", el->bytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:626:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSent", el->bytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:629:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesSentLoc")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:630:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSentLoc", el->bytesSentLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:630:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSentLoc", el->bytesSentLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:631:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesSentRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:633:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSentRem", el->bytesSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:633:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesSentRem", el->bytesSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:636:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:637:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvd", el->bytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:637:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvd", el->bytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:640:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesRcvdLoc")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:641:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvdLoc", el->bytesRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:641:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvdLoc", el->bytesRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:642:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "bytesRcvdFromRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:643:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvdFromRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:643:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "bytesRcvdFromRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:645:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualRcvdThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:647:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualRcvdThpt", el->actualRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:647:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualRcvdThpt", el->actualRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:648:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastHourRcvdThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:649:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastHourRcvdThpt", el->lastHourRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:649:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastHourRcvdThpt", el->lastHourRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:650:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageRcvdThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:652:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageRcvdThpt", el->averageRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:652:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageRcvdThpt", el->averageRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:653:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakRcvdThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:655:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakRcvdThpt", el->peakRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:655:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakRcvdThpt", el->peakRcvdThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:656:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualSentThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:658:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualSentThpt", el->actualSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:658:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualSentThpt", el->actualSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:659:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastHourSentThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:661:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastHourSentThpt", el->lastHourSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:661:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastHourSentThpt", el->lastHourSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:662:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageSentThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:663:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageSentThpt", el->averageSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:663:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageSentThpt", el->averageSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:664:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakSentThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:665:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakSentThpt", el->peakSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:665:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakSentThpt", el->peakSentThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:667:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualTThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:668:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualTThpt", el->actualTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:668:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualTThpt", el->actualTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:669:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageTThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:670:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageTThpt", el->averageTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:670:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageTThpt", el->averageTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:671:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakTThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:672:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakTThpt", el->peakTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:672:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakTThpt", el->peakTThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:674:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualRcvdPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:675:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualRcvdPktThpt", el->actualRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:675:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualRcvdPktThpt", el->actualRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:676:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageRcvdPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:677:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageRcvdPktThpt",el->averageRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:677:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageRcvdPktThpt",el->averageRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:678:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakRcvdPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:679:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakRcvdPktThpt", el->peakRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:679:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakRcvdPktThpt", el->peakRcvdPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:680:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualSentPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:681:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualSentPktThpt", el->actualSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:681:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualSentPktThpt", el->actualSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:682:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageSentPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:683:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageSentPktThpt", el->averageSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:683:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageSentPktThpt", el->averageSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:684:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakSentPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:685:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakSentPktThpt", el->peakSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:685:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakSentPktThpt", el->peakSentPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:687:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualTPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:688:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualTPktThpt", el->actualTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:688:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualTPktThpt", el->actualTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:689:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "averageTPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:690:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageTPktThpt",el->averageTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:690:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "averageTPktThpt",el->averageTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:691:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakTPktThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:692:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakTPktThpt", el->peakTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:692:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakTPktThpt", el->peakTPktThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:695:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv6BytesSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:696:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6BytesSent", el->ipv6BytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:696:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6BytesSent", el->ipv6BytesSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:697:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv6BytesRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:698:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6BytesRcvd", el->ipv6BytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:698:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6BytesRcvd", el->ipv6BytesRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:701:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpBytesSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:702:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytesSent", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:702:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytesSent", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:704:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpBytesRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:705:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytesRcvd", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:705:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytesRcvd", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:708:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpBytesSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:709:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytesSent", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:709:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytesSent", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:711:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpBytesRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:712:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytesRcvd", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:712:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytesRcvd", ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:714:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:715:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpSent", el->icmpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:715:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpSent", el->icmpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:716:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:717:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpRcvd", el->icmpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:717:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpRcvd", el->icmpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:721:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpSentRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:722:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpSentRem", el->tcpSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:722:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpSentRem", el->tcpSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:723:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpSentLoc")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:724:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpSentLoc", el->udpSentLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:724:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpSentLoc", el->udpSentLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:725:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpSentRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:726:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpSentRem", el->udpSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:726:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpSentRem", el->udpSentRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:728:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpRcvdLoc")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:729:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpRcvdLoc",el->tcpRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:729:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpRcvdLoc",el->tcpRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:730:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpRcvdFromRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:731:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpRcvdFromRem",el->tcpRcvdFromRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:731:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpRcvdFromRem",el->tcpRcvdFromRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:732:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpRcvdLoc")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:733:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpRcvdLoc",el->udpRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:733:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpRcvdLoc",el->udpRcvdLoc, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:734:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpRcvdFromRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:735:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpRcvdFromRem",el->udpRcvdFromRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:735:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpRcvdFromRem",el->udpRcvdFromRem, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:739:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpFragmentsSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:740:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpFragmentsSent", el->tcpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:740:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpFragmentsSent", el->tcpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:741:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpFragmentsRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:742:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpFragmentsRcvd", el->tcpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:742:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpFragmentsRcvd", el->tcpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:743:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpFragmentsSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:744:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpFragmentsSent", el->udpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:744:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpFragmentsSent", el->udpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:745:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpFragmentsRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:746:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpFragmentsRcvd", el->udpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:746:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpFragmentsRcvd", el->udpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:747:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpFragmentsSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:748:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragmentsSent", el->icmpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:748:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragmentsSent", el->icmpFragmentsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:749:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpFragmentsRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:750:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragmentsRcvd", el->icmpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:750:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragmentsRcvd", el->icmpFragmentsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:751:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "greSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:752:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greSent", el->greSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:752:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greSent", el->greSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:753:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "greRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:754:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greRcvd", el->greRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:754:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greRcvd", el->greRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:755:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipsecSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:756:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecSent", el->ipsecSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:756:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecSent", el->ipsecSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:757:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipsecRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:758:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecRcvd", el->ipsecRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:758:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecRcvd", el->ipsecRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:763:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "stpSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:764:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpSent", el->nonIPTraffic->stpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:764:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpSent", el->nonIPTraffic->stpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:765:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "stpRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:766:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpRcvd", el->nonIPTraffic->stpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:766:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpRcvd", el->nonIPTraffic->stpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:767:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arp_rarpSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:768:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arp_rarpSent",el->nonIPTraffic->arp_rarpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:768:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arp_rarpSent",el->nonIPTraffic->arp_rarpSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:769:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arp_rarpRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:770:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arp_rarpRcvd", el->nonIPTraffic->arp_rarpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:770:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arp_rarpRcvd", el->nonIPTraffic->arp_rarpRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:771:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arpReqPktsSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:772:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReqPktsSent", el->nonIPTraffic->arpReqPktsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:772:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReqPktsSent", el->nonIPTraffic->arpReqPktsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:773:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arpReplyPktsSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:774:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReplyPktsSent", el->nonIPTraffic->arpReplyPktsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:774:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReplyPktsSent", el->nonIPTraffic->arpReplyPktsSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:775:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arpReplyPktsRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:776:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReplyPktsRcvd", el->nonIPTraffic->arpReplyPktsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:776:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpReplyPktsRcvd", el->nonIPTraffic->arpReplyPktsRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:777:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "netbiosSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:778:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosSent", el->nonIPTraffic->netbiosSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:778:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosSent", el->nonIPTraffic->netbiosSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:779:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "netbiosRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:780:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosRcvd", el->nonIPTraffic->netbiosRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:780:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosRcvd", el->nonIPTraffic->netbiosRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:781:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "otherSent")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:782:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherSent", el->nonIPTraffic->otherSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:782:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherSent", el->nonIPTraffic->otherSent, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:783:25: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "otherRcvd")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:784:30: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherRcvd", el->nonIPTraffic->otherRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:784:36: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherRcvd", el->nonIPTraffic->otherRcvd, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:789:51: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(el->routedTraffic && checkFilter(filter, "RoutingCounter")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:790:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "RoutingCounter", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:790:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "RoutingCounter", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:791:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t", "routedPkts", el->routedTraffic->routedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:791:35: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t", "routedPkts", el->routedTraffic->routedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:792:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t", "routedBytes", el->routedTraffic->routedBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:792:35: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t", "routedBytes", el->routedTraffic->routedBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:793:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "RoutingCounter", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:793:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "RoutingCounter", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:797:72: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if((!shortView) && (el->protoIPTrafficInfos && checkFilter(filter, "IP"))) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:800:34: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "IP", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:800:40: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "IP", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:805:41: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(j > 0) { endWriteKey(fDescr, lang,"\t\t", lastKey, ','); } ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:807:31: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t\t", (lastKey = myGlobals.ipTrafficProtosNames[j]), numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:808:29: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","sentLoc", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:808:38: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","sentLoc", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:810:29: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","sentRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:810:38: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","sentRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:812:29: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","rcvdLoc", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:812:38: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","rcvdLoc", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:814:29: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","rcvdFromRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:814:38: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t\t","rcvdFromRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:819:54: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(lastKey != NULL) { endWriteKey(fDescr, lang,"\t\t", lastKey, ','); } ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:820:32: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "IP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:820:38: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "IP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:826:46: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(el->icmpInfo && checkFilter(filter, "ICMP")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:827:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "ICMP", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:827:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "ICMP", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:828:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ECHO", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:828:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ECHO", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:830:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ECHOREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:830:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ECHOREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:832:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_UNREACH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:832:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_UNREACH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:834:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ROUTERADVERT", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:834:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_ROUTERADVERT", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:836:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TMXCEED", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:836:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TMXCEED", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:838:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_PARAMPROB", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:838:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_PARAMPROB", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:840:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_MASKREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:840:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_MASKREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:842:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_MASKREQ", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:842:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_MASKREQ", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:844:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_INFO_REQUEST", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:844:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_INFO_REQUEST", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:846:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_INFO_REPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:846:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_INFO_REPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:848:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TIMESTAMP", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:848:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TIMESTAMP", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:850:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TIMESTAMPREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:850:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_TIMESTAMPREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:852:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_SOURCE_QUENCH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:852:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","SENT_SOURCE_QUENCH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:857:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ECHO", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:857:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ECHO", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:859:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ECHOREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:859:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ECHOREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:861:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_UNREACH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:861:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_UNREACH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:863:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ROUTERADVERT", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:863:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_ROUTERADVERT", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:865:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TMXCEED", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:865:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TMXCEED", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:867:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_PARAMPROB", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:867:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_PARAMPROB", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:869:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_MASKREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:869:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_MASKREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:871:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_MASKREQ", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:871:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_MASKREQ", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:873:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_INFO_REQUEST", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:873:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_INFO_REQUEST", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:875:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_INFO_REPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:875:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_INFO_REPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:877:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TIMESTAMP", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:877:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TIMESTAMP", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:879:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TIMESTAMPREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:879:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_TIMESTAMPREPLY", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:881:27: warning: passing argument 3 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_SOURCE_QUENCH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:881:34: warning: passing argument 4 of 'wrtUlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtUlongItm(fDescr, lang,"\t\t","RCVD_SOURCE_QUENCH", ^ emitter.c:334:13: note: expected 'char *' but argument is of type 'const char *' static void wrtUlongItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:884:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "ICMP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:884:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "ICMP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:889:49: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(el->secHostPkts && checkFilter(filter, "securityPkts")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:890:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "securityPkts", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:890:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "securityPkts", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:892:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:892:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:894:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:894:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:897:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:897:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:899:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:899:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:902:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstAckPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:902:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstAckPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:904:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstAckPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:904:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rstAckPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:907:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synFinPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:907:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synFinPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:909:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synFinPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:909:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","synFinPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:912:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","finPushUrgPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:912:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","finPushUrgPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:914:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","finPushUrgPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:914:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","finPushUrgPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:917:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","nullPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:917:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","nullPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:919:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","nullPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:919:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","nullPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:922:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","ackXmasFinSynNullScanSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:922:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","ackXmasFinSynNullScanSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:924:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","ackXmasFinSynNullScanRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:924:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","ackXmasFinSynNullScanRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:927:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rejectedTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:927:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rejectedTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:929:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rejectedTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:929:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","rejectedTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:932:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","establishedTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:932:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","establishedTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:934:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","establishedTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:934:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","establishedTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:937:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","terminatedTCPConnServer", ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c traffic.c -o traffic.o >/dev/null 2>&1 emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:937:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","terminatedTCPConnServer", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:939:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","terminatedTCPConnClient", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:939:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","terminatedTCPConnClient", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:942:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToClosedPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:942:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToClosedPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:944:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToClosedPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:944:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToClosedPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:947:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToDiagnosticPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:947:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToDiagnosticPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:949:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToDiagnosticPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:949:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","udpToDiagnosticPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:952:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tcpToDiagnosticPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:952:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tcpToDiagnosticPortSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:954:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tcpToDiagnosticPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:954:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tcpToDiagnosticPortRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:957:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tinyFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:957:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tinyFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:959:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tinyFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:959:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","tinyFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:962:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:962:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:964:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:964:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:967:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","overlappingFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:967:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","overlappingFragmentSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:969:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","overlappingFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:969:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","overlappingFragmentRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:972:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","closedEmptyTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:972:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","closedEmptyTCPConnSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:974:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","closedEmptyTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:974:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","closedEmptyTCPConnRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:977:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpPortUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:977:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpPortUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:979:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpPortUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:979:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpPortUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:982:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpHostNetUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:982:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpHostNetUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:984:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpHostNetUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:984:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpHostNetUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:987:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpProtocolUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:987:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpProtocolUnreachSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:989:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpProtocolUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:989:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpProtocolUnreachRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:992:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpAdminProhibitedSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:992:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpAdminProhibitedSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:994:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpAdminProhibitedRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:994:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","icmpAdminProhibitedRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:997:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","malformedPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:997:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","malformedPktsSent", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:999:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","malformedPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:999:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t\t","malformedPktsRcvd", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1002:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "securityPkts", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1002:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "securityPkts", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1007:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ethAddressString")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1008:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ethAddressString",el->ethAddressString, ' ', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1008:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ethAddressString",el->ethAddressString, ' ', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1018:47: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, ' '); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1018:51: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "host-information" : hostKey, ' '); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c: In function 'dumpNtopHashIndexes': emitter.c:1063:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c:1065:37: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(actualDeviceId); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ emitter.c:1066:54: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(actualDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ emitter.c:1068:28: warning: passing argument 2 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "dumpNtopHashes"); ^ globals-core.h:623:57: note: in definition of macro 'lockHostsHashMutex' #define lockHostsHashMutex(a, b) _lockHostsHashMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ emitter.c:1068:44: warning: passing argument 3 of '_lockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lockHostsHashMutex(el, "dumpNtopHashes"); ^ globals-core.h:624:12: note: expected 'char *' but argument is of type 'const char *' extern int _lockHostsHashMutex(HostTraffic *host, char *where, char *file, int line); ^ emitter.c:1072:24: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *hostName = "Unknown"; ^ emitter.c:1083:33: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "item", hostKey, '\n', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1083:39: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "item", hostKey, '\n', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1085:33: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "", hostKey, hostName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1090:28: warning: passing argument 2 of '_unlockHostsHashMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] unlockHostsHashMutex(el); ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:626:12: note: expected 'char *' but argument is of type 'const char *' extern int _unlockHostsHashMutex(HostTraffic *host, char* file, int line); ^ emitter.c:1094:31: warning: passing argument 2 of 'sendEmitterString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendEmitterString(fDescr, "\n"); ^ emitter.c:35:13: note: expected 'char *' but argument is of type 'const char *' static void sendEmitterString(FILE *fDescr, char *theString) { ^ emitter.c: In function 'dumpNtopTrafficInfo': emitter.c:1159:51: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) { endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, ','); } ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1159:55: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) { endWriteKey(fDescr, lang,"", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, ','); } ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1163:32: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1163:36: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1164:59: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(lang == FLAG_XML_LANGUAGE) wrtStrItm(fDescr, lang, "\t", "key", keyName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1164:65: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(lang == FLAG_XML_LANGUAGE) wrtStrItm(fDescr, lang, "\t", "key", keyName, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1166:29: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "name", myGlobals.device[i].name, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1166:35: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "name", myGlobals.device[i].name, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1169:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipdot")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1170:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ipdot", myGlobals.device[i].ipdot, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1170:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ipdot", myGlobals.device[i].ipdot, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1171:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "fqdn")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1172:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "fqdn", myGlobals.device[i].fqdn, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1172:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "fqdn", myGlobals.device[i].fqdn, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1174:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1174:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1176:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "network")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1177:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "network", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1177:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "network", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1178:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1178:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1180:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "netmask")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1181:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "netmask", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1181:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "netmask", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1182:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1182:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, localbuf, sizeof(localbuf), "%s", ^ In file included from ntop.h:515:0, from emitter.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ emitter.c:1184:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ifAddr")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1185:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ifAddr", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1185:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "ifAddr", localbuf, ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1187:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "started")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1188:29: warning: passing argument 3 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "started", myGlobals.device[i].started, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1188:35: warning: passing argument 4 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "started", myGlobals.device[i].started, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1189:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "firstpkt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1190:29: warning: passing argument 3 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "firstpkt", myGlobals.device[i].firstpkt, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1190:35: warning: passing argument 4 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "firstpkt", myGlobals.device[i].firstpkt, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1191:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastpkt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1192:29: warning: passing argument 3 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "lastpkt", myGlobals.device[i].lastpkt, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1192:35: warning: passing argument 4 of 'wrtTime_tItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtTime_tItm(fDescr, lang, "\t", "lastpkt", myGlobals.device[i].lastpkt, ' ', numEntries); ^ emitter.c:354:13: note: expected 'char *' but argument is of type 'const char *' static void wrtTime_tItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1193:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "virtualDevice")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1194:26: warning: passing argument 3 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "virtualDevice",(int)myGlobals.device[i].virtualDevice, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1194:32: warning: passing argument 4 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "virtualDevice",(int)myGlobals.device[i].virtualDevice, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1195:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "snaplen")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1196:26: warning: passing argument 3 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "snaplen", myGlobals.device[i].snaplen, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1196:32: warning: passing argument 4 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "snaplen", myGlobals.device[i].snaplen, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1197:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "datalink")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1198:26: warning: passing argument 3 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "datalink", myGlobals.device[i].datalink, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1198:32: warning: passing argument 4 of 'wrtIntItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntItm(fDescr, lang, "\t", "datalink", myGlobals.device[i].datalink, ',', numEntries); ^ emitter.c:277:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1199:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "filter")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1200:26: warning: passing argument 3 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "filter", myGlobals.device[i].filter ? myGlobals.device[i].filter : "", ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1200:32: warning: passing argument 4 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "filter", myGlobals.device[i].filter ? myGlobals.device[i].filter : "", ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1200:42: warning: passing argument 5 of 'wrtStrItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtStrItm(fDescr, lang, "\t", "filter", myGlobals.device[i].filter ? myGlobals.device[i].filter : "", ',', numEntries); ^ emitter.c:264:13: note: expected 'char *' but argument is of type 'const char *' static void wrtStrItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1201:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "droppedPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1202:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "droppedPkts",myGlobals.device[i].droppedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1202:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "droppedPkts",myGlobals.device[i].droppedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1205:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "receivedPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1206:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "receivedPkts",myGlobals.device[i].receivedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1206:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "receivedPkts",myGlobals.device[i].receivedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1207:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ethernetPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1208:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ethernetPkts",myGlobals.device[i].ethernetPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1208:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ethernetPkts",myGlobals.device[i].ethernetPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1209:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "broadcastPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1210:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "broadcastPkts",myGlobals.device[i].broadcastPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1210:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "broadcastPkts",myGlobals.device[i].broadcastPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1211:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "multicastPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1212:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "multicastPkts",myGlobals.device[i].multicastPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1212:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "multicastPkts",myGlobals.device[i].multicastPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1213:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ethernetBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1214:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ethernetBytes",myGlobals.device[i].ethernetBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1214:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ethernetBytes",myGlobals.device[i].ethernetBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1215:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv4Bytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1216:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipBytes",myGlobals.device[i].ipv4Bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1216:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipBytes",myGlobals.device[i].ipv4Bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1219:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "fragmentedIpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1220:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "fragmentedIpBytes",myGlobals.device[i].fragmentedIpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1220:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "fragmentedIpBytes",myGlobals.device[i].fragmentedIpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1223:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1224:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytes",myGlobals.device[i].tcpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1224:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpBytes",myGlobals.device[i].tcpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1225:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1226:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytes",myGlobals.device[i].udpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1226:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpBytes",myGlobals.device[i].udpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1227:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "otherIpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1228:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherIpBytes",myGlobals.device[i].otherIpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1228:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherIpBytes",myGlobals.device[i].otherIpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1229:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1230:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpBytes",myGlobals.device[i].icmpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1230:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpBytes",myGlobals.device[i].icmpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1231:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "dlcBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1232:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "dlcBytes",myGlobals.device[i].dlcBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1232:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "dlcBytes",myGlobals.device[i].dlcBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1234:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "stpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1235:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpBytes",myGlobals.device[i].stpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1235:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "stpBytes",myGlobals.device[i].stpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1236:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipsecBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1237:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecBytes",myGlobals.device[i].ipsecBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1237:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipsecBytes",myGlobals.device[i].ipsecBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1238:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "netbiosBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1239:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosBytes",myGlobals.device[i].netbiosBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1239:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "netbiosBytes",myGlobals.device[i].netbiosBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1240:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "arpRarpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1241:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpRarpBytes",myGlobals.device[i].arpRarpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1241:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "arpRarpBytes",myGlobals.device[i].arpRarpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1242:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "egpBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1243:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "egpBytes",myGlobals.device[i].egpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1243:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "egpBytes",myGlobals.device[i].egpBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1244:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "greBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1245:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greBytes",myGlobals.device[i].greBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1245:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "greBytes",myGlobals.device[i].greBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1246:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "ipv6Bytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1247:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6Bytes",myGlobals.device[i].ipv6Bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1247:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ipv6Bytes",myGlobals.device[i].ipv6Bytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1248:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "otherBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1249:33: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherBytes",myGlobals.device[i].otherBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1249:39: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "otherBytes",myGlobals.device[i].otherBytes, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1252:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastMinEthernetBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1253:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastMinEthernetBytes", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1253:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastMinEthernetBytes", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1255:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastFiveMinsEthernetBytes")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1256:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastFiveMinsEthernetBytes", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1256:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastFiveMinsEthernetBytes", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1258:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastMinEthernetPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1259:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastMinEthernetPkts",myGlobals.device[i].lastMinEthernetPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1259:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastMinEthernetPkts",myGlobals.device[i].lastMinEthernetPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1260:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastFiveMinsEthernetPkts")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1261:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastFiveMinsEthernetPkts", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1261:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "lastFiveMinsEthernetPkts", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1263:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo64")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1264:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo64",myGlobals.device[i].rcvdPktStats.upTo64, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1264:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo64",myGlobals.device[i].rcvdPktStats.upTo64, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1265:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo128")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1266:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo128",myGlobals.device[i].rcvdPktStats.upTo128, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1266:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo128",myGlobals.device[i].rcvdPktStats.upTo128, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1267:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo256")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1268:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo256",myGlobals.device[i].rcvdPktStats.upTo256, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1268:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo256",myGlobals.device[i].rcvdPktStats.upTo256, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1269:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo512")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1270:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo512",myGlobals.device[i].rcvdPktStats.upTo512, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1270:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo512",myGlobals.device[i].rcvdPktStats.upTo512, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1271:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo1024")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1272:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo1024",myGlobals.device[i].rcvdPktStats.upTo1024, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1272:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo1024",myGlobals.device[i].rcvdPktStats.upTo1024, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1273:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo1518")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1274:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo1518",myGlobals.device[i].rcvdPktStats.upTo1518, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1274:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo1518",myGlobals.device[i].rcvdPktStats.upTo1518, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1276:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo2500")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1277:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo2500",myGlobals.device[i].rcvdPktStats.upTo2500, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1277:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo2500",myGlobals.device[i].rcvdPktStats.upTo2500, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1278:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo6500")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1279:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo6500",myGlobals.device[i].rcvdPktStats.upTo6500, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1279:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo6500",myGlobals.device[i].rcvdPktStats.upTo6500, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1280:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "upTo9000")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1281:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo9000",myGlobals.device[i].rcvdPktStats.upTo9000, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1281:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "upTo9000",myGlobals.device[i].rcvdPktStats.upTo9000, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1282:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "above9000")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1283:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "above9000",myGlobals.device[i].rcvdPktStats.above9000, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1283:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "above9000",myGlobals.device[i].rcvdPktStats.above9000, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1288:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "shortest")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1289:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "shortest",myGlobals.device[i].rcvdPktStats.shortest, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1289:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "shortest",myGlobals.device[i].rcvdPktStats.shortest, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1290:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "longest")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1291:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "longest",myGlobals.device[i].rcvdPktStats.longest, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1291:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "longest",myGlobals.device[i].rcvdPktStats.longest, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1292:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tooLong")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1293:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tooLong",myGlobals.device[i].rcvdPktStats.tooLong, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1293:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tooLong",myGlobals.device[i].rcvdPktStats.tooLong, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1294:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakThroughput")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1295:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakThroughput",myGlobals.device[i].peakThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1295:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakThroughput",myGlobals.device[i].peakThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1296:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1297:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualThpt",myGlobals.device[i].actualThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1297:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualThpt",myGlobals.device[i].actualThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1298:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastMinThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1299:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastMinThpt",myGlobals.device[i].lastMinThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1299:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastMinThpt",myGlobals.device[i].lastMinThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1300:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastFiveMinsThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1301:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastFiveMinsThpt",myGlobals.device[i].lastFiveMinsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1301:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastFiveMinsThpt",myGlobals.device[i].lastFiveMinsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1302:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "peakPacketThroughput")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1303:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakPacketThroughput",myGlobals.device[i].peakPacketThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1303:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "peakPacketThroughput",myGlobals.device[i].peakPacketThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1304:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "actualPktsThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1305:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualPktsThpt",myGlobals.device[i].actualPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1305:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "actualPktsThpt",myGlobals.device[i].actualPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1306:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastMinPktsThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1307:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastMinPktsThpt",myGlobals.device[i].lastMinPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1307:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastMinPktsThpt",myGlobals.device[i].lastMinPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1308:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "lastFiveMinsPktsThpt")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1309:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastFiveMinsPktsThpt",myGlobals.device[i].lastFiveMinsPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1309:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "lastFiveMinsPktsThpt",myGlobals.device[i].lastFiveMinsPktsThpt, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1310:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "throughput")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1311:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "throughput", myGlobals.device[i].throughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1311:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "throughput", myGlobals.device[i].throughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1312:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "packetThroughput")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1313:28: warning: passing argument 3 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "packetThroughput",myGlobals.device[i].packetThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1313:34: warning: passing argument 4 of 'wrtFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtFloatItm(fDescr, lang, "\t", "packetThroughput",myGlobals.device[i].packetThroughput, ',', numEntries); ^ emitter.c:315:13: note: expected 'char *' but argument is of type 'const char *' static void wrtFloatItm(FILE *fDescr, int lang, char *indent, char *name, ^ emitter.c:1317:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "last60MinutesThpt")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1318:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last60MinutesThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1318:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last60MinutesThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1321:32: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang,"\t\t",j+1, myGlobals.device[i].last60MinutesThpt[j].trafficValue, ',', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1323:30: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang,"\t\t",j+1, myGlobals.device[i].last60MinutesThpt[j].trafficValue, ' ', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1324:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last60MinutesThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1324:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last60MinutesThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1329:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "last24HoursThpt")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1330:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last24HoursThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1330:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last24HoursThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1333:33: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang, "\t\t", j+1, myGlobals.device[i].last24HoursThpt[j].trafficValue, ',', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1335:30: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang,"\t\t",j+1,myGlobals.device[i].last24HoursThpt[j].trafficValue, ' ', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1336:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last24HoursThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1336:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last24HoursThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1340:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "last30daysThpt")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1341:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last30daysThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1341:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "last30daysThpt", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1344:32: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang,"\t\t",j+1,myGlobals.device[i].last30daysThpt[j], ',', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1346:30: warning: passing argument 3 of 'wrtIntFloatItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtIntFloatItm(fDescr, lang,"\t\t",j+1,myGlobals.device[i].last30daysThpt[j], ' ', numEntries); ^ emitter.c:324:13: note: expected 'char *' but argument is of type 'const char *' static void wrtIntFloatItm(FILE *fDescr, int lang, char *indent, int name, ^ emitter.c:1347:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last30daysThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1347:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "last30daysThpt", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1353:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "IP")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1357:46: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!shortView) { initWriteKey(fDescr, lang, "\t", "IP", numEntries); } ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1357:52: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(!shortView) { initWriteKey(fDescr, lang, "\t", "IP", numEntries); } ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1361:42: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(j > 0) endWriteKey(fDescr, lang, "\t\t", hostKey, ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1362:33: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t\t", (hostKey = myGlobals.ipTrafficProtosNames[j]), numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1363:32: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1363:42: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1365:32: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "local2remote", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1365:42: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "local2remote", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1367:32: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "remote2local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1367:42: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "remote2local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1369:32: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "remote", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1369:42: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t\t\t", "remote", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1380:32: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", myGlobals.ipTrafficProtosNames[j], ctr, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1385:49: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(hostKey != NULL) endWriteKey(fDescr, lang,"\t\t", hostKey, ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1386:29: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "IP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1386:35: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "IP", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1393:28: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "securityPkts")) { ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1394:29: warning: passing argument 3 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "securityPkts", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1394:35: warning: passing argument 4 of 'initWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] initWriteKey(fDescr, lang, "\t", "securityPkts", numEntries); ^ emitter.c:115:13: note: expected 'char *' but argument is of type 'const char *' static void initWriteKey(FILE *fDescr, int lang, char *indent, ^ emitter.c:1395:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "synPkts", myGlobals.device[i].securityPkts.synPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1395:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "synPkts", myGlobals.device[i].securityPkts.synPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1396:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rstPkts", myGlobals.device[i].securityPkts.rstPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1396:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rstPkts", myGlobals.device[i].securityPkts.rstPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1397:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rstAckPkts", myGlobals.device[i].securityPkts.rstAckPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1397:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rstAckPkts", myGlobals.device[i].securityPkts.rstAckPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1398:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "synFinPkts", myGlobals.device[i].securityPkts.synFinPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1398:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "synFinPkts", myGlobals.device[i].securityPkts.synFinPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1399:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "finPushUrgPkts", myGlobals.device[i].securityPkts.finPushUrgPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1399:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "finPushUrgPkts", myGlobals.device[i].securityPkts.finPushUrgPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1400:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "nullPkts", myGlobals.device[i].securityPkts.nullPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1400:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "nullPkts", myGlobals.device[i].securityPkts.nullPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1401:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ackXmasFinSynNullScan", myGlobals.device[i].securityPkts.ackXmasFinSynNullScan, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1401:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "ackXmasFinSynNullScan", myGlobals.device[i].securityPkts.ackXmasFinSynNullScan, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1402:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rejectedTCPConn", myGlobals.device[i].securityPkts.rejectedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1402:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "rejectedTCPConn", myGlobals.device[i].securityPkts.rejectedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1403:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "establishedTCPConn", myGlobals.device[i].securityPkts.establishedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1403:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "establishedTCPConn", myGlobals.device[i].securityPkts.establishedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1404:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "terminatedTCPConn", myGlobals.device[i].securityPkts.terminatedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1404:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "terminatedTCPConn", myGlobals.device[i].securityPkts.terminatedTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1405:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpToClosedPort", myGlobals.device[i].securityPkts.udpToClosedPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1405:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpToClosedPort", myGlobals.device[i].securityPkts.udpToClosedPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1406:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpToDiagnosticPort", myGlobals.device[i].securityPkts.udpToDiagnosticPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1406:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "udpToDiagnosticPort", myGlobals.device[i].securityPkts.udpToDiagnosticPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1407:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpToDiagnosticPort", myGlobals.device[i].securityPkts.tcpToDiagnosticPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1407:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tcpToDiagnosticPort", myGlobals.device[i].securityPkts.tcpToDiagnosticPort, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1408:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tinyFragment", myGlobals.device[i].securityPkts.tinyFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1408:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "tinyFragment", myGlobals.device[i].securityPkts.tinyFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1409:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragment", myGlobals.device[i].securityPkts.icmpFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1409:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpFragment", myGlobals.device[i].securityPkts.icmpFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1410:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "overlappingFragment", myGlobals.device[i].securityPkts.overlappingFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1410:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "overlappingFragment", myGlobals.device[i].securityPkts.overlappingFragment, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1411:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "closedEmptyTCPConn", myGlobals.device[i].securityPkts.closedEmptyTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1411:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "closedEmptyTCPConn", myGlobals.device[i].securityPkts.closedEmptyTCPConn, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1412:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpPortUnreach", myGlobals.device[i].securityPkts.icmpPortUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1412:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpPortUnreach", myGlobals.device[i].securityPkts.icmpPortUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1413:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpHostNetUnreach", myGlobals.device[i].securityPkts.icmpHostNetUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1413:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpHostNetUnreach", myGlobals.device[i].securityPkts.icmpHostNetUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1414:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpProtocolUnreach", myGlobals.device[i].securityPkts.icmpProtocolUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1414:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpProtocolUnreach", myGlobals.device[i].securityPkts.icmpProtocolUnreach, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1415:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpAdminProhibited", myGlobals.device[i].securityPkts.icmpAdminProhibited, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1415:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "icmpAdminProhibited", myGlobals.device[i].securityPkts.icmpAdminProhibited, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1416:28: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "malformedPkts", myGlobals.device[i].securityPkts.malformedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1416:34: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang, "\t", "malformedPkts", myGlobals.device[i].securityPkts.malformedPkts, ',', numEntries); ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1417:27: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "securityPkts", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1417:33: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] endWriteKey(fDescr, lang,"\t", "securityPkts", ','); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1423:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpLocal")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1424:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1424:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1426:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpLocal2Rem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1427:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1427:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1429:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1430:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1430:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1432:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "tcpRem2Local")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1433:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1433:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","tcpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1438:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpLocal")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1439:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1439:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1441:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpLocal2Rem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1442:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1442:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1444:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1445:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1445:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1447:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "udpRem2Local")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1448:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1448:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","udpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1453:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpLocal")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1454:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1454:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpLocal", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1456:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpLocal2Rem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1457:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1457:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpLocal2Rem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1459:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpRem")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1460:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1460:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpRem", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1462:30: warning: passing argument 2 of 'checkFilter' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(checkFilter(filter, "icmpRem2Local")) ^ emitter.c:372:12: note: expected 'char *' but argument is of type 'const char *' static int checkFilter(char* theStr, char* strToMatch) { ^ emitter.c:1463:27: warning: passing argument 3 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1463:32: warning: passing argument 4 of 'wrtLlongItm' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] wrtLlongItm(fDescr, lang,"\t","icmpRem2Local", ^ emitter.c:344:13: note: expected 'char *' but argument is of type 'const char *' static void wrtLlongItm(FILE *fDescr, int lang, char* indent, char* name, ^ emitter.c:1471:48: warning: passing argument 3 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) endWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, ' '); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1471:52: warning: passing argument 4 of 'endWriteKey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(numEntries > 0) endWriteKey(fDescr, lang, "", (lang == FLAG_XML_LANGUAGE) ? "device-information" : keyName, ' '); ^ emitter.c:155:13: note: expected 'char *' but argument is of type 'const char *' static void endWriteKey(FILE *fDescr, int lang, char *indent, char *keyName, char last) { ^ emitter.c:1103:50: warning: variable 'localView' set but not used [-Wunused-but-set-variable] int lang=DEFAULT_FLAG_LANGUAGE, i, numEntries, localView=0; ^ http.c:63:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 200, "OK", NULL }, ^ http.c:64:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 100, "Continue", NULL }, ^ http.c:65:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 101, "Switching Protocols", NULL }, ^ http.c:66:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 201, "Created", NULL }, ^ http.c:67:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 202, "Accepted", NULL }, ^ http.c:68:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 203, "Non-Authoritative Information", NULL }, ^ http.c:69:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 204, "No Content", NULL }, ^ http.c:70:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 205, "Reset Content", NULL }, ^ http.c:71:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 206, "Partial Content", NULL }, ^ http.c:72:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 300, "Multiple Choices", NULL }, ^ http.c:73:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 301, "Moved Permanently", NULL }, ^ http.c:74:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 302, "Moved Temporarily", NULL }, ^ http.c:75:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 303, "See Other", NULL }, ^ http.c:76:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 304, "Not Modified", NULL }, ^ http.c:77:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 305, "Use Proxy", NULL }, ^ http.c:78:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 400, "Bad Request", "The specified request is invalid." }, ^ http.c:78:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 400, "Bad Request", "The specified request is invalid." }, ^ http.c:79:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 401, "Authorization Required", "Unauthorized to access the document." }, ^ http.c:79:36: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 401, "Authorization Required", "Unauthorized to access the document." }, ^ http.c:80:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 402, "Payment Required", NULL }, ^ http.c:81:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 403, "Forbidden", "Server refused to fulfill your request." }, ^ http.c:81:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 403, "Forbidden", "Server refused to fulfill your request." }, ^ http.c:82:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 404, "Not Found", "The server cannot find the requested page " ^ http.c:82:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 404, "Not Found", "The server cannot find the requested page " ^ http.c:84:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 405, "Method Not Allowed", NULL }, ^ http.c:85:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 406, "Not Acceptable", NULL }, ^ http.c:86:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 407, "Proxy Authentication Required", NULL }, ^ http.c:87:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 408, "Request Time-out", "The request was timed-out." }, ^ http.c:87:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 408, "Request Time-out", "The request was timed-out." }, ^ http.c:88:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 409, "Conflict", NULL }, ^ http.c:89:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 410, "Gone", "The page you requested is not available in your current ntop " ^ http.c:89:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 410, "Gone", "The page you requested is not available in your current ntop " ^ http.c:92:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 411, "Length Required", NULL }, ^ http.c:93:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 412, "Precondition Failed", NULL }, ^ http.c:94:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 413, "Request Entity Too Large", NULL }, ^ http.c:95:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 414, "Request-URI Too Large", NULL }, ^ http.c:96:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 415, "Unsupported Media Type", NULL }, ^ http.c:97:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 500, "Internal Server Error", NULL }, ^ http.c:98:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 501, "Not Implemented", "The requested method is not implemented by this server." }, ^ http.c:98:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 501, "Not Implemented", "The requested method is not implemented by this server." }, ^ http.c:99:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 502, "Bad Gateway", NULL }, ^ http.c:100:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 503, "Service Unavailable", NULL }, ^ http.c:101:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 504, "Gateway Time-out", NULL }, ^ http.c:102:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 505, "HTTP Version not supported", "This server doesn't support the specified HTTP version." }, ^ http.c:102:40: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] { 505, "HTTP Version not supported", "This server doesn't support the specified HTTP version." }, ^ http.c: In function 'printSSLError': http.c:170:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_NONE: return("SSL_ERROR_NONE"); ^ http.c:171:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_SSL: return("SSL_ERROR_SSL"); ^ http.c:172:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_WANT_READ: return("SSL_ERROR_WANT_READ"); ^ http.c:173:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_WANT_WRITE: return("SSL_ERROR_WANT_WRITE"); ^ http.c:174:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_WANT_X509_LOOKUP: return("SSL_ERROR_WANT_X509_LOOKUP"); ^ http.c:175:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_SYSCALL: return("SSL_ERROR_SYSCALL"); ^ http.c:176:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_ZERO_RETURN: return("SSL_ERROR_ZERO_RETURN"); ^ http.c:177:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] case SSL_ERROR_WANT_CONNECT: return("SSL_ERROR_WANT_CONNECT"); ^ http.c:178:42: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] default: return("???"); ^ In file included from ntop.h:515:0, from http.c:39: http.c: In function 'readHTTPheader': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ http.c:212:20: note: in expansion of macro 'calloc' lineStr = (char*)calloc(lineStrLen, sizeof(char)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:214:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Not enough memory"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:214:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Not enough memory"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:254:24: warning: passing argument 1 of 'ntop_ssl_error_report' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] ntop_ssl_error_report("read"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:437:13: note: expected 'char *' but argument is of type 'const char *' extern void ntop_ssl_error_report(char * whyMe); ^ libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c globals-report.c -o globals-report.o >/dev/null 2>&1 globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:413:3: note: in expansion of macro 'free' free(lineStr); ^ http.c:197:8: warning: variable 'preLastChar' set but not used [-Wunused-but-set-variable] char preLastChar, *lineStr; ^ In file included from http.c:40:0: http.c: In function 'ssiMenu_Head': http.c:532:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:565:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " ['','Help','/ntop" CONST_NTOP_HELP_HTML "',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:584:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Host Map','/" CONST_HOST_MAP "',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:591:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'VLAN Info','/" CONST_VLAN_LIST_HTML "',null,null],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:593:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Network Flows','/" CONST_NET_FLOWS_HTML "',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:619:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Routers','/" CONST_LOCAL_ROUTERS_LIST_HTML "',null,null],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:621:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Ports Used','/" CONST_IP_PROTO_USAGE_HTML "',null,null],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:624:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Active Sessions','/" CONST_ACTIVE_SESSIONS_HTML "',null,null],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:626:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Host Fingerprint','/" CONST_HOSTS_LOCAL_FINGERPRINT_HTML "',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:630:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Network Traffic Map','/" CONST_NETWORK_MAP_HTML "',null,null],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:633:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " ],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:667:19: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendStringWOssi(" [null,'Utils',null,null,null,\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:675:19: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendStringWOssi(" [null,'Data Dump','/dump.html',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:683:4: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Plugins',null,null,null,\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:687:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:688:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'%s',null,null,null,\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:692:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:693:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'%sctivate','/" CONST_SHOW_PLUGINS_HTML "?%s=%d',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:704:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:705:25: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'View','/" CONST_PLUGINS_HEADER "%s',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:713:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:714:25: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Configure','/" CONST_PLUGINS_HEADER "%s',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:722:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:723:25: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'View/Configure','/" CONST_PLUGINS_HEADER "%s',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:730:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:731:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Describe','/" CONST_SHOW_PLUGINS_HTML "?%s',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:737:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:738:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [%s%s%s,'%s','/" CONST_PLUGINS_HEADER "%s/%s',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:750:9: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " ],\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:757:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'All','/" CONST_SHOW_PLUGINS_HTML "',null,null],\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:761:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Admin',null,null,null,\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:766:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'Switch NIC',null,null,null,\n"); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:774:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:775:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [null,'%s','/" CONST_SWITCH_NIC_HTML "?interface=%d',null,null],\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:782:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" ],\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:786:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " ['','Configure',null,null,null,\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c: In function 'ssiMenu_Body': http.c:802:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:810:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "
\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ globals-defines.h:1085:45: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_NTOP_LOGO "ntop_logo.png" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ http.c:816:23: note: in expansion of macro 'CONST_NTOP_LOGO' sendStringWOssi(CONST_NTOP_LOGO); ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:818:21: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendStringWOssi("\" class=\"reflect\" alt=\"ntop logo\" border=0>\n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:822:7: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " \n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:826:21: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendStringWOssi(" "); ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:830:5: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " \n" ^ globals-report.h:152:40: note: in definition of macro 'sendStringWOssi' #define sendStringWOssi(a) _sendString(a, 0) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c: In function 'processSSI': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:892:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (form): '%s'", ssiRequest); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:892:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (form): '%s'", ssiRequest); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:904:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (quotes): '%s'", ssiRequest); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:904:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (quotes): '%s'", ssiRequest); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:920:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "SSI: URL security: '%s' rejected (code=%d)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:920:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "SSI: URL security: '%s' rejected (code=%d)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:949:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "SSI: Invalid - NULL request ignored"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:949:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "SSI: Invalid - NULL request ignored"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from http.c:40:0: http.c:957:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:972:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

ERROR: Unrecognized SSI request, '"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:974:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("'"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:976:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(", with parm '"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:978:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("'"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:980:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c:985:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ http.c: In function 'sendFile': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1015:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Unable to open file %s - graphic not sent", fileName); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1015:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Unable to open file %s - graphic not sent", fileName); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c: In function '_sendStringLen': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1070:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (no close): '%s'", ssiStart); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1070:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "SSI: Ignored invalid (no close): '%s'", ssiStart); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1096:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, compressedFilePath, sizeof(compressedFilePath), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1097:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "/tmp/ntop-gzip-%d", fileSerial++); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1100:17: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] compressFileFd = gzopen(compressedFilePath, "wb"); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1101:19: note: in expansion of macro 'CONST_TRACE_INFO' if(0) traceEvent(CONST_TRACE_INFO, "gzopen(%s)=%p", compressedFilePath, compressFileFd); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1101:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(0) traceEvent(CONST_TRACE_INFO, "gzopen(%s)=%p", compressedFilePath, compressFileFd); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1104:18: warning: passing argument 1 of 'gzwrite' from incompatible pointer type [-Wincompatible-pointer-types] if(gzwrite(compressFileFd, theString, len) == 0) { ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1341:21: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzwrite OF((gzFile file, ^ http.c:1108:37: warning: passing argument 1 of 'gzerror' from incompatible pointer type [-Wincompatible-pointer-types] gzErrorMsg = (char*)gzerror(compressFileFd, &err); ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1536:30: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); ^ http.c:1108:22: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] gzErrorMsg = (char*)gzerror(compressFileFd, &err); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1110:22: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "gzwrite file error %d (%s)", errno, strerror(errno)); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1110:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "gzwrite file error %d (%s)", errno, strerror(errno)); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1112:15: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "gzwrite error %s(%d)", gzErrorMsg, err); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1112:36: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "gzwrite error %s(%d)", gzErrorMsg, err); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1114:17: warning: passing argument 1 of 'gzclose' from incompatible pointer type [-Wincompatible-pointer-types] gzclose(compressFileFd); ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1511:24: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzclose OF((gzFile file)); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1155:22: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "EPIPE while sending page to web client"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1155:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "EPIPE while sending page to web client"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1157:22: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1158:22: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "EPIPE while sending page to web client (skipping further warnings)"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1165:22: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "ECONNRESET while sending page to web client"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1165:40: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "ECONNRESET while sending page to web client"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1167:22: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1168:22: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "ECONNRESET while sending page to web client (skipping further warnings)"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1172:20: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "EBADF while sending page to web client"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1172:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "EBADF while sending page to web client"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1174:20: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "errno %d while sending page to web client", errno); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1174:38: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "errno %d while sending page to web client", errno); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1354:74: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_VERYNOISY CONST_VERYNOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1178:33: note: in expansion of macro 'CONST_TRACE_VERYNOISY' if(errno != 0) traceEvent(CONST_TRACE_VERYNOISY, "Failed text was %d bytes", (int)strlen(theString)); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1178:56: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(errno != 0) traceEvent(CONST_TRACE_VERYNOISY, "Failed text was %d bytes", (int)strlen(theString)); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from http.c:40:0: http.c: In function 'printHTMLheader': http.c:1201:20: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(0) sendString((myGlobals.runningPref.w3c == TRUE) ? CONST_W3C_DOCTYPE_LINE "\n" : "\n"); /* FIX */ ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1202:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1203:20: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(0) sendString((myGlobals.runningPref.w3c == TRUE) ? CONST_W3C_CHARTYPE_LINE "\n" : "\n"); /* FIX */ ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1206:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1208:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, "%s\n", title); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1208:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, "%s\n", title); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1211:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("ntop page\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1214:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1215:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1220:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1221:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1223:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1228:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1229:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1230:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1231:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1232:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1233:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1234:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1236:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1237:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1238:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1239:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1245:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1250:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c: In function 'printHTMLtrailer': http.c:1265:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1346:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Version: "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1347:27: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(useRed) sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1349:27: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(useRed) sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1350:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1354:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, "Listening on [%s]\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1354:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, "Listening on [%s]\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1361:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER - len, "%s%s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1361:78: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER - len, "%s%s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1371:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER-len, "]\n"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1371:81: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER-len, "]\n"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1379:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER-len, ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1380:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "with kernel (libpcap) filtering expression \"%s\"
\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1383:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, &buf[len], LEN_GENERAL_WORK_BUFFER-len, ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1384:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "for all packets (i.e. without a filtering expression)\n
"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1390:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, LEN_GENERAL_WORK_BUFFER, ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1391:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Web reports include only interface \"%s\"", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1395:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Web reports include all interfaces (merged)"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1398:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c: In function 'initAccessLog': globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1415:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Unable to create file %s. Access log is disabled.", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1415:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Unable to create file %s. Access log is disabled.", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c: In function 'logHTTPaccess': http.c:1451:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, theZone, sizeof(theZone), "%c%2.2ld%2.2ld", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1451:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, theZone, sizeof(theZone), "%c%2.2ld%2.2ld", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1458:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myUser, sizeof(myUser), " %s ", theHttpUser); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1458:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, myUser, sizeof(myUser), " %s ", theHttpUser); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c: In function 'returnHTTPpageBadCommunity': http.c:1535:19: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Bad Community", NULL, BITFLAG_HTML_NO_REFRESH | BITFLAG_HTML_NO_HEADING); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from http.c:40:0: http.c:1537:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

Invalid Community

" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c: In function 'returnHTTPspecialStatusCode': http.c:1559:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Error %d", HTTPstatus[statusIdx].statusCode); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1559:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Error %d", HTTPstatus[statusIdx].statusCode); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1562:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1563:3: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "

Error %d

\n%s\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1568:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1569:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "

Received request:

"%s"
", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c: In function 'returnHTTPredirect': http.c:1587:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Location: /"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1589:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c: In function 'sendHTTPHeader': http.c:1610:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "HTTP/1.0 %d %s\r\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1610:61: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "HTTP/1.0 %d %s\r\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1615:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("P3P: "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1617:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "cp=\"%s\"%s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1617:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "cp=\"%s\"%s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1623:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1624:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "policyref=\"%s\"", myGlobals.runningPref.P3Puri); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1627:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1634:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Date: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1634:61: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Date: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1638:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Cache-Control: max-age=3600, must-revalidate, public\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1643:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Expires: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1643:63: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Expires: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1646:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Cache-Control: no-cache\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1647:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Expires: 0\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1651:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Connection: close\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:1654:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:1655:3: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Server: ntop/%s/%d-bit (%s)\r\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:1660:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("WWW-Authenticate: Basic realm=\"ntop HTTP server\"\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1666:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: text/html\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1669:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: image/gif\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1672:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: image/jpeg\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1675:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: image/png\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1678:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: text/css\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1681:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: text/plain\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1684:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: application/octet-stream\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1687:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: application/json\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1690:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: application/javascript\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1693:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: text/xml\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1696:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: text/xml\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1699:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: image/svg+xml\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1702:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Type: application/pdf\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:1726:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c: In function 'checkURLsecurity': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1776:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "URL security(2): URL too long (len=%d)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1776:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "URL security(2): URL too long (len=%d)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1811:24: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1812:24: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "URL security(1): Found invalid percent in URL...DANGER...rejecting request partial (url=%s...)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1843:16: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1844:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "URL security(1): Found percent in decoded URL...DANGER...rejecting request (%s)", url); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1858:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "URL security(2): Found // in URL...rejecting request"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1858:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "URL security(2): Found // in URL...rejecting request"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1864:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "URL security(2): Found && in URL...rejecting request"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1864:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "URL security(2): Found && in URL...rejecting request"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1870:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "URL security(2): Found ?? in URL...rejecting request"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1870:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "URL security(2): Found ?? in URL...rejecting request"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1876:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "URL security(3): Found .. in URL...rejecting request"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1876:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "URL security(3): Found .. in URL...rejecting request"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:1881:13: note: in expansion of macro 'strdup' workURL = strdup(url); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1894:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1895:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "URL security(4): Prohibited character(s) at %d [%c] in URL... rejecting request", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:1897:5: note: in expansion of macro 'free' free(workURL); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:1913:5: note: in expansion of macro 'free' free(workURL); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:1918:5: note: in expansion of macro 'free' free(workURL); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:1955:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:1956:9: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "URL security(5): Found bad file extension (.%s) in URL...\n", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:1958:5: note: in expansion of macro 'free' free(workURL); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:1962:3: note: in expansion of macro 'free' free(workURL); ^ In file included from http.c:40:0: http.c: In function 'generateNewInternalPages': http.c:2054:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:2055:21: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Welcome to ntop!", NULL, BITFLAG_HTML_NO_REFRESH); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from http.c:40:0: http.c:2056:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

Problem

\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2060:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n

Is one which used to be part of ntop, but is no longer available.

\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2068:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:2069:21: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Welcome to ntop!", NULL, BITFLAG_HTML_NO_REFRESH); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from http.c:40:0: http.c:2070:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n
\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2071:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("ntop shows the current network usage. It displays a list of hosts that are\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2072:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("currently using the network and reports information concerning the IP\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2073:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("(Internet Protocol) and Fibre Channel (FC) traffic generated by each host. The traffic is \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2074:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("sorted according to host and protocol. Protocols (user configurable) include:\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2075:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
  • TCP/UDP/ICMP
  • (R)ARP
  • DLC
  • " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2078:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("NFS
  • X11
\n

\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2079:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

  • Fibre Channel
    • Control Traffic - SW2,GS3,ELS
    • SCSI

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2080:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    ntop's author strongly believes in \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2081:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("open source software and encourages everyone to modify, improve\n "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2082:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("and extend ntop in the interest of the whole Internet community according\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2083:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("to the enclosed licence (see COPYING).

    Problems, bugs, questions, "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2084:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("desirable enhancements, source code contributions, etc., should be sent to the "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: globals-defines.h:1096:45: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_MAILTO_LIST "mailing list" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:2085:16: note: in expansion of macro 'CONST_MAILTO_LIST' sendString(CONST_MAILTO_LIST ".

    \n"); ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2086:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    For information on ntop and information privacy, see "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2087:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("this page.

    \n
    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from ntop.h:515:0, from http.c:39: http.c: In function 'returnHTTPPage': globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2170:9: note: in expansion of macro 'strdup' host = strdup(&tkn[5]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2172:19: note: in expansion of macro 'strdup' domainNameParm = strdup(&tkn[4]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2174:22: note: in expansion of macro 'strdup' communityNameParm = strdup(&tkn[10]); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2178:11: note: in expansion of macro 'strdup' db_key = strdup(&tkn[4]); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2185:4: note: in expansion of macro 'free' free(db_val); ^ http.c:2193:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2195:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%d", val); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2197:13: note: in expansion of macro 'strdup' db_val = strdup(str_val); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2199:13: note: in expansion of macro 'strdup' db_val = strdup(&tkn[4]); ^ http.c:2247:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "%d", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2247:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "%d", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2249:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPolicy", tmp); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ http.c:2261:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "%d", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2261:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmp, sizeof(tmp), "%d", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2263:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPolicy", tmp); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:2289:13: note: in expansion of macro 'strdup' pageURI = strdup(pageName); ^ http.c:2294:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2295:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s/%s", myGlobals.spoolPath, pageURI); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:2298:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    ERROR: Can not locate image map file, request ignored

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2299:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Can not locate image map file '%s', ignored...", tmpStr); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2299:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Can not locate image map file '%s', ignored...", tmpStr); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2300:7: note: in expansion of macro 'free' free(pageURI); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2301:34: note: in expansion of macro 'free' if(host != NULL) free(host); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2302:34: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2303:26: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2304:26: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ In file included from http.c:40:0: http.c:2309:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    ERROR: Can not open image map file, request ignored

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2310:18: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Can not open image map file '%s', ignored...", tmpStr); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2310:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Can not open image map file '%s', ignored...", tmpStr); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2311:7: note: in expansion of macro 'free' free(pageURI); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2312:34: note: in expansion of macro 'free' if(host != NULL) free(host); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2313:34: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2314:26: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2315:26: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ http.c:2320:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2321:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s/html/%s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:2349:19: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("HTTP/1.1 304 Not Modified\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:2352:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Date: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2352:66: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Date: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:2354:19: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Connection: close\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2355:8: note: in expansion of macro 'free' free(pageURI); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2367:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Cannot open file '%s', ignored...", tmpStr); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2367:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Cannot open file '%s', ignored...", tmpStr); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2370:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "File %s not found on disk [%s][%d]", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2370:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "File %s not found on disk [%s][%d]", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2419:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Last-Modified: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2419:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Last-Modified: %s\r\n", theDate); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:2432:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Accept-Ranges: bytes\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:2435:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Content-Length: %d\r\n", (len = ftell(fd))); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2435:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), "Content-Length: %d\r\n", (len = ftell(fd))); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from http.c:40:0: http.c:2440:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\r\n"); /* mark the end of HTTP header */ ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:261:57: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define malloc(sz) ntop_safemalloc((unsigned int)sz, (char*)__FILE__, (int)__LINE__) ^ http.c:2444:21: note: in expansion of macro 'malloc' buffer = (char*)malloc(sz); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2451:5: note: in expansion of macro 'free' free(buffer); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2455:5: note: in expansion of macro 'free' free(pageURI); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2456:32: note: in expansion of macro 'free' if(host != NULL) free(host); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2457:32: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2458:24: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2459:24: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2469:3: note: in expansion of macro 'free' free(pageURI); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2472:32: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2473:24: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2474:24: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2484:32: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2485:24: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2486:24: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ http.c:2513:21: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Statistics reset requested...", NULL, BITFLAG_HTML_NO_REFRESH); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from http.c:40:0: http.c:2515:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    NOTE: Statistics will be reset at the next safe point, which " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:2556:23: warning: passing argument 1 of 'showPluginsList' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] showPluginsList(""); ^ In file included from http.c:40:0: globals-report.h:227:13: note: expected 'char *' but argument is of type 'const char *' extern void showPluginsList(char* pluginName); ^ http.c:2612:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "0"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ http.c:2612:53: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "0"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2613:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PRIVACY: Flag cleared, notice will display next run"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2613:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PRIVACY: Flag cleared, notice will display next run"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:1047:45: warning: passing argument 1 of 'returnHTTPredirect' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_PRIVACYNOTICE_HTML "privacyNotice.html" ^ http.c:2614:24: note: in expansion of macro 'CONST_PRIVACYNOTICE_HTML' returnHTTPredirect(CONST_PRIVACYNOTICE_HTML); ^ http.c:1582:6: note: expected 'char *' but argument is of type 'const char *' void returnHTTPredirect(char* destination) { ^ http.c:2616:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "2"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ http.c:2616:53: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("globals.displayPrivacyNotice", "2"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2617:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PRIVACY: Flag forced, notice will display each run"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2617:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "PRIVACY: Flag forced, notice will display each run"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:1047:45: warning: passing argument 1 of 'returnHTTPredirect' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_PRIVACYNOTICE_HTML "privacyNotice.html" ^ http.c:2618:24: note: in expansion of macro 'CONST_PRIVACYNOTICE_HTML' returnHTTPredirect(CONST_PRIVACYNOTICE_HTML); ^ http.c:1582:6: note: expected 'char *' but argument is of type 'const char *' void returnHTTPredirect(char* destination) { ^ http.c:2638:23: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Configure ntop", NULL, BITFLAG_HTML_NO_REFRESH); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ http.c:2640:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, tmpStr, sizeof (tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2641:8: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "No interface has been configured. Please configure ntop first.", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2644:34: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2645:26: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2646:26: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ http.c:2664:22: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf (__FILE__, __LINE__, tmpStr, sizeof (tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:2665:8: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Configure Ntop first. No packet " ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2668:34: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2669:26: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2670:26: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2688:15: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "NOTE: -L | --use-syslog=facility not specified, child processes will log to the default (%d).", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2688:33: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "NOTE: -L | --use-syslog=facility not specified, child processes will log to the default (%d).", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:2696:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "An error occurred while forking ntop [errno=%d]..", errno); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:2696:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "An error occurred while forking ntop [errno=%d]..", errno); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2705:38: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2706:30: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2707:30: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2729:34: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2730:26: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:2731:26: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ http.c:2742:30: warning: passing argument 1 of 'returnHTTPpageNotFound' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] returnHTTPpageNotFound("Python support disabled into this ntop instance"); ^ http.c:1500:6: note: expected 'char *' but argument is of type 'const char *' void returnHTTPpageNotFound(char* additionalText) { ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:1065:45: warning: passing argument 5 of 'printHostsTraffic' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_SORT_DATA_PROTOS_HTML "sortDataProtos.html" ^ http.c:2772:15: note: in expansion of macro 'CONST_SORT_DATA_PROTOS_HTML' pageNum, CONST_SORT_DATA_PROTOS_HTML, ^ In file included from http.c:40:0: globals-report.h:183:13: note: expected 'char *' but argument is of type 'const char *' extern void printHostsTraffic(int reportType, int sortedColumn, int revertOrder, ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:1064:45: warning: passing argument 5 of 'printHostsTraffic' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_SORT_DATA_IP_HTML "sortDataIP.html" ^ http.c:2777:15: note: in expansion of macro 'CONST_SORT_DATA_IP_HTML' pageNum, CONST_SORT_DATA_IP_HTML, showHostsMode, showLocalityMode, vlanId); ^ In file included from http.c:40:0: globals-report.h:183:13: note: expected 'char *' but argument is of type 'const char *' extern void printHostsTraffic(int reportType, int sortedColumn, int revertOrder, ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:1066:45: warning: passing argument 5 of 'printHostsTraffic' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_SORT_DATA_THPT_HTML "sortDataThpt.html" ^ http.c:2787:15: note: in expansion of macro 'CONST_SORT_DATA_THPT_HTML' pageNum, CONST_SORT_DATA_THPT_HTML, ^ In file included from http.c:40:0: globals-report.h:183:13: note: expected 'char *' but argument is of type 'const char *' extern void printHostsTraffic(int reportType, int sortedColumn, int revertOrder, ^ In file included from ntop.h:511:0, from http.c:39: globals-defines.h:981:45: warning: passing argument 5 of 'printHostsTraffic' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_SORT_DATA_HOST_TRAFFIC_HTML "dataHostTraffic.html" ^ http.c:2794:15: note: in expansion of macro 'CONST_SORT_DATA_HOST_TRAFFIC_HTML' pageNum, CONST_SORT_DATA_HOST_TRAFFIC_HTML, ^ In file included from http.c:40:0: globals-report.h:183:13: note: expected 'char *' but argument is of type 'const char *' extern void printHostsTraffic(int reportType, int sortedColumn, int revertOrder, ^ http.c:2952:54: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(myGlobals.actualReportDeviceId); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ http.c:2953:71: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(myGlobals.actualReportDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ http.c:2995:18: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Credits", NULL, BITFLAG_HTML_NO_REFRESH); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from http.c:40:0: http.c:2996:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("



    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2997:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    ntop was been created by "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2998:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:2999:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Luca Deri while studying how to model network traffic. He was unsatisfied"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3000:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("by the many network traffic analysis tools he had access to, and decided to "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3001:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("write a new application able to report network traffic information in a way"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3002:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("similar to the popular Unix top command. At that point in time (it was June "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3003:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("1998) ntop was born.

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3004:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    The current release is very different from the initial one as it includes"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3005:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("many features and much additional media support.

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3006:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    ntop has definitively more than one author:

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3011:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    • " CONST_MAILTO_STEFANO " has contributed several ideas and comments
    • "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3012:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    • " CONST_MAILTO_ABDELKADER " and " CONST_MAILTO_OLIVIER " provided IPv6 support
    • "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3013:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    • " CONST_MAILTO_DINESH " for SCSI & FiberChannel support
    • "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3014:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    • " CONST_MAILTO_BURTON " contributed to ntop in early 2000's.
    • "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3015:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    • " CONST_MAILTO_MEDICI " implemented RRD Alarm and Region Map.
    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3016:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    In addition, many other people downloaded this program, tested it,"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3017:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("joined the ntop "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3019:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("and ntop-dev mailing lists,"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3021:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("reported problems, changed it and improved significantly. This is because"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3022:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("they have realised that ntop doesn't belong uniquely to its author,"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3023:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("but to the whole Internet community. Their names are throught the ntop code.

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3024:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    The author would like to thank all these people who contributed to ntop"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ In file included from http.c:40:0: http.c:3025:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" and turned it into a first class network monitoring tool. Many thanks guys!

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:3082:18: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Hosts World Map", NULL, 0); ^ http.c:1196:6: note: expected 'char *' but argument is of type 'const char *' void printHTMLheader(char *title, char *htmlTitle, int headerFlags) { ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3111:30: note: in expansion of macro 'free' if(domainNameParm != NULL) free(domainNameParm); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3112:30: note: in expansion of macro 'free' if(db_key != NULL) free(db_key); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3113:30: note: in expansion of macro 'free' if(db_val != NULL) free(db_val); ^ globals-defines.h:1348:78: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ALWAYSDISPLAY CONST_ALWAYSDISPLAY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3136:16: note: in expansion of macro 'CONST_TRACE_ALWAYSDISPLAY' traceEvent(CONST_TRACE_ALWAYSDISPLAY, "WEB: Beginning actual shutdown sequence"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3136:43: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ALWAYSDISPLAY, "WEB: Beginning actual shutdown sequence"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3137:43: warning: passing argument 1 of '_setRunState' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] setRunState(FLAG_NTOPSTATE_SHUTDOWNREQ); ^ globals-core.h:32:14: note: expected 'char *' but argument is of type 'const char *' extern short _setRunState(char *file, int line, short newRunState); ^ http.c:2143:7: warning: variable 'vsanId' set but not used [-Wunused-but-set-variable] int vsanId = 0; ^ http.c: In function 'checkHTTPpassword': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3159:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "SECURITY: Loading items table"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3159:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "SECURITY: Loading items table"); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3161:49: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.securityItemsMutex, "load"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3161:55: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.securityItemsMutex, "load"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3163:41: warning: passing argument 2 of 'ntop_gdbm_firstkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] key = gdbm_firstkey(myGlobals.pwFile); ^ globals-core.h:358:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_firstkey(GDBM_FILE g, char* theFile, int theLine); ^ http.c:3167:51: warning: passing argument 3 of 'ntop_gdbm_nextkey' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_nextkey(myGlobals.pwFile, key); ^ globals-core.h:359:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_nextkey(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3171:13: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3172:6: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Number of entries in password file, %d at limit", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3178:47: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.securityItemsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ http.c:3184:47: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.securityItemsMutex, "test"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3184:53: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.securityItemsMutex, "test"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3202:45: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.securityItemsMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ http.c:3219:45: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_fetch(myGlobals.pwFile, key); ^ globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3222:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3223:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "SECURITY: request for url '%s' disallowed (I'm confused)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3234:8: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] user = "", thePw[0] = '\0', outBuffer[i] = '\0'; ^ http.c:3255:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, users, LEN_GENERAL_WORK_BUFFER, "1%s", user); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:3255:69: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, users, LEN_GENERAL_WORK_BUFFER, "1%s", user); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3259:30: note: in expansion of macro 'free' if(nextkey.dptr != NULL) free(nextkey.dptr); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3266:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3267:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "SECURITY: user '%s' request for url '%s' disallowed", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3274:3: note: in expansion of macro 'free' free(nextkey.dptr); ^ http.c:3312:45: warning: passing argument 3 of 'ntop_gdbm_fetch' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] nextkey = gdbm_fetch(myGlobals.pwFile, key); ^ globals-core.h:360:14: note: expected 'char *' but argument is of type 'const char *' extern datum ntop_gdbm_fetch(GDBM_FILE g, datum d, char* theFile, int theLine); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3326:5: note: in expansion of macro 'free' free (nextkey.dptr); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3353:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3354:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "SECURITY: user '%s' request for url '%s' disallowed", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c: In function 'compressAndSendData': http.c:3374:14: warning: passing argument 1 of 'gzflush' from incompatible pointer type [-Wincompatible-pointer-types] if(gzflush(compressFileFd, Z_FINISH) != Z_OK) { ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1412:21: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush)); ^ http.c:3377:22: warning: passing argument 1 of 'gzerror' from incompatible pointer type [-Wincompatible-pointer-types] err, gzerror(compressFileFd, &err)); ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1536:30: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3376:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "gzflush error %d (%s)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3376:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "gzflush error %d (%s)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3380:11: warning: passing argument 1 of 'gzclose' from incompatible pointer type [-Wincompatible-pointer-types] gzclose(compressFileFd); ^ In file included from ntop.h:428:0, from http.c:39: /usr/include/zlib.h:1511:24: note: expected 'gzFile {aka struct gzFile_s *}' but argument is of type 'FILE * {aka struct _IO_FILE *}' ZEXTERN int ZEXPORT gzclose OF((gzFile file)); ^ In file included from http.c:40:0: http.c:3391:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Content-Encoding: gzip\r\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ http.c:1190:6: note: expected 'char *' but argument is of type 'const char *' void _sendString(char *theString, int allowSSI) { ^ http.c:3393:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, tmpStr, sizeof(tmpStr), ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c:3394:3: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Content-Length: %d\r\n\r\n", (len = ftell(fd))); ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ http.c: In function 'handleHTTPrequest': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3451:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "clearing lockout for address %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3451:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "clearing lockout for address %s", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3456:13: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "Rejected request from address %s " ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3456:32: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "Rejected request from address %s " ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:268:42: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define strdup(p) ntop_safestrdup(p, (char*)__FILE__, (int)__LINE__) ^ http.c:3520:22: note: in expansion of macro 'strdup' requestedURLCopy = strdup(requestedURL); ^ globals-defines.h:1350:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_ERROR CONST_ERROR_TRACE_LEVEL, __FILE__, __LINE__ ^ http.c:3523:16: note: in expansion of macro 'CONST_TRACE_ERROR' traceEvent(CONST_TRACE_ERROR, "URL security: '%s' rejected (code=%d)(client=%s)", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ http.c:3523:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_ERROR, "URL security: '%s' rejected (code=%d)(client=%s)", ^ In file included from ntop.h:515:0, from http.c:39: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3561:5: note: in expansion of macro 'free' free(requestedURLCopy); ^ globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ http.c:3565:3: note: in expansion of macro 'free' free(requestedURLCopy); ^ http.c:3595:38: warning: passing argument 2 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "returnHTTPPage"); ^ globals-core.h:618:44: note: in definition of macro 'accessMutex' #define accessMutex(a, b) _accessMutex(a, b, __FILE__, __LINE__) ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3595:54: warning: passing argument 3 of '_accessMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] accessMutex(&myGlobals.purgeMutex, "returnHTTPPage"); ^ globals-core.h:613:14: note: expected 'char *' but argument is of type 'const char *' extern int _accessMutex(PthreadMutex *mutexId, char* where, char* fileName, int fileLine); ^ http.c:3611:37: warning: passing argument 2 of '_releaseMutex' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] releaseMutex(&myGlobals.purgeMutex); ^ globals-core.h:616:13: note: expected 'char *' but argument is of type 'const char *' extern int _releaseMutex(PthreadMutex *mutexId, char* fileName, int fileLine); ^ http.c: In function 'readHTTPpostData': http.c:3646:31: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BufferTooSmall(buf, buflen); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-core.h:877:64: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define BufferTooSmall(buf, len) traceEvent(CONST_TRACE_ERROR, "Buffer [buffer len=%d] too small @ %s:%d", len, __FILE__,__LINE__) ^ http.c:3646:5: note: in expansion of macro 'BufferTooSmall' BufferTooSmall(buf, buflen); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ /bin/sh ./libtool --tag=CC --mode=compile x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c -o report.lo report.c libtool-default: compile: x86_64-alt-linux-gcc -DHAVE_CONFIG_H -I. -I. -DNETSNMP_ENABLE_IPV6 -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib64/perl5/CORE -Wall -Wstrict-prototypes -Wwrite-strings -Wcast-qual -I/usr/include/libnl3 -I. -I/usr/include -I/usr/local/include -DLINUX -I/usr/local/include -I/opt/local/include -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -pipe -Wall -g -O2 -I/usr/local/include -I/opt/local/include -Wshadow -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -c report.c -fPIC -DPIC -o .libs/report.o In file included from graph.c:29:0: graph.c: In function 'send_graph_header': graph.c:41:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:67:25: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(is_pie) sendString(" \"pieRadius\": 0.42, \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:69:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" \"colorScheme\": PlotKit.Base.palette(PlotKit.Base.baseColors()[0]),\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:70:25: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(is_pie) sendString(" \"backgroundColor\": PlotKit.Base.baseColors()[0].lighterColorWithLevel(1),\n" ); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:71:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" \"xTicks\": ["); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c: In function 'send_graph_middle': graph.c:77:12: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("]\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c: In function 'send_graph_footer': graph.c:89:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("];\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:95:12: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\", opts, $(\'canvas"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c:97:12: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\'), [data1]);\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c: In function 'build_chart': graph.c:148:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(", [1, 0.01]"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ graph.c: In function 'hostTrafficDistrib': graph.c:162:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:162:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:163:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:163:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:214:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "TCP"; ^ graph.c:220:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "UDP"; ^ graph.c:225:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "ICMP"; ^ graph.c:230:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "IPv6"; ^ graph.c:235:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "GRE"; ^ graph.c:240:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "IPSEC"; ^ graph.c:246:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "STP"; ^ graph.c:251:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "DLC"; ^ graph.c:256:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "(R)ARP"; ^ graph.c:261:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "NetBios"; ^ graph.c:266:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "Other"; ^ graph.c:273:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "TCP"; ^ graph.c:279:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "UDP"; ^ graph.c:284:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "ICMP"; ^ graph.c:289:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "IPv6"; ^ graph.c:294:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "GRE"; ^ graph.c:299:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "IPSEC"; ^ graph.c:305:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "STP"; ^ graph.c:310:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "DLC"; ^ graph.c:315:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "(R)ARP"; ^ graph.c:320:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "NetBios"; ^ graph.c:325:49: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "Other"; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:350:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Graph failure (1)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:350:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Graph failure (1)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:356:5: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'hostFragmentDistrib': graph.c:364:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:364:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:365:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:365:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:378:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "TCP"; ^ graph.c:383:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "UDP"; ^ graph.c:388:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "ICMP"; ^ graph.c:393:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "TCP"; ^ graph.c:398:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "UDP"; ^ graph.c:403:47: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > MIN_SLICE_PERCENTAGE) lbl[num++] = "ICMP"; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:408:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Graph failure (2)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:408:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Graph failure (2)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:413:5: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'hostTimeTrafficDistribution': graph.c:421:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:421:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:422:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:422:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", ^ graph.c:423:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:423:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:441:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "12-1AM"; ^ graph.c:444:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "1-2AM"; ^ graph.c:447:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "2-3AM"; ^ graph.c:450:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "3-4AM"; ^ graph.c:453:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "4-5AM"; ^ graph.c:456:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "5-6AM"; ^ graph.c:459:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "6-7AM"; ^ graph.c:462:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "7-8AM"; ^ graph.c:465:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "8-9AM"; ^ graph.c:468:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "9-10AM"; ^ graph.c:471:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "10-11AM"; ^ graph.c:474:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "11AM-12PM"; ^ graph.c:477:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "12-1PM"; ^ graph.c:480:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "1-2PM"; ^ graph.c:483:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "2-3PM"; ^ graph.c:486:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "3-4PM"; ^ graph.c:489:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "4-5PM"; ^ graph.c:492:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "5-6PM"; ^ graph.c:495:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "6-7PM"; ^ graph.c:498:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "7-8PM"; ^ graph.c:501:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "8-9PM"; ^ graph.c:504:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "9-10PM"; ^ graph.c:507:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "10-11PM"; ^ graph.c:510:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "11PM-12AM"; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:517:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Graph failure (2)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:517:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Graph failure (2)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:522:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'hostTotalFragmentDistrib': graph.c:529:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:529:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:530:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:530:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:546:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Frag"; ^ graph.c:549:33: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(p[num] > 0) { lbl[num++] = "Non Frag"; } ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:552:18: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Graph failure (3)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:552:39: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Graph failure (3)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:557:5: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'hostIPTrafficDistrib': graph.c:565:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:565:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", ^ graph.c:566:6: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:10: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:14: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:22: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:30: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:34: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:566:42: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "", "", "", "", "", "", "", "", "", "" }; ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:571:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "Graph failure (5)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:571:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "Graph failure (5)"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:592:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "IPSEC"; ^ graph.c:616:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Other"; ^ graph.c:621:18: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Other"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:626:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'pktSizeDistribPie': graph.c:633:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:633:55: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "", "" }; ^ graph.c:639:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 64"; ^ graph.c:645:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 128"; ^ graph.c:651:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 256"; ^ graph.c:657:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 512"; ^ graph.c:663:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 1024"; ^ graph.c:669:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 1518"; ^ graph.c:676:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 2500"; ^ graph.c:681:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 6500"; ^ graph.c:686:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 9000"; ^ graph.c:691:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "> 9000"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:704:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'pktTTLDistribPie': graph.c:711:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:31: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:35: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:43: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:47: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:711:51: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "", "", "", "", "", "", "" }; ^ graph.c:717:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "<= 32"; ^ graph.c:723:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "33 - 64"; ^ graph.c:729:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "65 - 96"; ^ graph.c:735:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "97 - 128"; ^ graph.c:741:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "129 - 160"; ^ graph.c:747:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "161 - 192"; ^ graph.c:753:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "193 - 224"; ^ graph.c:759:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "225 - 255"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:763:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'ipProtoDistribPie': graph.c:770:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "Loc", "Rem->Loc", "Loc->Rem" }; ^ graph.c:770:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "Loc", "Rem->Loc", "Loc->Rem" }; ^ graph.c:770:38: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "Loc", "Rem->Loc", "Loc->Rem" }; ^ graph.c:776:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Loc"; ^ graph.c:782:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Rem->Loc"; ^ graph.c:788:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Loc->Rem"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:793:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'interfaceTrafficPie': globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:813:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "interfaceTrafficPie: no interfaces to draw"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:813:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "interfaceTrafficPie: no interfaces to draw"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ graph.c:828:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, "interfaceTrafficPie: no interfaces to draw"); ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:828:37: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_WARNING, "interfaceTrafficPie: no interfaces to draw"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:832:3: note: in expansion of macro 'build_pie' build_pie(myDevices, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'pktCastDistribPie': graph.c:839:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "" }; ^ graph.c:839:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "" }; ^ graph.c:839:27: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "", "", "" }; ^ graph.c:849:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Unicast"; ^ graph.c:855:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Broadcast"; ^ graph.c:866:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[num++] = "Multicast"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:869:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'drawTrafficPie': graph.c:877:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "IP", "Non IP" }; ^ graph.c:877:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] char *lbl[] = { "IP", "Non IP" }; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:891:3: note: in expansion of macro 'build_pie' build_pie(num, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'drawGlobalProtoDistribution': graph.c:902:88: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].tcpBytes.value; lbl[idx] = "TCP"; idx++; } ^ graph.c:904:88: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].udpBytes.value; lbl[idx] = "UDP"; idx++; } ^ graph.c:906:89: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].icmpBytes.value; lbl[idx] = "ICMP"; idx++; } ^ graph.c:908:92: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].otherIpBytes.value; lbl[idx] = "Other IP"; idx++; } ^ graph.c:910:92: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].arpRarpBytes.value; lbl[idx] = "(R)ARP"; idx++; } ^ graph.c:912:88: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].dlcBytes.value; lbl[idx] = "DLC"; idx++; } ^ graph.c:914:89: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].ipsecBytes.value;lbl[idx] = "IPsec"; idx++; } ^ graph.c:916:92: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].netbiosBytes.value; lbl[idx] = "NetBios"; idx++; } ^ graph.c:918:88: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].greBytes.value; lbl[idx] = "GRE"; idx++; } ^ graph.c:920:89: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].ipv6Bytes.value; lbl[idx] = "IPv6"; idx++; } ^ graph.c:922:88: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].stpBytes.value; lbl[idx] = "STP"; idx++; } ^ graph.c:924:90: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] p[idx] = myGlobals.device[myGlobals.actualReportDeviceId].otherBytes.value; lbl[idx] = "Other"; idx++; } ^ graph.c:156:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_bar(a, b, c) build_chart(0, "bar", a, b, c, 600, 200) ^ graph.c:949:3: note: in expansion of macro 'build_bar' build_bar(idx, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'drawGlobalIpProtoDistribution': graph.c:995:14: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbl[idx] = "Other"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:1002:3: note: in expansion of macro 'build_pie' build_pie(idx, p, lbl); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ graph.c: In function 'drawHostsDistanceGraph': graph.c:1017:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, labels[i], sizeof(labels[i]), "Local/Direct"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ graph.c:1017:71: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, labels[i], sizeof(labels[i]), "Local/Direct"); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ graph.c:1019:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, labels[i], sizeof(labels[i]), "%d Hops", i); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ graph.c:1019:71: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, labels[i], sizeof(labels[i]), "%d Hops", i); ^ In file included from ntop.h:515:0, from graph.c:26: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ graph.c:1024:53: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(myGlobals.actualReportDeviceId); ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ graph.c:1025:70: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(myGlobals.actualReportDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ graph.c:1039:21: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] lbls[numPoints] = "Unknown Host Distance"; ^ graph.c:154:44: warning: passing argument 2 of 'build_chart' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define build_pie(a, b, c) build_chart(1, "pie", a, b, c, 350, 200) ^ graph.c:1046:3: note: in expansion of macro 'build_pie' build_pie(30, graphData, lbls); ^ graph.c:121:13: note: expected 'char *' but argument is of type 'const char *' static void build_chart(u_char is_pie, char *the_type, int num, float *p, ^ In file included from report.c:22:0: report.c: In function 'printBandwidthFooter': report.c:29:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    NOTE:

    \n
      " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c: In function 'checkReportDevice': globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:56:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, "Device %2d. %-30s%s%s%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:56:35: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_NOISY, "Device %2d. %-30s%s%s%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:68:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:69:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "INITWEB: Merging interfaces, reporting device forced to 0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:70:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c:70:45: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c:71:29: warning: passing argument 1 of 'fetchPrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] } else if(fetchPrefsValue("actualReportDeviceId", value, sizeof(value)) == -1) { ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:472:12: note: expected 'char *' but argument is of type 'const char *' extern int fetchPrefsValue(char *key, char *value, int valueLen); ^ globals-defines.h:1353:70: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_NOISY CONST_NOISY_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:72:16: note: in expansion of macro 'CONST_TRACE_NOISY' traceEvent(CONST_TRACE_NOISY, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:73:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "INITWEB: Reporting device not set, defaulting to 0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:74:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c:74:45: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:76:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:77:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "INITWEB: Reporting device (%d) invalid (> max, %d), defaulting to 0", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:79:21: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c:79:45: warning: passing argument 2 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", "0"); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c:83:22: warning: passing argument 1 of 'fetchPrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] if(fetchPrefsValue("actualReportDeviceId", value, sizeof(value)) == -1) { ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:472:12: note: expected 'char *' but argument is of type 'const char *' extern int fetchPrefsValue(char *key, char *value, int valueLen); ^ globals-defines.h:1351:72: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_WARNING CONST_WARNING_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:91:16: note: in expansion of macro 'CONST_TRACE_WARNING' traceEvent(CONST_TRACE_WARNING, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:92:16: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "INITWEB: Reporting device (%d) invalid (virtual), using 1st non-virtual device", i); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:96:23: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, value, sizeof(value), "%d", i); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:96:65: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, value, sizeof(value), "%d", i); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:97:25: warning: passing argument 1 of 'storePrefsValue' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] storePrefsValue("actualReportDeviceId", value); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:474:13: note: expected 'char *' but argument is of type 'const char *' extern void storePrefsValue(char *key, char *value); ^ report.c: In function 'initReports': globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:111:14: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:112:7: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Note: Reporting device initally set to %d [%s]%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c: In function 'addPageIndicator': report.c:160:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, shortBuf, sizeof(shortBuf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:161:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s%d", revertOrder == 1 ? "-" : "", numCol); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:165:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, prevBuf, sizeof(prevBuf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:166:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "
  • \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:298:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:298:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:305:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:305:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:312:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:312:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:317:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:317:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:328:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:328:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:335:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:335:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:339:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:339:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:348:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:349:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [%u total " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:362:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:380:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:423:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:424:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:433:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:433:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:441:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:441:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:449:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:449:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:457:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:457:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:470:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:518:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    \"Back " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:174:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, nextBuf, sizeof(nextBuf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:175:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "\"Next " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:182:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:183:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:186:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", actPage, numPages); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:186:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", actPage, numPages); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:190:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    [ %d / %d ] [ %d / %d ]
    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:191:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c: In function 'printTrafficSummary': report.c:203:19: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Global Traffic Summary", NULL, 0); ^ In file included from report.c:22:0: globals-report.h:161:13: note: expected 'char *' but argument is of type 'const char *' extern void printHTMLheader(char *title, char *htmlTitle, int headerFlags); ^ report.c:205:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    "TABLE_ON"\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:207:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:210:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""TABLE_ON"
    Network Interface(s)
    \n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:215:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:216:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:222:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:223:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "device.name.%s", myGlobals.device[i].name); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:228:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:243:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:247:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:247:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:251:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:259:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:259:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:263:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:263:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:267:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:267:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:271:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:271:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:275:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:290:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:294:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    NameIPv6 Addresses
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:228:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:233:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:233:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:243:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s%s%s%s%s%s "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:256:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:257:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("%d%d%d%d%d%d%s%s"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:281:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/%d
    ", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:281:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/%d
    ", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:287:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:289:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    "TABLE_OFF); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:295:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    Local Domain Name
    Local Domain Name
    Sampling Since
    Sampling Since
    Sampling Since
    Sampling Since
    Last Packet Seen
    Last Packet Seen
    Hosts
    Hosts
    Hosts
    HostsTraffic Filter
    Traffic Filter
    " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:413:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:414:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "
    Dropped (libpcap)
    Dropped (ntop)
    Unicast
    Unicast
    Broadcast
    Broadcast
    Multicast
    Multicast
    Packets too long [> %d]
    Packets too long [> %d]
    Network Load\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:471:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:471:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:477:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:477:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:485:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:485:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:493:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:493:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:501:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:501:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:512:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    Actual%s
    Actual%s
    Last Minute
    Last Minute
    Last 5 Minutes
    Last 5 Minutes
    Peak
    Peak
    Average
    Average
    "TABLE_OFF"
    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:521:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c: In function 'printTrafficStatistics': report.c:535:19: warning: passing argument 1 of 'printHTMLheader' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] printHTMLheader("Global Traffic Statistics", NULL, 0); ^ In file included from report.c:22:0: globals-report.h:161:13: note: expected 'char *' but argument is of type 'const char *' extern void printHTMLheader(char *title, char *htmlTitle, int headerFlags); ^ report.c:537:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    "TABLE_ON"\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:539:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:542:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""TABLE_ON"
    Network Interface(s)
    \n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:547:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:548:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:553:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:554:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "device.name.%s", myGlobals.device[i].name); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:559:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:572:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:576:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:576:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:580:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:588:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:588:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:592:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:592:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:596:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:596:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:600:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:600:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:604:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:619:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:623:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    NameIPv6 Addresses
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:559:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:564:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:564:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    " ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:572:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s%s%s%s%s%s "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:585:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:586:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("%d%d%d%d%d%d%s%s"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:610:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/%d
    ", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:610:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/%d
    ", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:616:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(" "); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:618:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    "TABLE_OFF); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:624:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:627:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Local Domain Name" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:627:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Local Domain Name" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:634:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Sampling Since" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:634:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Sampling Since" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:643:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Sampling Since" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:643:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Sampling Since" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:648:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Last Packet Seen" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:648:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Last Packet Seen" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:656:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:656:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:663:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Hosts" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:663:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Hosts" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:667:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Hosts" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:667:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Hosts" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:676:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:677:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] " [%u total
    Traffic Filter" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:690:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Traffic Filter" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:706:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:714:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString(""TABLE_OFF"
    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:716:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:717:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Traffic Report for '%s' [switch]", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:721:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    "TABLE_ON"\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:723:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:760:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:761:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:770:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:771:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:777:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:778:5: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:784:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:784:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:790:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:790:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:797:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:797:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:805:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:814:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:825:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:825:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:829:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:829:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:835:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:835:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:842:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:842:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:849:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:849:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:856:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:856:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:863:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:863:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:870:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:870:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:879:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:879:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:886:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:886:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:893:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:893:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:900:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:900:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:918:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:921:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:932:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    Packets\n" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:748:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:749:9: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "
    Dropped (libpcap)
    Dropped (ntop)
    Total Received (ntop)
    Total Packets Processed
    Unicast
    Unicast
    Broadcast
    Broadcast
    Multicast
    Multicast
    " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:814:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    Shortest
    Shortest
    Average Size
    Average Size
    Longest
    Longest
    Size <= 64 bytes
    Size <= 64 bytes
    64 < Size <= 128 bytes
    64 < Size <= 128 bytes
    128 < Size <= 256 bytes
    128 < Size <= 256 bytes
    256 < Size <= 512 bytes
    256 < Size <= 512 bytes
    512 < Size <= 1024 bytes
    512 < Size <= 1024 bytes
    1024 < Size <= 1518 bytes
    1024 < Size <= 1518 bytes
    1518 < Size <= 2500 bytes
    1518 < Size <= 2500 bytes
    2500 < Size <= 6500 bytes
    2500 < Size <= 6500 bytes
    6500 < Size <= 9000 bytes
    6500 < Size <= 9000 bytes
    > 9000 bytes
    > 9000 bytes
    " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:921:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    Packets too long [> %d]
    Packets too long [> %d]
    "TABLE_OFF"Traffic\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:933:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:933:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:940:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:940:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:947:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:947:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:964:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:964:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:970:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:989:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:993:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:993:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1001:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1001:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1009:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1009:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1017:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1017:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1025:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1025:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1033:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1033:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1041:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1041:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1049:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1049:54: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:1058:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    Total
    Total
    IPv4 Traffic
    IPv4 Traffic
    Fragmented IPv4 Traffic
    Fragmented IPv4 Traffic
    Non IPv4 Traffic
    Non IPv4 Traffic
    " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:989:16: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "
    Average TTL
    Average TTL
    TTL <= 32
    TTL <= 32
    32 < TTL <= 64
    32 < TTL <= 64
    64 < TTL <= 96
    64 < TTL <= 96
    96 < TTL <= 128
    96 < TTL <= 128
    128 < TTL <= 160
    128 < TTL <= 160
    160 < TTL <= 192
    160 < TTL <= 192
    192 < TTL <= 224
    192 < TTL <= 224
    224 < TTL <= 256
    224 < TTL <= 256
    " ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1063:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    "TABLE_OFF""); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1068:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Remote Hosts Distance" ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1076:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("Network Load\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1077:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1077:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1083:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1083:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1091:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1091:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1099:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1099:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1107:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1107:59: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:1132:18: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    Actual%s
    Actual%s
    Last Minute
    Last Minute
    Last 5 Minutes
    Last 5 Minutes
    Peak
    Peak
    Average
    Average
    "TABLE_OFF"\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1141:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1141:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s/interfaces/%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1148:21: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1149:7: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "Historical Data\n" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:1166:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("
    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1169:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ In file included from ntop.h:515:0, from report.c:21: report.c: In function 'printHostsTraffic': globals-core.h:263:46: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define calloc(c,sz) ntop_safecalloc(c, sz, (char*)__FILE__, (int)__LINE__) ^ report.c:1263:14: note: in expansion of macro 'calloc' vlanList = calloc(1, MAX_VLAN); if(vlanList == NULL) return; ^ report.c:1275:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Activity: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1275:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Activity: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1280:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Traffic [All Protocols]: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1280:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Traffic [All Protocols]: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1285:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Traffic [TCP/IP]: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1285:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Traffic [TCP/IP]: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1290:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Throughput: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1290:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "Network Throughput: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1293:19: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "?: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1293:57: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "?: "); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1321:53: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(myGlobals.actualReportDeviceId); ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ report.c:1322:70: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(myGlobals.actualReportDeviceId, el)) ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ report.c:1337:8: warning: passing argument 2 of 'mallocAndInitWithReportWarn' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "printHostsTraffic"); ^ In file included from report.c:22:0: globals-report.h:59:14: note: expected 'char *' but argument is of type 'const char *' extern void *mallocAndInitWithReportWarn(int sz, char *from); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:259:72: warning: cast discards 'const' qualifier from pointer target type [-Wcast-qual] #define free(a) { void *__t = (a); ntop_safefree((void**)&(__t), (char*)__FILE__, (int)__LINE__); a = __t; } ^ report.c:1339:5: note: in expansion of macro 'free' free(vlanList); ^ report.c:1343:53: warning: passing argument 2 of '_getFirstHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] for(el=getFirstHost(myGlobals.actualReportDeviceId); ^ globals-core.h:494:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getFirstHost(u_int actualDeviceId, char *file, int line); ^ report.c:1344:70: warning: passing argument 3 of '_getNextHost' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] el != NULL; el = getNextHost(myGlobals.actualReportDeviceId, el)) { ^ globals-core.h:496:21: note: expected 'char *' but argument is of type 'const char *' extern HostTraffic* _getNextHost(u_int actualDeviceId, HostTraffic *host, char *file, int line); ^ globals-defines.h:1352:69: warning: passing argument 2 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] #define CONST_TRACE_INFO CONST_INFO_TRACE_LEVEL, __FILE__, __LINE__ ^ report.c:1414:13: note: in expansion of macro 'CONST_TRACE_INFO' traceEvent(CONST_TRACE_INFO, "%02d) %s", ^ globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:1414:31: warning: passing argument 4 of 'traceEvent' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] traceEvent(CONST_TRACE_INFO, "%02d) %s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:674:13: note: expected 'char *' but argument is of type 'const char *' extern void traceEvent(int eventTraceLevel, char* file, ^ report.c:1532:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1532:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1552:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1553:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1565:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1565:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1573:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1573:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1578:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1578:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1598:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1599:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1611:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1611:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1620:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1621:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1627:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1627:56: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1652:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1653:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1667:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1667:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1677:18: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1678:4: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1690:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1690:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1702:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1702:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1716:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1716:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1725:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1725:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1738:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1738:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1752:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1752:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1761:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1761:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1775:17: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1775:55: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:1787:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("0"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1795:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1795:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1802:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1802:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1821:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1821:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1840:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1840:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s" ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1862:20: warning: passing argument 1 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", getRowColor(), webHostName); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ report.c:1862:58: warning: passing argument 5 of 'safe_snprintf' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] safe_snprintf(__FILE__, __LINE__, buf, sizeof(buf), "%s", getRowColor(), webHostName); ^ In file included from ntop.h:515:0, from report.c:21: globals-core.h:238:12: note: expected 'char *' but argument is of type 'const char *' extern int safe_snprintf(char* file, int line, ^ In file included from report.c:22:0: report.c:1869:13: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1879:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"TABLE_OFF"\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1895:16: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    Note: These counters do not include broadcasts and will not equal the 'Global Protocol Distribution'

    \n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1899:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("\n"); ^ globals-report.h:151:35: note: in definition of macro 'sendString' #define sendString(a) _sendString(a, 1) ^ globals-report.h:153:13: note: expected 'char *' but argument is of type 'const char *' extern void _sendString(char *theString, int allowSSI); ^ report.c:1906:14: warning: passing argument 1 of '_sendString' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] sendString("

    NOTE:

    \n