diff options
author | Chris Down <chris@chrisdown.name> | 2018-11-03 19:56:29 +0000 |
---|---|---|
committer | Chris Down <chris@chrisdown.name> | 2018-11-03 19:56:29 +0000 |
commit | 22f7cb09d0b99af0aae7109aaff73760ef2dd5e3 (patch) | |
tree | a970c0de027567901c07f6fcdf0016c19a4b24af | |
parent | 36ee24aafb70f5d0aa9216139b929bfbd18a9f92 (diff) | |
download | clipbuzz-22f7cb09d0b99af0aae7109aaff73760ef2dd5e3.tar.gz |
Revert "Add MAYBE_PLEDGE for OpenBSD" 1.0.2
See discussion on https://github.com/cdown/clipmenu/issues/92. This reverts commit eb156445572bad2eec7ac6f2dd7cd21d2eaaca6e.
-rw-r--r-- | clipnotify.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/clipnotify.c b/clipnotify.c index e0440b3..f09583e 100644 --- a/clipnotify.c +++ b/clipnotify.c @@ -4,23 +4,12 @@ #include <stdio.h> #include <stdlib.h> -#ifdef __OpenBSD__ -#define MAYBE_PLEDGE(p, ep) pledge(p, ep) -#else -#define MAYBE_PLEDGE(p, ep) 0 -#endif /* __OpenBSD__ */ - int main(void) { Display *disp; Window root; Atom clip; XEvent evt; - if (MAYBE_PLEDGE("stdio rpath", NULL) < 0) { - perror("pledge"); - exit(2); - } - disp = XOpenDisplay(NULL); if (!disp) { fprintf(stderr, "Can't open X display\n"); |