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
added wrappers around all the system calls that can change what is on
[rsync/rsync.git]
/
match.c
diff --git
a/match.c
b/match.c
index
86f4b3e
..
d5ceba3
100644
(file)
--- a/
match.c
+++ b/
match.c
@@
-36,10
+36,10
@@
static int tag_hits;
static int matches;
static int data_transfer;
static int matches;
static int data_transfer;
-static int total_false_alarms
=0
;
-static int total_tag_hits
=0
;
-static int total_matches
=0
;
-static
int total_data_transfer=0
;
+static int total_false_alarms;
+static int total_tag_hits;
+static int total_matches;
+static
off_t total_data_transfer
;
struct target {
struct target {
@@
-47,9
+47,9
@@
struct target {
int i;
};
int i;
};
-static struct target *targets
=NULL
;
+static struct target *targets;
-static tag *tag_table
= NULL
;
+static tag *tag_table;
#define gettag2(s1,s2) (((s1) + (s2)) & 0xFFFF)
#define gettag(sum) gettag2((sum)&0xFFFF,(sum)>>16)
#define gettag2(s1,s2) (((s1) + (s2)) & 0xFFFF)
#define gettag(sum) gettag2((sum)&0xFFFF,(sum)>>16)
@@
-273,7
+273,7
@@
void match_report(void)
return;
fprintf(FINFO,
return;
fprintf(FINFO,
- "total: matches=%d tag_hits=%d false_alarms=%d data=%d\n",
+ "total: matches=%d tag_hits=%d false_alarms=%d data=%
l
d\n",
total_matches,total_tag_hits,
total_matches,total_tag_hits,
- total_false_alarms,total_data_transfer);
+ total_false_alarms,
(long)
total_data_transfer);
}
}