diff options
| author | Joseph Henry <[email protected]> | 2018-07-27 09:53:08 -0700 |
|---|---|---|
| committer | Joseph Henry <[email protected]> | 2018-07-27 09:53:08 -0700 |
| commit | 6e086ed3fa9692b0be853849340bc3ed3614fbcc (patch) | |
| tree | c92ea13156a5601707d01bee9fde79e2d58f1169 /test | |
| parent | 6fec6621505c5c709e47a9e13c9e32567db457a5 (diff) | |
Updated lwip.patch for Linux compatibility, CMakeLists.txt, and fixed other minor compile-time warnings
Diffstat (limited to 'test')
| -rw-r--r-- | test/selftest.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/selftest.cpp b/test/selftest.cpp index 9e1af51..731814c 100644 --- a/test/selftest.cpp +++ b/test/selftest.cpp @@ -551,7 +551,7 @@ void tcp_select_server(TCP_UNIT_TEST_SIG_4) #else r = _READ(fd_i, rbuf, len); #endif - if (r == msg.length()) { + if (r == (int)msg.length()) { rx_num++; DEBUG_TEST("rx=%d", rx_num); } @@ -563,7 +563,7 @@ void tcp_select_server(TCP_UNIT_TEST_SIG_4) #else w = _WRITE(fd_i, msg.c_str(), len); #endif - if (w == msg.length()) { + if (w == (int)msg.length()) { tx_num++; DEBUG_TEST("tx=%d", tx_num); } @@ -638,7 +638,7 @@ void tcp_select_client(TCP_UNIT_TEST_SIG_4) #else r = _READ(fd_i, rbuf, len); #endif - if (r == msg.length()) { + if (r == (int)msg.length()) { rx_num++; DEBUG_TEST("rx=%d", rx_num); } @@ -650,7 +650,7 @@ void tcp_select_client(TCP_UNIT_TEST_SIG_4) #else w = _WRITE(fd_i, msg.c_str(), len); #endif - if (w == msg.length()) { + if (w == (int)msg.length()) { tx_num++; DEBUG_TEST("tx=%d", tx_num); } @@ -962,7 +962,7 @@ void udp_client_4(UDP_UNIT_TEST_SIG_4) int serverlen = sizeof(struct sockaddr_storage); // rx r = _RECVFROM(fd, rbuf, STR_SIZE, 0, (struct sockaddr *)&saddr, (socklen_t *)&serverlen); - if (r == strlen(msg.c_str())) { + if (r == (int)strlen(msg.c_str())) { sleep(ARTIFICIAL_SOCKET_LINGER); err = _CLOSE(fd); DEBUG_TEST("%s, err=%d, r=%d, w=%d", testname.c_str(), err, r, w); |
