mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
tests: Fix function declaration in pkd_hello
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit f433949dcd)
This commit is contained in:
@@ -72,7 +72,8 @@ static void pkd_sighandler(int signum) {
|
|||||||
(void) signum;
|
(void) signum;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pkd_init_libssh() {
|
static int pkd_init_libssh(void)
|
||||||
|
{
|
||||||
int rc = ssh_threads_set_callbacks(ssh_threads_get_pthread());
|
int rc = ssh_threads_set_callbacks(ssh_threads_get_pthread());
|
||||||
return (rc == SSH_OK) ? 0 : 1;
|
return (rc == SSH_OK) ? 0 : 1;
|
||||||
}
|
}
|
||||||
@@ -115,7 +116,8 @@ out:
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pkd_accept_fd() {
|
static int pkd_accept_fd(void)
|
||||||
|
{
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
struct sockaddr_in addr;
|
struct sockaddr_in addr;
|
||||||
socklen_t len = sizeof(addr);
|
socklen_t len = sizeof(addr);
|
||||||
|
|||||||
Reference in New Issue
Block a user