aboutsummaryrefslogtreecommitdiffstats
path: root/compat.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-05-27 12:37:22 +0000
committerAndrew Tridgell <tridge@samba.org>1998-05-27 12:37:22 +0000
commit4c36ddbeecdde407c870109d70527640ca127ace (patch)
tree40c6f7c9e288d48045d2b2959943cf976a584c22 /compat.c
parent2b6b4d539b0aab98b1cbb9d8c639cb12473aae94 (diff)
downloadandroid_external_rsync-4c36ddbeecdde407c870109d70527640ca127ace.tar.gz
android_external_rsync-4c36ddbeecdde407c870109d70527640ca127ace.tar.bz2
android_external_rsync-4c36ddbeecdde407c870109d70527640ca127ace.zip
heaps of cleanup in the io code.
we no longer use non-blocking IO, instead it uses select a lot more, being careful to always allow for reading whenever a valid read fd is available and chcking timeouts. also split the file io calls into fileio.c
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/compat.c b/compat.c
index f53c433f..a8bcd480 100644
--- a/compat.c
+++ b/compat.c
@@ -44,10 +44,8 @@ void setup_protocol(int f_out,int f_in)
if (am_server) {
remote_version = read_int(f_in);
write_int(f_out,PROTOCOL_VERSION);
- write_flush(f_out);
} else {
write_int(f_out,PROTOCOL_VERSION);
- write_flush(f_out);
remote_version = read_int(f_in);
}
}