Snippets for addrwatch 1.0.2 from Alpine armv7
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-armv7/community/addrwatch/addrwatch-1.0.2-r1.log.
-
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 -
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) { | ^ -
output_flatfile.c:25:41: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'time_t' {aka 'long long int'} [-Wformat=] 25 | fprintf(cfg.data_fd, "%lu %s %u %s %s %s\n", | ~~^ | | | long unsigned int | %llu 26 | p->pcap_header->ts.tv_sec, p->ifc->name, p->vlan_tag, | ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | time_t {aka long long int} -
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); | ^~~~~~ -
storage.c:132:27: warning: format '%lu' expects argument of type 'long unsigned int', but argument 2 has type 'time_t' {aka 'long long int'} [-Wformat=] 132 | printf("%lu %s %u %s %s %s\n", tstamp, p->ifc->name, | ~~^ ~~~~~~ | | | | long unsigned int time_t {aka long long int} | %llu -
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); | ^ -
addrwatch.c:534:17: warning: 'pcap_lookupdev' is deprecated: use 'pcap_findalldevs' and use the first device [-Wdeprecated-declarations] 534 | dev = pcap_lookupdev(errbuf); | ^~~