diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-05 12:15:14 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-01-05 12:15:14 +0100 |
commit | 445549c0a2710a3fe50659d6270694d71ecf87d2 (patch) | |
tree | f69eeaa3a7a08c83807770b43eee02691187ae82 /util.h | |
parent | 7c6893ff05476410b369ee6a967a65e7b3ee754f (diff) |
add and use BSD queue.h, cleanup
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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, |