diff --git a/include/tinycsocket.h b/include/tinycsocket.h index e330414..0454e7f 100644 --- a/include/tinycsocket.h +++ b/include/tinycsocket.h @@ -29,7 +29,7 @@ #ifndef TINYCSOCKET_INTERNAL_H_ #define TINYCSOCKET_INTERNAL_H_ -static const char* const TCS_VERSION_TXT = "v0.3.84"; +static const char* const TCS_VERSION_TXT = "v0.3.85"; extern const char* const TCS_LICENSE_TXT; /* diff --git a/src/tinycsocket_internal.h b/src/tinycsocket_internal.h index 2137aff..33c621c 100644 --- a/src/tinycsocket_internal.h +++ b/src/tinycsocket_internal.h @@ -23,7 +23,7 @@ #ifndef TINYCSOCKET_INTERNAL_H_ #define TINYCSOCKET_INTERNAL_H_ -static const char* const TCS_VERSION_TXT = "v0.3.84"; +static const char* const TCS_VERSION_TXT = "v0.3.85"; extern const char* const TCS_LICENSE_TXT; /* diff --git a/tests/tests.cpp b/tests/tests.cpp index 6720ada..1564812 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -1608,9 +1608,8 @@ TEST_CASE("TCS_TCP_NODELAY") CHECK(socket_false_value == false); CHECK(socket_true_value == true); - // The option must end up as TCP_NODELAY on the TCP level, verify through the raw option API - int native_false = -1; - int native_true = -1; + int native_false = 0; + int native_true = 0; size_t native_size = sizeof(native_false); CHECK(tcs_opt_get(socket_false, TCS_SOL_TCP, TCS_TCP_NODELAY, &native_false, &native_size) == TCS_SUCCESS); native_size = sizeof(native_true); @@ -1623,7 +1622,7 @@ TEST_CASE("TCS_TCP_NODELAY") socket_true_value = true; CHECK(tcs_opt_tcp_no_delay_get(socket_true, &socket_true_value) == TCS_SUCCESS); CHECK(socket_true_value == false); - native_true = -1; + native_true = 0; native_size = sizeof(native_true); CHECK(tcs_opt_get(socket_true, TCS_SOL_TCP, TCS_TCP_NODELAY, &native_true, &native_size) == TCS_SUCCESS); CHECK(native_true == 0);