summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:15:14 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-01-05 12:15:14 +0100
commit445549c0a2710a3fe50659d6270694d71ecf87d2 (patch)
treef69eeaa3a7a08c83807770b43eee02691187ae82 /util.h
parent7c6893ff05476410b369ee6a967a65e7b3ee754f (diff)
add and use BSD queue.h, cleanup
Diffstat (limited to 'util.h')
-rw-r--r--util.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/util.h b/util.h
index a990c8f..3390589 100644
--- a/util.h
+++ b/util.h
@@ -1,9 +1,11 @@
+#include <stdio.h>
+#include <time.h>
+
#ifdef COMPAT
#include "compat.h"
#endif
-#include <stdio.h>
-#include <time.h>
+#include "queue.h"
#define ISUTF8(c) (((c) & 0xc0) != 0x80)
@@ -14,7 +16,7 @@ struct feed {
unsigned long total; /* total items */
time_t timenewest;
char timenewestformat[64];
- struct feed * next; /* linked list */
+ SLIST_ENTRY(feed) entry;
};
enum { FieldUnixTimestamp = 0, FieldTimeFormatted, FieldTitle, FieldLink,