sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 60b1024a1bb7c628d9bb9034fd017a6b799c94d3
parent 6893cd3119ad2e73a79c3b0a0f1c279d05896223
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 14 Apr 2019 15:06:29 +0200

sfeed_tail: rename "line" to "l" in local scope

char *line is a global variable (reused pointer to line buffer).

Diffstat:
Msfeed_tail.c | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git 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); } } }