aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2019-10-31 15:51:54 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-09 16:08:03 +0100
commit6b105624bf87bcab882090b1ad9f8a608833b241 (patch)
tree6e93cbf8522e9924854d18a42f1c1f0ced7ef333 /include/libssh
parentdb4345fb362ec68cfe548e38a31ef83f00c0f3a0 (diff)
downloadlibssh-6b105624bf87bcab882090b1ad9f8a608833b241.tar.gz
libssh-6b105624bf87bcab882090b1ad9f8a608833b241.tar.xz
libssh-6b105624bf87bcab882090b1ad9f8a608833b241.zip
sftp: Fix integer types in sftp_write() and sftp_packet_write()
Fixes T188 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/sftp_priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/sftp_priv.h b/include/libssh/sftp_priv.h
index ccde008a..83925191 100644
--- a/include/libssh/sftp_priv.h
+++ b/include/libssh/sftp_priv.h
@@ -22,7 +22,7 @@
#define SFTP_PRIV_H
sftp_packet sftp_packet_read(sftp_session sftp);
-int sftp_packet_write(sftp_session sftp, uint8_t type, ssh_buffer payload);
+ssize_t sftp_packet_write(sftp_session sftp, uint8_t type, ssh_buffer payload);
void sftp_packet_free(sftp_packet packet);
int buffer_add_attributes(ssh_buffer buffer, sftp_attributes attr);
sftp_attributes sftp_parse_attr(sftp_session session,