sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 3151fc001cd5b980064afac8a1ce6a11526c4ab6
parent 52c2768cf52358915d8659a60ca430eecbebb656
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 27 Apr 2017 13:49:31 +0200

simplify pledge stub

Diffstat:
Msfeed.c | 2--
Msfeed_frames.c | 2--
Msfeed_html.c | 2--
Msfeed_mbox.c | 2--
Msfeed_opml_import.c | 2--
Msfeed_plain.c | 2--
Msfeed_tail.c | 2--
Msfeed_web.c | 2--
Msfeed_xmlenc.c | 2--
9 files changed, 0 insertions(+), 18 deletions(-)

diff --git a/sfeed.c b/sfeed.c @@ -778,10 +778,8 @@ xml_handler_end_el(XMLParser *p, const char *name, size_t namelen, int isshort) int main(int argc, char *argv[]) { -#ifdef USE_PLEDGE if (pledge("stdio", NULL) == -1) err(1, "pledge"); -#endif if (argc > 1) baseurl = argv[1]; diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -241,10 +241,8 @@ main(int argc, char *argv[]) int i, showsidebar = (argc > 1); struct feed *f; -#ifdef USE_PLEDGE if (pledge("stdio rpath wpath cpath fattr", NULL) == -1) err(1, "pledge"); -#endif if (!(feeds = calloc(argc, sizeof(struct feed *)))) err(1, "calloc"); diff --git a/sfeed_html.c b/sfeed_html.c @@ -77,10 +77,8 @@ main(int argc, char *argv[]) FILE *fp; int i; -#ifdef USE_PLEDGE if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1) err(1, "pledge"); -#endif if (!(feeds = calloc(argc, sizeof(struct feed *)))) err(1, "calloc"); diff --git a/sfeed_mbox.c b/sfeed_mbox.c @@ -123,10 +123,8 @@ main(int argc, char *argv[]) char *name; int i; -#ifdef USE_PLEDGE if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1) err(1, "pledge"); -#endif if (!(user = getenv("USER"))) user = "you"; diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c @@ -76,10 +76,8 @@ xml_handler_attrentity(XMLParser *p, const char *tag, size_t taglen, int main(void) { -#ifdef USE_PLEDGE if (pledge("stdio", NULL) == -1) err(1, "pledge"); -#endif parser.xmlattr = xml_handler_attr; parser.xmlattrentity = xml_handler_attrentity; diff --git a/sfeed_plain.c b/sfeed_plain.c @@ -53,10 +53,8 @@ main(int argc, char *argv[]) char *name; int i; -#ifdef USE_PLEDGE if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1) err(1, "pledge"); -#endif if ((comparetime = time(NULL)) == -1) err(1, "time"); diff --git a/sfeed_tail.c b/sfeed_tail.c @@ -91,10 +91,8 @@ main(int argc, char *argv[]) FILE *fp; int i; -#ifdef USE_PLEDGE if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1) err(1, "pledge"); -#endif if (!(bucket = buckets = calloc(argc, sizeof(struct bucket)))) err(1, "calloc"); diff --git a/sfeed_web.c b/sfeed_web.c @@ -78,10 +78,8 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, int main(int argc, char *argv[]) { -#ifdef USE_PLEDGE if (pledge("stdio", NULL) == -1) err(1, "pledge"); -#endif if (argc > 1) strlcpy(basehref, argv[1], sizeof(basehref)); diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c @@ -46,10 +46,8 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, int main(void) { -#ifdef USE_PLEDGE if (pledge("stdio", NULL) == -1) err(1, "pledge"); -#endif parser.xmlattr = xmlattr; parser.xmltagend = xmltagend;