pinentry-dmenu

a pinentry program based on dmenu
git clone anongit@rnpnr.xyz:pinentry-dmenu.git
Log | Files | Refs | Feed | README | LICENSE

Commit: edc0c1879d1deae22f856bac5648893a47e61b07
Parent: 572bc67a6bb1a3d6bdbac4fad13af942c25d8a06
Author: Hiltjo Posthuma
Date:   Fri, 25 May 2018 13:07:17 +0200

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

this is the proper idiom

Diffstat:
Mpinentry-dmenu.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c @@ -679,7 +679,7 @@ cmdhandler(pinentry_t received_pinentry) { lrpad = drw->fonts->h; #ifdef __OpenBSD__ - if (pledge("stdio rpath", NULL) < 0) + if (pledge("stdio rpath", NULL) == -1) die("pledge"); #endif