From: Tim Duesterhus Date: Thu, 4 Nov 2021 20:04:24 +0000 (+0100) Subject: CLEANUP: halog: Remove dead stores X-Git-Tag: v2.5-dev13~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=785b84bb8fe6041d5aa880b1f20bc13a2a43c6f3;p=thirdparty%2Fhaproxy.git CLEANUP: halog: Remove dead stores Found using clang's scan-build. --- diff --git a/admin/halog/halog.c b/admin/halog/halog.c index 900cf5d46c..f368c1c6f4 100644 --- a/admin/halog/halog.c +++ b/admin/halog/halog.c @@ -551,7 +551,8 @@ int convert_date_to_timestamp(const char *field) d = mo = y = h = m = s = 0; e = field; - c = *(e++); // remove '[' + e++; // remove '[' + /* day + '/' */ while (1) { c = *(e++) - '0'; @@ -1148,13 +1149,12 @@ int main(int argc, char **argv) /* sort all timers */ for (f = 0; f < 5; f++) { struct eb32_node *n; - int val; - val = 0; n = eb32_first(&timers[f]); while (n) { int i; double d; + int val; t = container_of(n, struct timer, node); last = n->key;