summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 12:57:48 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2016-08-06 13:02:54 +0200
commite6f348c72809abb38667448dd6f7fcf12db432a3 (patch)
treeb47213bf4bacc7d46aa6dabed54bfa309e1b9aae /sfeed_opml_import.c
parentb0dd38e9570cdf9125786639e9568ad4b5e8befa (diff)
add USE_PLEDGE, remove pledge dummy function
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index fdee71a..c69986f 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -76,8 +76,10 @@ 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;