From 72db38b31dbaf9196bf611e5a957d26859e61812 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 18 Feb 2012 12:23:08 +0100 Subject: threads: Fix function defintions. Fixes sparse warnings. --- src/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/threads.c') diff --git a/src/threads.c b/src/threads.c index 9d70adfb..029ebdd6 100644 --- a/src/threads.c +++ b/src/threads.c @@ -52,7 +52,7 @@ static struct ssh_threads_callbacks_struct ssh_threads_noop = threads_id_noop }; -struct ssh_threads_callbacks_struct *ssh_threads_get_noop(){ +struct ssh_threads_callbacks_struct *ssh_threads_get_noop(void) { return &ssh_threads_noop; } @@ -165,7 +165,7 @@ int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct *cb){ return SSH_OK; } -const char *ssh_threads_get_type(){ +const char *ssh_threads_get_type(void) { if(user_callbacks != NULL) return user_callbacks->type; return NULL; -- cgit v1.2.3