summaryrefslogtreecommitdiff
path: root/lib/ssh.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-03-22 02:40:19 +0100
committerYang Tse <yangsita@gmail.com>2012-03-22 04:54:04 +0100
commit3c80309c276b8ceac13ab1a4824d216805d45afe (patch)
tree663336bf7af75d2ccc6a36a4bcace3d22ae45e54 /lib/ssh.c
parentc83de6d07625b813e3bbc31f9a0827c3a0007355 (diff)
downloadcurl-3c80309c276b8ceac13ab1a4824d216805d45afe.tar.gz
fix several compiler warnings
Diffstat (limited to 'lib/ssh.c')
-rw-r--r--lib/ssh.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/ssh.c b/lib/ssh.c
index d6252f2b5..9ca927d1a 100644
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -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;