From 445549c0a2710a3fe50659d6270694d71ecf87d2 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 5 Jan 2015 12:15:14 +0100 Subject: add and use BSD queue.h, cleanup --- util.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index a990c8f..3390589 100644 --- a/util.h +++ b/util.h @@ -1,9 +1,11 @@ +#include +#include + #ifdef COMPAT #include "compat.h" #endif -#include -#include +#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, -- cgit v1.2.3