From 91174efbb8e2fb09520477af6593f99b865777b0 Mon Sep 17 00:00:00 2001 From: runge Date: Sun, 4 Jan 2009 04:56:53 +0000 Subject: x11vnc: fix compiler warnings. --- x11vnc/gui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'x11vnc/gui.c') 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) { -- cgit v1.2.1