simplify/shorten pledge stub
This commit is contained in:
parent
6b48169fa5
commit
e862768a1f
2 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
|
|
6
stagit.c
6
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
|
||||
|
|
Loading…
Reference in a new issue