URI:
       pledge() tscrape - tscrape - twitter scraper
  HTML git clone git://git.codemadness.org/tscrape
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 93e46a59d2e61d9218312b5459166256964d8408
   DIR parent 76a0d7401f45625133df4e1fc2639523e26442fb
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Tue,  8 Mar 2016 19:14:40 +0100
       
       pledge() tscrape
       
       Diffstat:
         M tscrape.c                           |      16 ++++++++++++++++
       
       1 file changed, 16 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/tscrape.c b/tscrape.c
       @@ -1,6 +1,7 @@
        #include <sys/types.h>
        
        #include <ctype.h>
       +#include <err.h>
        #include <errno.h>
        #include <limits.h>
        #include <stdint.h>
       @@ -8,6 +9,7 @@
        #include <stdlib.h>
        #include <string.h>
        #include <time.h>
       +#include <unistd.h>
        
        #include "compat.h"
        #include "xml.h"
       @@ -252,9 +254,23 @@ xmlcdata(XMLParser *x, const char *d, size_t dl)
                xmldata(x, d, dl);
        }
        
       +#ifndef USE_PLEDGE
       +int
       +pledge(const char *promises, const char *paths[])
       +{
       +        (void)promises;
       +        (void)paths;
       +
       +        return 0;
       +}
       +#endif
       +
        int
        main(void)
        {
       +        if (pledge("stdio", NULL) == -1)
       +                err(1, "pledge");
       +
                /* handlers */
                p.xmlattr           = xmlattr;
                p.xmlattrentity     = xmlattrentity;