diff options
author | dscho <dscho> | 2003-07-10 09:06:49 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-10 09:06:49 +0000 |
commit | 13637517681312bd7617bddf96172e4eda88d1ae (patch) | |
tree | 792f5f4f92c69fac53d1804050c728e4a9ca13a0 /cargs.c | |
parent | d4d51c33052e9b23578f3f40787a2bd4a89a60b9 (diff) | |
download | libtdevnc-13637517681312bd7617bddf96172e4eda88d1ae.tar.gz libtdevnc-13637517681312bd7617bddf96172e4eda88d1ae.zip |
fix compile
Diffstat (limited to 'cargs.c')
-rw-r--r-- | cargs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |