From 851b73d178c8d7665c6d8a0bc34dbd4f9d1aa77b Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 25 May 2018 13:07:17 +0200 Subject: code-style for pledge: check the return code -1, not < 0 this is the proper idiom --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu.c b/dmenu.c index 3b2f3ec..5c835dd 100644 --- a/dmenu.c +++ b/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 -- cgit v1.2.3-54-g00ecf