code-style for pledge: check the return code -1, not < 0
this is the proper idiom
This commit is contained in:
parent
59f74541fb
commit
44bb7157ec
@ -750,7 +750,7 @@ main(int argc, char *argv[])
|
|||||||
lrpad = drw->fonts->h;
|
lrpad = drw->fonts->h;
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if (pledge("stdio rpath", NULL) < 0)
|
if (pledge("stdio rpath", NULL) == -1)
|
||||||
die("pledge");
|
die("pledge");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user