sfeed

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

commit a1d106ab3e04b2c3fde4fca23ea72551a892efac
parent b8c3ddd9a458b878e7c73450eb48ab0ca09b0748
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Mon,  5 Jan 2015 12:52:29 +0100

sfeed_frames: cleanup

Diffstat:
Msfeed_frames.c | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -173,12 +173,6 @@ main(int argc, char *argv[]) } /* first of feed section or new feed section (differ from previous). */ if(!totalfeeds || strcmp(fcur->name, feedname)) { - /* TODO: - * - makepathname isn't necesary if fields[FieldFeedName] - * is the same as the previous line. - * - move this part below where FieldFeedName is - * checked if it's different ? */ - /* make directory for feedname */ if(!(namelen = makepathname(feedname, name, sizeof(name)))) continue; @@ -197,10 +191,10 @@ main(int argc, char *argv[]) SLIST_INSERT_AFTER(fcur, f, entry); fcur = f; - /* end previous one. */ - if(totalfeeds) { + /* end previous feed section. */ + if(totalfeeds) fputs("</table>\n", fpitems); - } + /* write menu link if new. */ if(fields[FieldFeedName][0] != '\0') { fputs("<h2 id=\"", fpitems);