summaryrefslogtreecommitdiffstats
path: root/x11vnc/gui.c
diff options
context:
space:
mode:
authorrunge <runge>2009-01-04 04:56:53 +0000
committerrunge <runge>2009-01-04 04:56:53 +0000
commit91174efbb8e2fb09520477af6593f99b865777b0 (patch)
tree796e0213305556909052c8ea203c048eab732353 /x11vnc/gui.c
parent4fdb4cc67f1563156593e5b3deca80acf35f39ed (diff)
downloadlibtdevnc-91174efbb8e2fb09520477af6593f99b865777b0.tar.gz
libtdevnc-91174efbb8e2fb09520477af6593f99b865777b0.zip
x11vnc: fix compiler warnings.
Diffstat (limited to 'x11vnc/gui.c')
-rw-r--r--x11vnc/gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/x11vnc/gui.c b/x11vnc/gui.c
index 41c4202..f0dd16c 100644
--- a/x11vnc/gui.c
+++ b/x11vnc/gui.c
@@ -674,7 +674,7 @@ void do_gui(char *opts, int sleep) {
char *cmd, *p, *p2, *p1, *p0 = getenv("PATH");
char tf1[] = "/tmp/x11vnc_port_prompt.2XXXXXX";
char tf2[] = "/tmp/x11vnc_port_prompt.1XXXXXX";
- int fd, i, port;
+ int fd;
char *dstr = "", *wish = NULL;
char line[128];
FILE *fp;
@@ -831,7 +831,6 @@ void do_gui(char *opts, int sleep) {
if (icon_mode) {
char tf[] = "/tmp/x11vnc.tray.XXXXXX";
int fd;
- struct stat sbuf;
fd = mkstemp(tf);
if (fd < 0) {