summaryrefslogtreecommitdiffstats
path: root/tools/xhost+.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2005-05-25 08:56:46 +0000
committerMystery Man <unknown@mandriva.org>2005-05-25 08:56:46 +0000
commit45e61de16e073594e8532af5b1fff8e76901ee88 (patch)
treeeda23f712150bace0146c6011c39319484f1a715 /tools/xhost+.c
parent2be3766b2c1fafa44da4b93b2851044d977a128a (diff)
downloaddrakx-MDK10-LACIE-restore-2.tar
drakx-MDK10-LACIE-restore-2.tar.gz
drakx-MDK10-LACIE-restore-2.tar.bz2
drakx-MDK10-LACIE-restore-2.tar.xz
drakx-MDK10-LACIE-restore-2.zip
This commit was manufactured by cvs2svn to create tagMDK10-LACIE-restore-2
'MDK10-LACIE-restore-2'.
Diffstat (limited to 'tools/xhost+.c')
-rw-r--r--tools/xhost+.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/tools/xhost+.c b/tools/xhost+.c
deleted file mode 100644
index 58781274e..000000000
--- a/tools/xhost+.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <stdlib.h>
-#include <X11/Xlib.h>
-
-
-int main(int argc, char **argv) {
- Display *d = XOpenDisplay(getenv("DISPLAY") ? getenv("DISPLAY") : ":0");
- if (d == NULL) exit(1);
- XDisableAccessControl(d);
- XCloseDisplay(d);
- exit(0);
-}