diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:06:49 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-05-04 10:06:49 +0000 |
commit | 152da0702351dce04b62999aa98efc57fbda4489 (patch) | |
tree | 99a98d1ee0b4e29d9c6616c9cbe0496ae837487a /samplesshd.c | |
parent | dda7808851079f75042fd73850adb336eb53c8e8 (diff) | |
download | libssh-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.c | 2 |
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); |