mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-28 01:41:48 +03:00
tests: Use UNUSED macros in torture_threads_init
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user