aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-02-08 19:36:44 +0100
committerAndreas Schneider <asn@cryptomilk.org>2011-02-08 19:36:44 +0100
commit5144f390caea09db225ab6960ed70f4bfe7c1e01 (patch)
tree6b3961c85d467ba280849c86b39788995dd4d2e9 /examples
parentf5e2c94ae33fda1313a154d415de730c0600ea7b (diff)
downloadlibssh-5144f390caea09db225ab6960ed70f4bfe7c1e01.tar.gz
libssh-5144f390caea09db225ab6960ed70f4bfe7c1e01.tar.xz
libssh-5144f390caea09db225ab6960ed70f4bfe7c1e01.zip
examples: Fixed build warning.
Diffstat (limited to 'examples')
-rw-r--r--examples/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/exec.c b/examples/exec.c
index 31e981cc..03d5d4b3 100644
--- a/examples/exec.c
+++ b/examples/exec.c
@@ -8,7 +8,7 @@ int main(void) {
ssh_session session;
ssh_channel channel;
char buffer[256];
- uint32_t nbytes;
+ int nbytes;
int rc;
session = connect_ssh("localhost", NULL, 0);
@@ -35,7 +35,7 @@ int main(void) {
nbytes = ssh_channel_read(channel, buffer, sizeof(buffer), 0);
while (nbytes > 0) {
- if (fwrite(buffer, 1, nbytes, stdout) != nbytes) {
+ if (fwrite(buffer, 1, nbytes, stdout) != (unsigned int) nbytes) {
goto failed;
}
nbytes = ssh_channel_read(channel, buffer, sizeof(buffer), 0);