aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJan Pazdziora <jpazdziora@redhat.com>2019-03-14 10:00:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-03-25 18:51:15 +0100
commitb0bd05a7246a147ab4c262ae6660a9cd30dd29c7 (patch)
treea54ba7ed6077d115eb651fe5f4c03346bc3f8525 /doc
parentcd8f5ddbc22e27444cd4e98f702a8e69d734553f (diff)
downloadlibssh-b0bd05a7246a147ab4c262ae6660a9cd30dd29c7.tar.gz
libssh-b0bd05a7246a147ab4c262ae6660a9cd30dd29c7.tar.xz
libssh-b0bd05a7246a147ab4c262ae6660a9cd30dd29c7.zip
sftp_get_error returns int, not char *.
Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'doc')
-rw-r--r--doc/sftp.dox2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/sftp.dox b/doc/sftp.dox
index 78317f59..1f99cfdf 100644
--- a/doc/sftp.dox
+++ b/doc/sftp.dox
@@ -61,7 +61,7 @@ int sftp_helloworld(ssh_session session)
rc = sftp_init(sftp);
if (rc != SSH_OK)
{
- fprintf(stderr, "Error initializing SFTP session: %s.\n",
+ fprintf(stderr, "Error initializing SFTP session: code %d.\n",
sftp_get_error(sftp));
sftp_free(sftp);
return rc;