--- tme/host/bsd/bsd-bpf.c 2018/04/24 16:37:52 1.1 +++ tme/host/bsd/bsd-bpf.c 2018/04/24 16:39:12 1.1.1.2 @@ -1,4 +1,4 @@ -/* $Id: bsd-bpf.c,v 1.1 2018/04/24 16:37:52 root Exp $ */ +/* $Id: bsd-bpf.c,v 1.1.1.2 2018/04/24 16:39:12 root Exp $ */ /* host/bsd/bsd-bpf.c - BSD Berkeley Packet Filter Ethernet support: */ @@ -34,7 +34,7 @@ */ #include -_TME_RCSID("$Id: bsd-bpf.c,v 1.1 2018/04/24 16:37:52 root Exp $"); +_TME_RCSID("$Id: bsd-bpf.c,v 1.1.1.2 2018/04/24 16:39:12 root Exp $"); /* includes: */ #include "bsd-impl.h" @@ -204,7 +204,7 @@ _tme_bsd_bpf_filter(struct tme_ethernet_ void _tme_bsd_bpf_dump_filter(const struct bpf_program *program) { - int pc; + unsigned int pc; FILE *fp; const struct bpf_insn *insn; char ldsize; @@ -212,7 +212,7 @@ _tme_bsd_bpf_dump_filter(const struct bp fp = stderr; for (pc = 0, insn = program->bf_insns; - pc < program->bf_len; + pc < (unsigned int) program->bf_len; pc++, insn++) { /* the PC: */