From 22f7cb09d0b99af0aae7109aaff73760ef2dd5e3 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Sat, 3 Nov 2018 19:56:29 +0000 Subject: Revert "Add MAYBE_PLEDGE for OpenBSD" See discussion on https://github.com/cdown/clipmenu/issues/92. This reverts commit eb156445572bad2eec7ac6f2dd7cd21d2eaaca6e. --- clipnotify.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'clipnotify.c') diff --git a/clipnotify.c b/clipnotify.c index e0440b3..f09583e 100644 --- a/clipnotify.c +++ b/clipnotify.c @@ -4,23 +4,12 @@ #include #include -#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"); -- cgit 1.4.1