aboutsummaryrefslogtreecommitdiff
path: root/samplesshd.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-05-04 10:06:49 +0000
committerAndreas Schneider <mail@cynapses.org>2009-05-04 10:06:49 +0000
commit152da0702351dce04b62999aa98efc57fbda4489 (patch)
tree99a98d1ee0b4e29d9c6616c9cbe0496ae837487a /samplesshd.c
parentdda7808851079f75042fd73850adb336eb53c8e8 (diff)
downloadlibssh-152da0702351dce04b62999aa98efc57fbda4489.tar.gz
libssh-152da0702351dce04b62999aa98efc57fbda4489.tar.xz
libssh-152da0702351dce04b62999aa98efc57fbda4489.zip
Implement channel_read() as a POSIX like function.
Create channel_read_buffer() to have the old version still available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@700 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'samplesshd.c')
-rw-r--r--samplesshd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/samplesshd.c b/samplesshd.c
index ee16725..edd2d17 100644
--- a/samplesshd.c
+++ b/samplesshd.c
@@ -145,7 +145,7 @@ int main(int argc, char **argv){
printf("it works !\n");
buf=buffer_new();
do{
- i=channel_read(chan,buf,0,0);
+ i=channel_read_buffer(chan,buf,0,0);
if(i>0)
write(1,buffer_get(buf),buffer_get_len(buf));
} while (i>0);