diff options
| author | Wayne Davison <wayned@samba.org> | 2004-07-17 21:17:34 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2004-07-17 21:17:34 +0000 |
| commit | 93095cbe99154752c92c1d112cac139852b715a5 (patch) | |
| tree | 6f9f155f138a5bc79044d295d1928815c52b0958 /io.c | |
| parent | 399371e7b574687a853517a18aa4fdbe0f193b33 (diff) | |
| download | android_external_rsync-93095cbe99154752c92c1d112cac139852b715a5.tar.gz android_external_rsync-93095cbe99154752c92c1d112cac139852b715a5.tar.bz2 android_external_rsync-93095cbe99154752c92c1d112cac139852b715a5.zip | |
A very minor optimization was made to read_sbuf(), read_byte(),
write_sbuf(), and write_byte().
Diffstat (limited to 'io.c')
| -rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -761,14 +761,14 @@ void read_buf(int f,char *buf,size_t len) void read_sbuf(int f,char *buf,size_t len) { - read_buf(f,buf,len); + readfd(f, buf, len); buf[len] = 0; } unsigned char read_byte(int f) { unsigned char c; - read_buf(f, (char *)&c, 1); + readfd(f, (char *)&c, 1); return c; } @@ -1037,13 +1037,13 @@ void write_buf(int f,char *buf,size_t len) /** Write a string to the connection */ static void write_sbuf(int f,char *buf) { - write_buf(f, buf, strlen(buf)); + writefd(f, buf, strlen(buf)); } void write_byte(int f,unsigned char c) { - write_buf(f,(char *)&c,1); + writefd(f, (char *)&c, 1); } |
