diff options
| author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-05-25 13:07:17 +0200 |
|---|---|---|
| committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2018-05-25 13:07:17 +0200 |
| commit | 851b73d178c8d7665c6d8a0bc34dbd4f9d1aa77b (patch) | |
| tree | 9a36a8debc56c9894a6d30576c557e1090ea953f | |
| parent | 05c138f5b8f19070a190b97728c83b454855f52b (diff) | |
code-style for pledge: check the return code -1, not < 0
this is the proper idiom
| -rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -750,7 +750,7 @@ main(int argc, char *argv[]) | |||
| 750 | lrpad = drw->fonts->h; | 750 | lrpad = drw->fonts->h; |
| 751 | 751 | ||
| 752 | #ifdef __OpenBSD__ | 752 | #ifdef __OpenBSD__ |
| 753 | if (pledge("stdio rpath", NULL) < 0) | 753 | if (pledge("stdio rpath", NULL) == -1) |
| 754 | die("pledge"); | 754 | die("pledge"); |
| 755 | #endif | 755 | #endif |
| 756 | 756 | ||
