code-style for pledge: check the return code -1, not < 0
851b73d1
this is the proper idiom
1 file(s) · +1 −1
this is the proper idiom
| 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 |