summaryrefslogtreecommitdiff
path: root/sfeed_tail.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-04-14 15:06:29 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-04-14 15:26:55 +0200
commit60b1024a1bb7c628d9bb9034fd017a6b799c94d3 (patch)
tree39f8d0b3c28d14f98716914da2fce809c1531c78 /sfeed_tail.c
parent6893cd3119ad2e73a79c3b0a0f1c279d05896223 (diff)
sfeed_tail: rename "line" to "l" in local scope
char *line is a global variable (reused pointer to line buffer).
Diffstat (limited to 'sfeed_tail.c')
-rw-r--r--sfeed_tail.c18
1 files 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);
}
}
}