]> The Tcpdump Group git mirrors - libpcap/commitdiff
Squelch some warnings.
authorGuy Harris <[email protected]>
Sun, 11 Nov 2018 01:36:28 +0000 (17:36 -0800)
committerGuy Harris <[email protected]>
Sun, 11 Nov 2018 01:36:28 +0000 (17:36 -0800)
gencode.c

index d3183e0c27d1779f474e3cd5f95128112a2f1ca0..296626794b58326f1bad87c356002f4a202cd001 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -8363,7 +8363,8 @@ gen_pf_ifname(compiler_state_t *cstate, const char *ifname)
                    len-1);
                /*NOTREACHED*/
        }
-       b0 = gen_bcmp(cstate, OR_LINKHDR, off, strlen(ifname), (const u_char *)ifname);
+       b0 = gen_bcmp(cstate, OR_LINKHDR, off, (u_int)strlen(ifname),
+           (const u_char *)ifname);
        return (b0);
 }
 
@@ -8392,7 +8393,7 @@ gen_pf_ruleset(compiler_state_t *cstate, char *ruleset)
        }
 
        b0 = gen_bcmp(cstate, OR_LINKHDR, offsetof(struct pfloghdr, ruleset),
-           strlen(ruleset), (const u_char *)ruleset);
+           (u_int)strlen(ruleset), (const u_char *)ruleset);
        return (b0);
 }