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 {
TEST_SELECT_FAIL,
TEST_SELECT_FAIL = 0,
TEST_TIMEOUT,
TEST_RECV_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 sockfd, ret, error, select_ret, currTimeout;
int sockfd, ret, error, currTimeout;
int select_ret = TEST_SELECT_FAIL;
int nfds;
int result;
char sendline[MAXLINE]="Hello Server"; /* string to send to the server */

View File

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