Split code out into separate files and remove some global variables to
[rsync/rsync.git] / checksum.c
index edc844f..0ce7259 100644 (file)
@@ -91,9 +91,9 @@ void file_checksum(char *fname,char *sum,OFF_T size)
        char tmpchunk[CSUM_CHUNK];
        struct mdfour m;
        
-       memset(sum,0,csum_length);
+       memset(sum,0,MD4_SUM_LENGTH);
        
-       fd = open(fname,O_RDONLY);
+       fd = do_open(fname, O_RDONLY, 0);
        if (fd == -1) return;
        
        buf = map_file(fd,size);