diff options
author | Yang Tse <yangsita@gmail.com> | 2012-03-22 02:40:19 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-03-22 04:54:04 +0100 |
commit | 3c80309c276b8ceac13ab1a4824d216805d45afe (patch) | |
tree | 663336bf7af75d2ccc6a36a4bcace3d22ae45e54 /lib/ssh.c | |
parent | c83de6d07625b813e3bbc31f9a0827c3a0007355 (diff) | |
download | curl-3c80309c276b8ceac13ab1a4824d216805d45afe.tar.gz |
fix several compiler warnings
Diffstat (limited to 'lib/ssh.c')
-rw-r--r-- | lib/ssh.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -108,6 +108,10 @@ have their definition hidden well */ #endif +#define sftp_libssh2_realpath(s,p,t,m) \ + libssh2_sftp_symlink_ex((s), (p), curlx_uztoui(strlen(p)), \ + (t), (m), LIBSSH2_SFTP_REALPATH) + /* Local functions: */ static const char *sftp_libssh2_strerror(unsigned long err); static LIBSSH2_ALLOC_FUNC(my_libssh2_malloc); @@ -982,7 +986,7 @@ static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block) /* * Get the "home" directory */ - rc = libssh2_sftp_realpath(sshc->sftp_session, ".", + rc = sftp_libssh2_realpath(sshc->sftp_session, ".", tempHome, PATH_MAX-1); if(rc == LIBSSH2_ERROR_EAGAIN) { break; |