X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=libevent%2Fht-internal.h;h=46738251862eb04f64509232bd9f90979f4b1d42;hb=33c70ce1349f3e7fcbc5776785f34f3bd89f1d92;hp=57624af7242afb661e78acf280f34eb99f84873b;hpb=14874ef66d68c5200a9a42a7408d022d58211898;p=netatalk.git diff --git a/libevent/ht-internal.h b/libevent/ht-internal.h index 57624af7..46738251 100644 --- a/libevent/ht-internal.h +++ b/libevent/ht-internal.h @@ -1,6 +1,6 @@ /* Based on work Copyright 2002 Christopher Clark */ -/* Copyright 2005-2010 Nick Mathewson */ -/* Copyright 2009-2010 Niels Provos and Nick Mathewson */ +/* Copyright 2005-2012 Nick Mathewson */ +/* Copyright 2009-2012 Niels Provos and Nick Mathewson */ /* See license at end. */ /* Based on ideas by Christopher Clark and interfaces from Niels Provos. */ @@ -223,7 +223,6 @@ ht_string_hash(const char *s) void *data) \ { \ unsigned idx; \ - int remove; \ struct type **p, **nextp, *next; \ if (!head->hth_table) \ return; \ @@ -232,8 +231,7 @@ ht_string_hash(const char *s) while (*p) { \ nextp = &(*p)->field.hte_next; \ next = *nextp; \ - remove = fn(*p, data); \ - if (remove) { \ + if (fn(*p, data)) { \ --head->hth_n_entries; \ *p = next; \ } else { \