aboutsummaryrefslogtreecommitdiffstats
path: root/checksum.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 /checksum.c
parent0b91056090d768c4bdc6aa83d929d09416d34e89 (diff)
downloadandroid_external_rsync-3a6a366fc5ac1f418446128de50b4f2a174399fc.tar.gz
android_external_rsync-3a6a366fc5ac1f418446128de50b4f2a174399fc.tar.bz2
android_external_rsync-3a6a366fc5ac1f418446128de50b4f2a174399fc.zip
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 'checksum.c')
-rw-r--r--checksum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/checksum.c b/checksum.c
index a7ee0707..32299f0c 100644
--- a/checksum.c
+++ b/checksum.c
@@ -65,8 +65,8 @@ void get_checksum2(char *buf,int len,char *sum)
{
int i;
MDstruct MD;
- static char *buf1 = NULL;
- static int len1 = 0;
+ static char *buf1;
+ static int len1;
if (len > len1) {
if (buf1) free(buf1);