Snippets for addrwatch 1.0.2 from Fedora i686
Sourced from https://kojipkgs.fedoraproject.org/packages/addrwatch/1.0.2/17.fc45/data/logs/i686/build.log.
-
parse.c:130:36: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 130 | if (p->len < (ip6e->ip6e_len + 1) * 8) { | ^ -
mcache.c:56:51: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 56 | node = (struct mcache_node *)calloc(sizeof(*node), 1); | ^ -
storage.c:27:46: warning: ‘calloc’ sizes specified with ‘sizeof’ in the earlier argument and not in the later argument [-Wcalloc-transposed-args] 27 | ip = (struct ip_node *)calloc(sizeof(struct ip_node), 1); | ^~~~~~ -
addrwatch_stdout.c:19:19: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 19 | printf("%lu %s %u %s %s %s\n", e->timestamp, e->interface, e->vlan_tag, | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int uint64_t {aka long long unsigned int} | %llu -
addrwatch_syslog.c:21:29: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=] 21 | syslog(LOG_INFO, "%lu %s %u %s %s %s", e->timestamp, e->interface, | ~~^ ~~~~~~~~~~~~ | | | | long unsigned int uint64_t {aka long long unsigned int} | %llu -
addrwatch.c:534:17: warning: ‘pcap_lookupdev’ is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 534 | dev = pcap_lookupdev(errbuf); | ^~~