aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-02-18 12:23:08 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-02-19 13:26:02 +0100
commit72db38b31dbaf9196bf611e5a957d26859e61812 (patch)
treef94d803830cba22295e91a041de7dfad28b3c553
parent300caf9ff31ed797b0358bbe441068356baac168 (diff)
downloadlibssh-72db38b31dbaf9196bf611e5a957d26859e61812.tar.gz
libssh-72db38b31dbaf9196bf611e5a957d26859e61812.tar.xz
libssh-72db38b31dbaf9196bf611e5a957d26859e61812.zip
threads: Fix function defintions.
Fixes sparse warnings.
-rw-r--r--src/threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threads.c b/src/threads.c
index 9d70adf..029ebdd 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;