summaryrefslogtreecommitdiffstats
path: root/cargs.c
diff options
context:
space:
mode:
authordscho <dscho>2003-07-10 09:06:49 +0000
committerdscho <dscho>2003-07-10 09:06:49 +0000
commit13637517681312bd7617bddf96172e4eda88d1ae (patch)
tree792f5f4f92c69fac53d1804050c728e4a9ca13a0 /cargs.c
parentd4d51c33052e9b23578f3f40787a2bd4a89a60b9 (diff)
downloadlibtdevnc-13637517681312bd7617bddf96172e4eda88d1ae.tar.gz
libtdevnc-13637517681312bd7617bddf96172e4eda88d1ae.zip
fix compile
Diffstat (limited to 'cargs.c')
-rw-r--r--cargs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cargs.c b/cargs.c
index 7735c37..18bf36f 100644
--- a/cargs.c
+++ b/cargs.c
@@ -89,10 +89,6 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[])
rfbScreen->rfbNeverShared = TRUE;
} else if (strcmp(argv[i], "-dontdisconnect") == 0) {
rfbScreen->rfbDontDisconnect = TRUE;
- } else {
- /* we just remove the processed arguments from the list */
- if(i != i1)
- rfbPurgeArguments(argc,&i1,i-i1,argv);
} else if (strcmp(argv[i], "-httpdir") == 0) { /* -httpdir directory-path */
if (i + 1 >= *argc) rfbUsage();
rfbScreen->httpDir = argv[++i];
@@ -101,6 +97,10 @@ rfbProcessArguments(rfbScreenInfoPtr rfbScreen,int* argc, char *argv[])
rfbScreen->httpPort = atoi(argv[++i]);
} else if (strcmp(argv[i], "-enablehttpproxy") == 0) {
rfbScreen->httpEnableProxyConnect = TRUE;
+ } else {
+ /* we just remove the processed arguments from the list */
+ if(i != i1)
+ rfbPurgeArguments(argc,&i1,i-i1,argv);
}
i1++;
i=i1;