simplify/shorten pledge stub
2 files changed, 2 insertions(+), 10 deletions(-) | |||
---|---|---|---|
M | stagit-index.c | +1 | -5 |
M | stagit.c | +1 | -5 |
1@@ -22,11 +22,7 @@ static char *name = "";
2 static char owner[255];
3
4 #ifndef USE_PLEDGE
5-int
6-pledge(const char *promises, const char *paths[])
7-{
8- return 0;
9-}
10+#define pledge(p1,p2) 0
11 #endif
12
13 void
M · stagit.c
+1, -5 1@@ -69,11 +69,7 @@ static FILE *rcachefp, *wcachefp;
2 static const char *cachefile;
3
4 #ifndef USE_PLEDGE
5-int
6-pledge(const char *promises, const char *paths[])
7-{
8- return 0;
9-}
10+#define pledge(p1,p2) 0
11 #endif
12
13 void