summaryrefslogtreecommitdiff
path: root/src/ssh.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2023-02-25 22:17:29 +0900
committerRyo Nakamura <upa@haeena.net>2023-02-25 22:17:29 +0900
commit1be9b70808ca235cd784d66efa92ecd2ce8c4e86 (patch)
tree77dd580ffb3749c8bd8aeb45f5603afabb866d4a /src/ssh.c
parentb4c021c954866aade1ea893b04f307afa7295bd7 (diff)
start to impliment mscp as a library
this commit starts to refactor file.h|c to path.h|c and add mscp.c|h. not completed yet.
Diffstat (limited to 'src/ssh.c')
-rw-r--r--src/ssh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ssh.c b/src/ssh.c
index 67909d3..e063e28 100644
--- a/src/ssh.c
+++ b/src/ssh.c
@@ -148,7 +148,7 @@ static struct ssh_callbacks_struct cb = {
.userdata = NULL,
};
-static ssh_session ssh_init_session(char *sshdst, struct ssh_opts *opts)
+static ssh_session ssh_init_session(const char *sshdst, struct ssh_opts *opts)
{
ssh_session ssh = ssh_new();
@@ -187,7 +187,7 @@ free_out:
return NULL;
}
-sftp_session ssh_init_sftp_session(char *sshdst, struct ssh_opts *opts)
+sftp_session ssh_init_sftp_session(const char *sshdst, struct ssh_opts *opts)
{
sftp_session sftp;
ssh_session ssh = ssh_init_session(sshdst, opts);