Introduction
Introduction Statistics Contact Development Disclaimer Help
youtube/feed: include unistd.h for pledge on OpenBSD and compare .xml for Atom …
Log
Files
Refs
README
LICENSE
---
commit c70b86a2b202dc627b327714e0eeeb355b21a0ac
parent f5a6863b5397d1cc3ad31de291be11fae6256b5f
Author: Hiltjo Posthuma <[email protected]>
Date: Wed, 10 May 2023 01:24:03 +0200
youtube/feed: include unistd.h for pledge on OpenBSD and compare .xml for Atom …
Diffstat:
M youtube/feed.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
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();
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.