aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-11-30 17:49:41 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-11-30 18:25:12 +0100
commita08a97f9c7800fa64375797c5415a77a7b1cd0e8 (patch)
tree76ab930ce524afb4d7b19d12495ef2c00451e132
parentc0ae59e1022071539cd9ce2343cf486cf69b94f2 (diff)
downloadlibssh-a08a97f9c7800fa64375797c5415a77a7b1cd0e8.tar.gz
libssh-a08a97f9c7800fa64375797c5415a77a7b1cd0e8.tar.xz
libssh-a08a97f9c7800fa64375797c5415a77a7b1cd0e8.zip
tests: Use UNUSED macros in torture_threads_init
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/unittests/torture_threads_init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/unittests/torture_threads_init.c b/tests/unittests/torture_threads_init.c
index 8eada0d3..e49bde10 100644
--- a/tests/unittests/torture_threads_init.c
+++ b/tests/unittests/torture_threads_init.c
@@ -55,7 +55,7 @@ static int run_on_threads(void *(*func)(void *))
return rc;
}
-static void *thread_ssh_init(void *threadid)
+static void *thread_ssh_init(UNUSED_PARAM(void *threadid))
{
int rc;
@@ -70,13 +70,10 @@ static void *thread_ssh_init(void *threadid)
pthread_exit(NULL);
}
-static void torture_ssh_init(void **state)
+static void torture_ssh_init(UNUSED_PARAM(void **state))
{
int rc;
- /* Unused */
- (void) state;
-
rc = run_on_threads(thread_ssh_init);
assert_int_equal(rc, 0);
}