Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't show basedir in printed path (a aesthetic change only)
[rsync/rsync.git]
/
checksum.c
diff --git
a/checksum.c
b/checksum.c
index
7b8035c
..
32299f0
100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-65,8
+65,8
@@
void get_checksum2(char *buf,int len,char *sum)
{
int i;
MDstruct MD;
{
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);
if (len > len1) {
if (buf1) free(buf1);
@@
-95,11
+95,11
@@
void get_checksum2(char *buf,int len,char *sum)
void file_checksum(char *fname,char *sum,off_t size)
{
void file_checksum(char *fname,char *sum,off_t size)
{
-
in
t i;
+
off_
t i;
MDstruct MD;
struct map_struct *buf;
int fd;
MDstruct MD;
struct map_struct *buf;
int fd;
-
in
t len = size;
+
off_
t len = size;
char tmpchunk[CSUM_CHUNK];
bzero(sum,csum_length);
char tmpchunk[CSUM_CHUNK];
bzero(sum,csum_length);