aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-04-27 11:54:47 +0000
committerAndreas Schneider <mail@cynapses.org>2009-04-27 11:54:47 +0000
commitbf312c50a9c7f80d38ca394e6cb5ab37e6ff4b88 (patch)
tree8657627094550ba9cf83dff52b2de31a0db78555 /include
parent52d20beb731bb00fd9770da04d21aeec04dfd9c9 (diff)
downloadlibssh-bf312c50a9c7f80d38ca394e6cb5ab37e6ff4b88.tar.gz
libssh-bf312c50a9c7f80d38ca394e6cb5ab37e6ff4b88.tar.xz
libssh-bf312c50a9c7f80d38ca394e6cb5ab37e6ff4b88.zip
Improve sftp_reply_data and fix sftp_reply_status.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@627 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include')
-rw-r--r--include/libssh/sftp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h
index 486165d8..dc914b19 100644
--- a/include/libssh/sftp.h
+++ b/include/libssh/sftp.h
@@ -653,11 +653,11 @@ int sftp_reply_handle(SFTP_CLIENT_MESSAGE *msg, STRING *handle);
STRING *sftp_handle_alloc(SFTP_SESSION *sftp, void *info);
int sftp_reply_attr(SFTP_CLIENT_MESSAGE *msg, SFTP_ATTRIBUTES *attr);
void *sftp_handle(SFTP_SESSION *sftp, STRING *handle);
-int sftp_reply_status(SFTP_CLIENT_MESSAGE *msg, u32 status, char *message);
+int sftp_reply_status(SFTP_CLIENT_MESSAGE *msg, u32 status, const char *message);
int sftp_reply_names_add(SFTP_CLIENT_MESSAGE *msg, const char *file,
const char *longname, SFTP_ATTRIBUTES *attr);
int sftp_reply_names(SFTP_CLIENT_MESSAGE *msg);
-int sftp_reply_data(SFTP_CLIENT_MESSAGE *msg, void *data, int len);
+int sftp_reply_data(SFTP_CLIENT_MESSAGE *msg, const void *data, int len);
void sftp_handle_remove(SFTP_SESSION *sftp, void *handle);
/* SFTP commands and constants */