pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05c138f
)
code-style for pledge: check the return code -1, not < 0
author
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 25 May 2018 11:07:17 +0000
(13:07 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Fri, 25 May 2018 11:07:17 +0000
(13:07 +0200)
this is the proper idiom
dmenu.c
patch
|
blob
|
history
diff --git
a/dmenu.c
b/dmenu.c
index
3b2f3ec
..
5c835dd
100644
(file)
--- 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