diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2018-08-20 15:36:59 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-08-20 18:42:03 +0200 |
commit | f433949dcd2ec76d0c6b6766e8246fef58fd905a (patch) | |
tree | 03ccce8e8dcfd23858863adc62732d9821dc9c78 /tests/pkd | |
parent | 8e418ea020ae799061a62b51faf13bbe3aeb3557 (diff) | |
download | libssh-f433949dcd2ec76d0c6b6766e8246fef58fd905a.tar.gz libssh-f433949dcd2ec76d0c6b6766e8246fef58fd905a.tar.xz libssh-f433949dcd2ec76d0c6b6766e8246fef58fd905a.zip |
tests: Fix function declaration in pkd_hello
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/pkd')
-rw-r--r-- | tests/pkd/pkd_daemon.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/pkd/pkd_daemon.c b/tests/pkd/pkd_daemon.c index 6c9c3592..55f7cc62 100644 --- a/tests/pkd/pkd_daemon.c +++ b/tests/pkd/pkd_daemon.c @@ -72,7 +72,8 @@ static void pkd_sighandler(int signum) { (void) signum; } -static int pkd_init_libssh() { +static int pkd_init_libssh(void) +{ int rc = ssh_threads_set_callbacks(ssh_threads_get_pthread()); return (rc == SSH_OK) ? 0 : 1; } @@ -115,7 +116,8 @@ out: return rc; } -static int pkd_accept_fd() { +static int pkd_accept_fd(void) +{ int fd = -1; struct sockaddr_in addr; socklen_t len = sizeof(addr); |