code-style for pledge: check the return code -1, not < 0 851b73d1
this is the proper idiom
Hiltjo Posthuma · 2018-05-25 13:07 1 file(s) · +1 −1
dmenu.c +1 −1
750 750
	lrpad = drw->fonts->h;
751 751
752 752
#ifdef __OpenBSD__
753 -
	if (pledge("stdio rpath", NULL) < 0)
753 +
	if (pledge("stdio rpath", NULL) == -1)
754 754
		die("pledge");
755 755
#endif
756 756