]> The Tcpdump Group git mirrors - libpcap/commitdiff
Make a variable to which unsigned values are assigned unsigned.
authorGuy Harris <[email protected]>
Mon, 25 Jul 2016 01:02:00 +0000 (18:02 -0700)
committerGuy Harris <[email protected]>
Mon, 25 Jul 2016 01:02:00 +0000 (18:02 -0700)
No need for it to be signed; this avoids signed vs. unsigned comparison
complaints.

optimize.c

index 2b4b358eb16498b63c39a24de4ce1d809b9b3942..d0a906838680e89eed546aa01206334828b4c2d6 100644 (file)
@@ -2028,7 +2028,7 @@ convert_code_r(compiler_state_t *cstate, conv_state_t *conv_state,
 {
        struct bpf_insn *dst;
        struct slist *src;
-       int slen;
+       u_int slen;
        u_int off;
        int extrajmps;          /* number of extra jumps inserted */
        struct slist **offset = NULL;
@@ -2086,7 +2086,7 @@ convert_code_r(compiler_state_t *cstate, conv_state_t *conv_state,
                        goto filled;
 
            {
-               int i;
+               u_int i;
                int jt, jf;
                const char *ljerr = "%s for block-local relative jump: off=%d";