simplify/shorten pledge stub - stagit-gopher - A git gopher frontend. (mirror)
 (HTM) git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e862768a1f396da6d013570941faefeced61351f
 (DIR) parent 6b48169fa5d12348a550d588fa768f670c653da8
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 12 Mar 2017 19:49:14 +0100
       
       simplify/shorten pledge stub
       
       Diffstat:
         M stagit-index.c                      |       6 +-----
         M stagit.c                            |       6 +-----
       
       2 files changed, 2 insertions(+), 10 deletions(-)
       ---
 (DIR) diff --git a/stagit-index.c b/stagit-index.c
       @@ -22,11 +22,7 @@ static char *name = "";
        static char owner[255];
        
        #ifndef USE_PLEDGE
       -int
       -pledge(const char *promises, const char *paths[])
       -{
       -        return 0;
       -}
       +#define pledge(p1,p2) 0
        #endif
        
        void
 (DIR) diff --git a/stagit.c b/stagit.c
       @@ -69,11 +69,7 @@ static FILE *rcachefp, *wcachefp;
        static const char *cachefile;
        
        #ifndef USE_PLEDGE
       -int
       -pledge(const char *promises, const char *paths[])
       -{
       -        return 0;
       -}
       +#define pledge(p1,p2) 0
        #endif
        
        void