summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-04-10 14:45:26 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-04-10 14:45:26 +0200
commit55a0a4a534043e160bb9defab8128febe51454b7 (patch)
treeaadaa1956086467cc8ca30bccf170e82c70575cf
parent8a3177f96dd4c3694242d0686762c455a9d010fd (diff)
minor style fixes
-rw-r--r--sfeed_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfeed_html.c b/sfeed_html.c
index 2e60ad3..1a8b5cc 100644
--- 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;