From 60b1024a1bb7c628d9bb9034fd017a6b799c94d3 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 14 Apr 2019 15:06:29 +0200 Subject: sfeed_tail: rename "line" to "l" in local scope char *line is a global variable (reused pointer to line buffer). --- sfeed_tail.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sfeed_tail.c b/sfeed_tail.c index fd47a43..d611cbc 100644 --- a/sfeed_tail.c +++ b/sfeed_tail.c @@ -43,15 +43,15 @@ RB_GENERATE_STATIC(linetree, line, entry, linecmp) static void gc(void) { - struct line *line, *tmp; - - RB_FOREACH_SAFE(line, linetree, &head, tmp) { - if (line->timestamp < comparetime) { - free(line->id); - free(line->link); - free(line->title); - RB_REMOVE(linetree, &head, line); - free(line); + struct line *l, *tmp; + + RB_FOREACH_SAFE(l, linetree, &head, tmp) { + if (l->timestamp < comparetime) { + free(l->id); + free(l->link); + free(l->title); + RB_REMOVE(linetree, &head, l); + free(l); } } } -- cgit v1.2.3