commit 851b73d178c8d7665c6d8a0bc34dbd4f9d1aa77b from: Hiltjo Posthuma date: Fri May 25 11:07:17 2018 UTC code-style for pledge: check the return code -1, not < 0 this is the proper idiom commit - 05c138f5b8f19070a190b97728c83b454855f52b commit + 851b73d178c8d7665c6d8a0bc34dbd4f9d1aa77b blob - 3b2f3ec9ec88321f8390b8493bcfd4add8182083 blob + 5c835dd383f3bf5472f1c1ac58a60db5c006c018 --- dmenu.c +++ dmenu.c @@ -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