URI:
       simplify pledge(2) #ifdef - tscrape - twitter scraper
  HTML git clone git://git.codemadness.org/tscrape
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 954d63eb1fc2d872cf314d443fb15dac2df31ed7
   DIR parent d3d9b9db6743dce94cc7185abfef32dc0fd56578
  HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 13 May 2017 13:23:42 +0200
       
       simplify pledge(2) #ifdef
       
       Diffstat:
         M tscrape.c                           |      12 ++++--------
       
       1 file changed, 4 insertions(+), 8 deletions(-)
       ---
   DIR diff --git a/tscrape.c b/tscrape.c
       @@ -11,6 +11,10 @@
        #include <time.h>
        #include <unistd.h>
        
       +#ifndef USE_PLEDGE
       +#define pledge(p1,p2) 0
       +#endif
       +
        #include "xml.h"
        
        #define STRP(s) s,sizeof(s)-1
       @@ -256,14 +260,6 @@ xmlcdata(XMLParser *x, const char *d, size_t dl)
                xmldata(x, d, dl);
        }
        
       -#ifndef USE_PLEDGE
       -int
       -pledge(const char *promises, const char *paths[])
       -{
       -        return 0;
       -}
       -#endif
       -
        int
        main(void)
        {