Update args

This commit is contained in:
gym487 2022-04-17 01:22:29 +08:00
parent a6809b81fb
commit 089f15ec77
No known key found for this signature in database
GPG Key ID: 0109289DCF14D4D5

View File

@ -1672,7 +1672,7 @@ void usage(void)
return; return;
} }
unsigned short mapport=5678;
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
clock_t tstart,tend; clock_t tstart,tend;
@ -1739,8 +1739,7 @@ int main(int argc, char *argv[])
int usesocket=false; int usesocket=false;
int webflag=0; int webflag=0;
int sockc=0; int sockc=0;
short port=1234; unsigned short port=1234;
short mapport=5678;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Read options // Read options
@ -1764,7 +1763,7 @@ int main(int argc, char *argv[])
exit(1); exit(1);
} }
while ((result=getopt(argc,argv,"e:u:g:c:l:o:s:b:T:t:d:ivn:w"))!=-1) while ((result=getopt(argc,argv,"e:u:g:c:l:o:s:b:T:t:d:ivn:w:"))!=-1)
{ {
switch (result) switch (result)
{ {
@ -1874,7 +1873,7 @@ int main(int argc, char *argv[])
} }
if(webflag==1){ if(webflag==1){
pthread_t th; pthread_t th;
pthread_create(&th,NULL,(void *)threadrecv,(void *)&mapport); pthread_create(&th,NULL,(void *)threadrecv,(void *) &mapport);
} }
if(usesocket==1) if(usesocket==1)
sockc=sockinit(port); sockc=sockinit(port);