]> git.armaanb.net Git - stagit.git/commitdiff
simplify/shorten pledge stub
authorHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 12 Mar 2017 18:49:14 +0000 (19:49 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sun, 12 Mar 2017 18:49:14 +0000 (19:49 +0100)
stagit-index.c
stagit.c

index 402568b608117968de41903ddc379c60fb1aaf31..067dc30fd6cab577fa3439c5d3c0e8302e2cd05d 100644 (file)
@@ -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
index 973543f17f3aedbfb28a880de529411439352391..c3693c70d769c8a428f8400d009e2f546a293864 100644 (file)
--- 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