summaryrefslogtreecommitdiff
path: root/sfeed_frames.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-06-28 13:38:33 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-06-28 13:38:33 +0200
commitbf8859da400feb876100786df9ac339b48589529 (patch)
treec6c7398a652c80b790f9e10d2db7a020e5e3c963 /sfeed_frames.c
parent9273be17a6ddbc1b142cf67f097de978a5a97ceb (diff)
handle invalid value for strtoul, refactor a bit
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat (limited to 'sfeed_frames.c')
-rw-r--r--sfeed_frames.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfeed_frames.c b/sfeed_frames.c
index bc08c22..8496311 100644
--- a/sfeed_frames.c
+++ b/sfeed_frames.c
@@ -12,7 +12,7 @@
#include "util.h"
-static unsigned int showsidebar = 1; /* show sidebar ? */
+static int showsidebar = 1; /* show sidebar ? */
static FILE *fpindex = NULL, *fpitems = NULL, *fpmenu = NULL;
static FILE *fpcontent = NULL;
static char *line = NULL;
@@ -143,8 +143,8 @@ main(int argc, char **argv) {
}
/* first of feed section or new feed section (differ from previous). */
if(!totalfeeds || (fcur && strcmp(fcur->name, feedname))) {
- /* TODO: makepathname isnt necesary if fields[FieldFeedName] is the same as the previous line */
- /* TODO: move this part below where FieldFeedName is checked if its different ? */
+ /* TODO: makepathname isn't necesary if fields[FieldFeedName] is the same as the previous line */
+ /* TODO: move this part below where FieldFeedName is checked if it's different ? */
/* make directory for feedname */
if(!(namelen = makepathname(feedname, name, sizeof(name))))