From: Hiltjo Posthuma Date: Sun, 12 Mar 2017 18:49:14 +0000 (+0100) Subject: simplify/shorten pledge stub X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=e862768a1f396da6d013570941faefeced61351f;p=forks%2Fstagit.git simplify/shorten pledge stub --- diff --git a/stagit-index.c b/stagit-index.c index 402568b..067dc30 100644 --- 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 diff --git a/stagit.c b/stagit.c index 973543f..c3693c7 100644 --- 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