1
0
Fork 0

code-style for pledge: check the return code -1, not < 0

this is the proper idiom
This commit is contained in:
Hiltjo Posthuma 2018-05-25 13:07:17 +02:00
parent 05c138f5b8
commit 851b73d178

View file

@ -750,7 +750,7 @@ main(int argc, char *argv[])
lrpad = drw->fonts->h;
#ifdef __OpenBSD__
if (pledge("stdio rpath", NULL) < 0)
if (pledge("stdio rpath", NULL) == -1)
die("pledge");
#endif