diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-23 12:52:57 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-23 12:52:57 +0000 |
commit | 3a6a366fc5ac1f418446128de50b4f2a174399fc (patch) | |
tree | 9798e51e85c660a3995b6be1e0b740fada167816 /token.c | |
parent | 0b91056090d768c4bdc6aa83d929d09416d34e89 (diff) | |
download | rsync-3a6a366fc5ac1f418446128de50b4f2a174399fc.tar.gz |
finished 64 bit file offset support. Hopefully rsync can now transfer
files up to 2^64 bytes in size. Now I just need to find enough disk
space to test this :-)
The 64 bit offset code only works if off_t is 64 bits (or bigger!) on
both ends of the link. If one end tries to send a file greater than
2^31 in size and the other end doesn't support it then rsync will
abort.
This commit also cleans up some static declarations so they are in a
unitinitialised segment to save load time.
Diffstat (limited to 'token.c')
-rw-r--r-- | token.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -26,8 +26,8 @@ extern int do_compression; /* non-compressing recv token */ static int simple_recv_token(int f,char **data) { - static int residue = 0; - static char *buf = NULL; + static int residue; + static char *buf; int n; if (!buf) { @@ -99,7 +99,7 @@ static int last_run_end; static z_stream tx_strm; /* Output buffer */ -static char *obuf = NULL; +static char *obuf; /* Send a deflated token */ static void @@ -220,8 +220,8 @@ static int recv_deflated_token(int f, char **data) { int n, r, flag; - static int init_done = 0; - static int saved_flag = 0; + static int init_done; + static int saved_flag; for (;;) { switch (recv_state) { |