summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:52:29 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:52:29 +0100
commita1d106ab3e04b2c3fde4fca23ea72551a892efac (patch)
treecffc939fe5b83c85e265b88fe57687ef4a5af962
parentb8c3ddd9a458b878e7c73450eb48ab0ca09b0748 (diff)
sfeed_frames: cleanup
-rw-r--r--sfeed_frames.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index ae4aa12..5d40d07 100644
--- 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);