summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-28 20:00:08 +0000
committerrunge <runge>2006-12-28 20:00:08 +0000
commit5c9ba4bb035255956dd176b285df3a81bafa02e3 (patch)
tree29bfb0544fca31db024619a612d09b3a5e0132c2 /x11vnc/remote.c
parentf9baaf1ee49e7889808b1f058a5f348a9cd5f027 (diff)
downloadlibtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.tar.gz
libtdevnc-5c9ba4bb035255956dd176b285df3a81bafa02e3.zip
still more compiler warnings; ssvnc 1.0.9 sync.
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r--x11vnc/remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c
index 03016d6..775816c 100644
--- a/x11vnc/remote.c
+++ b/x11vnc/remote.c
@@ -498,11 +498,11 @@ static void reset_rfbport(int old, int new) {
* libXau yet.
*/
int remote_control_access_ok(void) {
- struct stat sbuf;
-
#if NO_X11
return 0;
#else
+ struct stat sbuf;
+
if (client_connect_file) {
if (stat(client_connect_file, &sbuf) == 0) {
if (sbuf.st_mode & S_IWOTH) {