summaryrefslogtreecommitdiff
path: root/src/path.c
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-03-09 16:06:44 +0900
committerRyo Nakamura <upa@haeena.net>2024-03-09 16:06:44 +0900
commit9d02fc9122cb32a5aeeaea4b694447e1ff751c94 (patch)
treebc414e62372d4c8d190aea782d846a82b5f5e666 /src/path.c
parent0e80f089be57e8c1e607551d0cf9c9701a5f213c (diff)
sftp_async_write: bit cleanup error messaging
Diffstat (limited to 'src/path.c')
-rw-r--r--src/path.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path.c b/src/path.c
index f558300..219ec53 100644
--- a/src/path.c
+++ b/src/path.c
@@ -366,8 +366,8 @@ static int copy_chunk_l2r(struct chunk *c, int fd, sftp_file sf, int nr_ahead, i
reqs[idx].len = sftp_async_write(sf, read_to_buf, reqs[idx].len, &fd,
&reqs[idx].id);
if (reqs[idx].len < 0) {
- priv_set_errv("sftp_async_write: %s or %s",
- sftp_get_ssh_error(sf->sftp), strerrno());
+ priv_set_errv("sftp_async_write: %s",
+ sftp_get_ssh_error(sf->sftp));
return -1;
}
thrown -= reqs[idx].len;
@@ -394,8 +394,8 @@ static int copy_chunk_l2r(struct chunk *c, int fd, sftp_file sf, int nr_ahead, i
reqs[idx].len = sftp_async_write(sf, read_to_buf, reqs[idx].len, &fd,
&reqs[idx].id);
if (reqs[idx].len < 0) {
- priv_set_errv("sftp_async_write: %s or %s",
- sftp_get_ssh_error(sf->sftp), strerrno());
+ priv_set_errv("sftp_async_write: %s",
+ sftp_get_ssh_error(sf->sftp));
return -1;
}
thrown -= reqs[idx].len;