summaryrefslogtreecommitdiffstats
path: root/x11vnc/connections.c
diff options
context:
space:
mode:
authorrunge <runge>2006-01-15 03:58:48 +0000
committerrunge <runge>2006-01-15 03:58:48 +0000
commit5993dd757e5af00af6565b3411ea10fd46eafbdf (patch)
tree7450fdde25310857c88221a719f026a1a09336f7 /x11vnc/connections.c
parent60918e6664cd62ea3d71b48cdfda8b89ab82029c (diff)
downloadlibtdevnc-5993dd757e5af00af6565b3411ea10fd46eafbdf.tar.gz
libtdevnc-5993dd757e5af00af6565b3411ea10fd46eafbdf.zip
x11vnc: add -8to24 option for some multi-depth displays.
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r--x11vnc/connections.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c
index b444208..800d443 100644
--- a/x11vnc/connections.c
+++ b/x11vnc/connections.c
@@ -1512,7 +1512,7 @@ void check_connect_inputs(void) {
}
void check_gui_inputs(void) {
- int i, nmax = 0, n = 0, nfds;
+ int i, gnmax = 0, n = 0, nfds;
int socks[ICON_MODE_SOCKS];
fd_set fds;
struct timeval tv;
@@ -1522,8 +1522,8 @@ void check_gui_inputs(void) {
for (i=0; i<ICON_MODE_SOCKS; i++) {
if (icon_mode_socks[i] >= 0) {
socks[n++] = i;
- if (icon_mode_socks[i] > nmax) {
- nmax = icon_mode_socks[i];
+ if (icon_mode_socks[i] > gnmax) {
+ gnmax = icon_mode_socks[i];
}
}
}
@@ -1539,7 +1539,7 @@ void check_gui_inputs(void) {
tv.tv_sec = 0;
tv.tv_usec = 0;
- nfds = select(nmax+1, &fds, NULL, NULL, &tv);
+ nfds = select(gnmax+1, &fds, NULL, NULL, &tv);
if (nfds <= 0) {
return;
}