summaryrefslogtreecommitdiffstats
path: root/kftpgrabber/src/misc/libs/ssh/sftp.c
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2021-09-17 09:54:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2021-09-17 10:06:59 +0900
commite8ebbd20b32271fffc51ca764e6d3419b58f343d (patch)
tree953cc33f29a5396b54aabedca21d2b1cd36fda91 /kftpgrabber/src/misc/libs/ssh/sftp.c
parenta9360ae6833bd5e95d36e0b62767725a121f4198 (diff)
downloadkftpgrabber-e8ebbd20b32271fffc51ca764e6d3419b58f343d.tar.gz
kftpgrabber-e8ebbd20b32271fffc51ca764e6d3419b58f343d.zip
Get rid of warning 'ISO C++11 does not allow conversion from string literal to char *' in sftp_canonicalize_path
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ec784ca9013d622dc027b273d0ee2c82883dca34)
Diffstat (limited to 'kftpgrabber/src/misc/libs/ssh/sftp.c')
-rw-r--r--kftpgrabber/src/misc/libs/ssh/sftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kftpgrabber/src/misc/libs/ssh/sftp.c b/kftpgrabber/src/misc/libs/ssh/sftp.c
index 9895456..acbe1d6 100644
--- a/kftpgrabber/src/misc/libs/ssh/sftp.c
+++ b/kftpgrabber/src/misc/libs/ssh/sftp.c
@@ -1161,7 +1161,7 @@ int sftp_setstat(SFTP_SESSION *sftp, char *file, SFTP_ATTRIBUTES *attr) {
}
/* another code written by Nick */
-char *sftp_canonicalize_path(SFTP_SESSION *sftp, char *path)
+char *sftp_canonicalize_path(SFTP_SESSION *sftp, const char *path)
{
u32 id = sftp_get_new_id(sftp);
BUFFER *buffer = buffer_new();