]> The Tcpdump Group git mirrors - libpcap/commitdiff
Rename a variable to avoid a warning.
authorGuy Harris <[email protected]>
Fri, 12 Aug 2016 01:12:05 +0000 (18:12 -0700)
committerGuy Harris <[email protected]>
Fri, 12 Aug 2016 01:12:05 +0000 (18:12 -0700)
On some platforms the name "kill" clashes with the kill() function.

optimize.c

index baa9427c63076e74823500681912411e0585793f..19980dc81d9f800279af030dd818c2c01f9f07a2 100644 (file)
@@ -465,7 +465,7 @@ static void
 compute_local_ud(struct block *b)
 {
        struct slist *s;
 compute_local_ud(struct block *b)
 {
        struct slist *s;
-       atomset def = 0, use = 0, kill = 0;
+       atomset def = 0, use = 0, killed = 0;
        int atom;
 
        for (s = b->stmts; s; s = s->next) {
        int atom;
 
        for (s = b->stmts; s; s = s->next) {
@@ -489,7 +489,7 @@ compute_local_ud(struct block *b)
                atom = atomdef(&s->s);
                if (atom >= 0) {
                        if (!ATOMELEM(use, atom))
                atom = atomdef(&s->s);
                if (atom >= 0) {
                        if (!ATOMELEM(use, atom))
-                               kill |= ATOMMASK(atom);
+                               killed |= ATOMMASK(atom);
                        def |= ATOMMASK(atom);
                }
        }
                        def |= ATOMMASK(atom);
                }
        }
@@ -515,7 +515,7 @@ compute_local_ud(struct block *b)
        }
 
        b->def = def;
        }
 
        b->def = def;
-       b->kill = kill;
+       b->kill = killed;
        b->in_use = use;
 }
 
        b->in_use = use;
 }