use int type for getting example args

pull/126/head
Jacob Barthelmeh 2018-12-11 17:01:56 -07:00
parent 3994d0f538
commit fc92e85853
5 changed files with 5 additions and 5 deletions

View File

@ -195,7 +195,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args)
socklen_t clientAddrSz = sizeof(clientAddr); socklen_t clientAddrSz = sizeof(clientAddr);
char rxBuf[80]; char rxBuf[80];
int ret; int ret;
char ch; int ch;
word16 port = wolfSshPort; word16 port = wolfSshPort;
char* host = (char*)wolfSshIp; char* host = (char*)wolfSshIp;
const char* username = NULL; const char* username = NULL;

View File

@ -599,7 +599,7 @@ THREAD_RETURN WOLFSSH_THREAD echoserver_test(void* args)
word32 threadCount = 0; word32 threadCount = 0;
int multipleConnections = 1; int multipleConnections = 1;
int useEcc = 0; int useEcc = 0;
char ch; int ch;
word16 port = wolfSshPort; word16 port = wolfSshPort;
char* readyFile = NULL; char* readyFile = NULL;

View File

@ -565,7 +565,7 @@ THREAD_RETURN WOLFSSH_THREAD server_test(void* args)
word16 port = wolfSshPort; word16 port = wolfSshPort;
char multipleConnections = 0; char multipleConnections = 0;
char useEcc = 0; char useEcc = 0;
char ch; int ch;
char nonBlock = 0; char nonBlock = 0;
int argc = ((func_args*)args)->argc; int argc = ((func_args*)args)->argc;

View File

@ -217,7 +217,7 @@ THREAD_RETURN WOLFSSH_THREAD wolffwd_worker(void* args)
fd_set errFds; fd_set errFds;
int nFds; int nFds;
int ret; int ret;
char ch; int ch;
int appFdSet = 0; int appFdSet = 0;
struct timeval to; struct timeval to;
WOLFSSH_CHANNEL* fwdChannel = NULL; WOLFSSH_CHANNEL* fwdChannel = NULL;

View File

@ -788,7 +788,7 @@ THREAD_RETURN WOLFSSH_THREAD sftpclient_test(void* args)
SOCKADDR_IN_T clientAddr; SOCKADDR_IN_T clientAddr;
socklen_t clientAddrSz = sizeof(clientAddr); socklen_t clientAddrSz = sizeof(clientAddr);
int ret; int ret;
char ch; int ch;
word16 port = wolfSshPort; word16 port = wolfSshPort;
char* host = (char*)wolfSshIp; char* host = (char*)wolfSshIp;
const char* username = NULL; const char* username = NULL;