youtube/feed: include unistd.h for pledge on OpenBSD and compare .xml for Atom feed - frontends - front-ends for some sites (experiment) (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit c70b86a2b202dc627b327714e0eeeb355b21a0ac (DIR) parent f5a6863b5397d1cc3ad31de291be11fae6256b5f (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Wed, 10 May 2023 01:24:03 +0200 youtube/feed: include unistd.h for pledge on OpenBSD and compare .xml for Atom feed Diffstat: M youtube/feed.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- (DIR) diff --git a/youtube/feed.c b/youtube/feed.c @@ -6,6 +6,7 @@ #include <string.h> #include <strings.h> #include <time.h> +#include <unistd.h> #include "https.h" #include "util.h" @@ -992,7 +993,7 @@ main(int argc, char *argv[]) /* NOTE: getnext is defined in xml.h for inline optimization */ xml_parse(&parser); - if (!strcmp(format, "atom")) + if (!strcmp(format, "atom") || !strcmp(format, "xml")) atom_footer(); else if (!strcmp(format, "json")) json_footer();