Fix build warnings

pull/194/head
Tesfa Mael 2020-03-20 14:46:58 -07:00
parent aeedfa36c0
commit 189a8d1362
2 changed files with 5 additions and 4 deletions

View File

@ -40,7 +40,7 @@
* enum used for tcp_select function * enum used for tcp_select function
*/ */
enum { enum {
TEST_SELECT_FAIL, TEST_SELECT_FAIL = 0,
TEST_TIMEOUT, TEST_TIMEOUT,
TEST_RECV_READY, TEST_RECV_READY,
TEST_ERROR_READY TEST_ERROR_READY
@ -72,7 +72,8 @@ static inline unsigned int My_Psk_Client_Cb(WOLFSSL* ssl, const char* hint,
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
int sockfd, ret, error, select_ret, currTimeout; int sockfd, ret, error, currTimeout;
int select_ret = TEST_SELECT_FAIL;
int nfds; int nfds;
int result; int result;
char sendline[MAXLINE]="Hello Server"; /* string to send to the server */ char sendline[MAXLINE]="Hello Server"; /* string to send to the server */

View File

@ -43,7 +43,7 @@
/* states of the tcp connection */ /* states of the tcp connection */
enum{ enum{
TEST_SELECT_FAIL, TEST_SELECT_FAIL = 0,
TEST_TIMEOUT, TEST_TIMEOUT,
TEST_RECV_READY, TEST_RECV_READY,
TEST_ERROR_READY TEST_ERROR_READY
@ -77,7 +77,7 @@ int main()
int ret; int ret;
int error; int error;
int result; int result;
int select_ret; int select_ret = TEST_SELECT_FAIL;
int sockfd; int sockfd;
int nfds; int nfds;
int currTimeout = 1; int currTimeout = 1;