X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Flog.c;h=33b0a8b78709fee0763b19eb2dd497955f656964;hb=80d9ed728be4b02ac483f3339cbb184f6602d15b;hp=4ea72cf54516ec3db300be79423f2ec74d99bb0f;hpb=fb43f026602d2cc87eef884f5616cd0925408c3e;p=srvx.git diff --git a/src/log.c b/src/log.c index 4ea72cf..33b0a8b 100644 --- a/src/log.c +++ b/src/log.c @@ -730,12 +730,11 @@ log_entry_search(struct logSearch *discrim, entry_search_func esf, void *data) unsigned int matched = 0; if (discrim->type) { - static volatile struct logEntry *last; struct logEntry *entry; - for (entry = discrim->type->log_oldest, last = NULL; + for (entry = discrim->type->log_oldest; entry; - last = entry, entry = entry->next) { + entry = entry->next) { verify(entry); if (entry_match(discrim, entry)) { esf(entry, data);