]> The Tcpdump Group git mirrors - libpcap/commitdiff
C99 names, not BSD names, for types.
authorGuy Harris <[email protected]>
Sat, 4 Aug 2018 09:51:07 +0000 (02:51 -0700)
committerGuy Harris <[email protected]>
Sat, 4 Aug 2018 09:51:07 +0000 (02:51 -0700)
bpf_filter.c

index b9fe9650cebebc8bad47263132b53347a9e4545f..af19158daf1a42c42c2d551a3fc7ba59a505f9ac 100644 (file)
@@ -87,9 +87,9 @@ u_int
 bpf_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p,
     u_int wirelen, u_int buflen, const struct bpf_aux_data *aux_data)
 {
-       register u_int32_t A, X;
+       register uint32_t A, X;
        register bpf_u_int32 k;
-       u_int32_t mem[BPF_MEMWORDS];
+       uint32_t mem[BPF_MEMWORDS];
 
        if (pc == 0)
                /*
@@ -349,7 +349,7 @@ bpf_filter_with_aux_data(const struct bpf_insn *pc, const u_char *p,
                         * can't be unsigned; throw some casts to
                         * specify what we're trying to do.
                         */
-                       A = (u_int32_t)(-(int32_t)A);
+                       A = (uint32_t)(-(int32_t)A);
                        continue;
 
                case BPF_MISC|BPF_TAX: