summaryrefslogtreecommitdiff
path: root/token.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-23 12:52:57 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-23 12:52:57 +0000
commit3a6a366fc5ac1f418446128de50b4f2a174399fc (patch)
tree9798e51e85c660a3995b6be1e0b740fada167816 /token.c
parent0b91056090d768c4bdc6aa83d929d09416d34e89 (diff)
downloadrsync-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.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/token.c b/token.c
index 1aa107c9..29978ce8 100644
--- a/token.c
+++ b/token.c
@@ -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) {