sfeed

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

commit 55a0a4a534043e160bb9defab8128febe51454b7
parent 8a3177f96dd4c3694242d0686762c455a9d010fd
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun, 10 Apr 2016 14:45:26 +0200

minor style fixes

Diffstat:
Msfeed_html.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed_html.c b/sfeed_html.c @@ -22,7 +22,7 @@ printfeed(FILE *fp, struct feed *f) unsigned int islink, isnew; ssize_t linelen; - if (f->name[0] != '\0') { + if (f->name[0]) { fputs("<h2 id=\"", stdout); xmlencode(f->name, stdout); fputs("\"><a href=\"#", stdout); @@ -45,7 +45,7 @@ printfeed(FILE *fp, struct feed *f) err(1, "localtime"); isnew = (parsedtime >= comparetime) ? 1 : 0; - islink = (fields[FieldLink][0] != '\0') ? 1 : 0; + islink = fields[FieldLink][0] ? 1 : 0; totalnew += isnew; f->totalnew += isnew;