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
replace calls to strcmp() with a u_strcmp() function that uses only
[rsync/rsync.git]
/
checksum.c
diff --git
a/checksum.c
b/checksum.c
index
32299f0
..
6dc935e
100644
(file)
--- a/
checksum.c
+++ b/
checksum.c
@@
-34,7
+34,7
@@
uint32 get_checksum1(char *buf1,int len)
{
int i;
uint32 s1, s2;
{
int i;
uint32 s1, s2;
- s
igned char *buf = (signed
char *)buf1;
+ s
char *buf = (s
char *)buf1;
s1 = s2 = 0;
for (i = 0; i < (len-4); i+=4) {
s1 = s2 = 0;
for (i = 0; i < (len-4); i+=4) {
@@
-93,13
+93,13
@@
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)
{
{
-
off_t
i;
+
OFF_T
i;
MDstruct MD;
struct map_struct *buf;
int fd;
MDstruct MD;
struct map_struct *buf;
int fd;
-
off_t
len = size;
+
OFF_T
len = size;
char tmpchunk[CSUM_CHUNK];
bzero(sum,csum_length);
char tmpchunk[CSUM_CHUNK];
bzero(sum,csum_length);