summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/test_close_failure.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_close_failure.c b/tests/test_close_failure.c
index 0c9d6a7..8a6d40e 100644
--- a/tests/test_close_failure.c
+++ b/tests/test_close_failure.c
@@ -23,14 +23,12 @@ static int teardown(void **state)
static void test_close_failure(void **state)
{
int s;
- int rc;
(void) state; /* unused */
- (void) s; /*set but not used */
s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
- assert_int_not_equal(rc, -1);
+ assert_int_not_equal(s, -1);
/* Do not close the socket here so that destructor
* handles it and no hang should be observed.*/