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
*** empty log message ***
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
1841248
..
79e0b74
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-257,7
+257,7
@@
void recv_generator(char *fname,struct file_list *flist,int i,int f_out)
struct stat st;
struct map_struct *buf;
struct sum_struct *s;
struct stat st;
struct map_struct *buf;
struct sum_struct *s;
- char sum[SUM_LENGTH];
+ char sum[
MD4_
SUM_LENGTH];
int statret;
struct file_struct *file = &flist->files[i];
int statret;
struct file_struct *file = &flist->files[i];
@@
-408,8
+408,8
@@
static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname)
off_t offset = 0;
off_t offset2;
char *data;
off_t offset = 0;
off_t offset2;
char *data;
- static char file_sum1[SUM_LENGTH];
- static char file_sum2[SUM_LENGTH];
+ static char file_sum1[
MD4_
SUM_LENGTH];
+ static char file_sum2[
MD4_
SUM_LENGTH];
char *map=NULL;
count = read_int(f_in);
char *map=NULL;
count = read_int(f_in);
@@
-462,10
+462,10
@@
static int receive_data(int f_in,struct map_struct *buf,int fd,char *fname)
sum_end(file_sum1);
if (remote_version >= 14) {
sum_end(file_sum1);
if (remote_version >= 14) {
- read_buf(f_in,file_sum2,SUM_LENGTH);
+ read_buf(f_in,file_sum2,
MD4_
SUM_LENGTH);
if (verbose > 2)
fprintf(FERROR,"got file_sum\n");
if (verbose > 2)
fprintf(FERROR,"got file_sum\n");
- if (memcmp(file_sum1,file_sum2,SUM_LENGTH) != 0)
+ if (memcmp(file_sum1,file_sum2,
MD4_
SUM_LENGTH) != 0)
return 0;
}
return 1;
return 0;
}
return 1;