summaryrefslogtreecommitdiff
path: root/sfeed_html.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:56:05 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2014-11-11 19:56:05 +0100
commit9a52f59fc546d509dc1a859c6cce92f99e31f46d (patch)
tree2095b7fcc079d78b91d298a3913508bfd69489da /sfeed_html.c
parenta855f803fd27af9ec1d19c5d7444ef0ad3d91b0b (diff)
code style, use actual column width of char
Diffstat (limited to 'sfeed_html.c')
-rw-r--r--sfeed_html.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sfeed_html.c b/sfeed_html.c
index 8ba798b..d025eb4 100644
--- a/sfeed_html.c
+++ b/sfeed_html.c
@@ -1,9 +1,9 @@
+#include <ctype.h>
+#include <errno.h>
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#include <time.h>
-#include <ctype.h>
-#include <errno.h>
#include "util.h"
@@ -12,7 +12,8 @@ static struct feed *feeds = NULL; /* start of feeds linked-list. */
static char *line = NULL;
static void
-cleanup(void) {
+cleanup(void)
+{
free(line); /* free line */
line = NULL;
feedsfree(feeds); /* free feeds linked-list */
@@ -20,13 +21,15 @@ cleanup(void) {
/* print error message to stderr */
static void
-die(const char *s) {
+die(const char *s)
+{
fprintf(stderr, "sfeed_html: %s\n", s);
exit(EXIT_FAILURE);
}
int
-main(void) {
+main(void)
+{
char *fields[FieldLast];
unsigned long totalfeeds = 0, totalnew = 0;
unsigned int islink, isnew;