aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-12-23 08:54:39 +0100
committerAndreas Schneider <asn@cynapses.org>2010-12-23 08:54:39 +0100
commit33c41074a794e5d264ebf9e3ee88ea99455f682d (patch)
treeee80be15aace0774b70ee97caad974d536ee18d3
parent936c65f03e6f303171675915ab7fbb30dd0ab588 (diff)
downloadlibssh-33c41074a794e5d264ebf9e3ee88ea99455f682d.tar.gz
libssh-33c41074a794e5d264ebf9e3ee88ea99455f682d.tar.xz
libssh-33c41074a794e5d264ebf9e3ee88ea99455f682d.zip
libsshpp: Fixed return of non-void function.
-rw-r--r--include/libssh/libsshpp.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp
index 880c492..ab156c6 100644
--- a/include/libssh/libsshpp.hpp
+++ b/include/libssh/libsshpp.hpp
@@ -350,7 +350,9 @@ public:
* @see ssh_write_knownhost
*/
int writeKnownhost(){
- ssh_throw(ssh_write_knownhost(c_session));
+ int ret = ssh_write_knownhost(c_session);
+ ssh_throw(ret);
+ return ret;
}
/** @brief accept an incoming forward connection
@@ -528,6 +530,7 @@ public:
int err=ssh_channel_request_x11(channel,single_connection,
protocol, cookie, screen_number);
ssh_throw(err);
+ return err;
}
void_throwable sendEof(){
int err=ssh_channel_send_eof(channel);