mirror of
https://github.com/libssh2/libssh2.git
synced 2025-07-31 00:03:08 +03:00
libssh2_scp_send, libssh2_scp_send_ex: add deprecation warning
Also: - switch to non-deprecated alternative in examples. - add pointers and deprecation warning to libssh2_scp_send man page. Cherry-picked from #1484
This commit is contained in:
@ -152,8 +152,8 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* Send a file via scp. The mode parameter must only have permissions! */
|
||||
channel = libssh2_scp_send(session, scppath, fileinfo.st_mode & 0777,
|
||||
(size_t)fileinfo.st_size);
|
||||
channel = libssh2_scp_send64(session, scppath, fileinfo.st_mode & 0777,
|
||||
fileinfo.st_size, 0, 0);
|
||||
|
||||
if(!channel) {
|
||||
char *errmsg;
|
||||
|
Reference in New Issue
Block a user