remove unused code and introduce -b buf_sz option

This commit removes ifdef ASYNC_WRITE. So, mscp always depends on
the patched libssh.
This commit is contained in:
Ryo Nakamura
2022-12-03 20:48:43 +09:00
parent 50c6781811
commit 3b794ab51b
6 changed files with 54 additions and 167 deletions

View File

@@ -30,8 +30,4 @@ void ssh_sftp_close(sftp_session sftp);
#define sftp_ssh(sftp) (sftp)->session
#define sftp_get_ssh_error(sftp) ssh_get_error(sftp_ssh(sftp))
/* wrapping multiple sftp_read|write */
ssize_t sftp_write2(sftp_file sf, const void *buf, size_t len, size_t sftp_buf_sz);
ssize_t sftp_read2(sftp_file sf, void *buf, size_t len, size_t sftp_buf_sz);
#endif /* _SSH_H_ */