@matheusbsbs / matheus-bagliano / commits / adb7b5fc86
Fork 0

Fix compilation of test-delta

The code used write_in_full() without pulling its declarations from the header file. When header is included, usage[] collides with usage() function. Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <junkio@cox.net>

Martin Koegler committed May 1, 2007 at 11:47 UTC adb7b5fc86d96fc2baf5a5c0ce12fb581b3ad275
1 file changed +3 -2
test-delta.c
+3 -2
@@ -10,8 +10,9 @@
10
11 #include "git-compat-util.h"
12 #include "delta.h"
13 +#include "cache.h"
14
14 -static const char usage[] =
15 +static const char usage_str[] =
16 "test-delta (-d|-p) <from_file> <data_file> <out_file>";
17
18 int main(int argc, char *argv[])
@@ -22,7 +23,7 @@ int main(int argc, char *argv[])
23 unsigned long from_size, data_size, out_size;
24
25 if (argc != 5 || (strcmp(argv[1], "-d") && strcmp(argv[1], "-p"))) {
25 - fprintf(stderr, "Usage: %s\n", usage);
26 + fprintf(stderr, "Usage: %s\n", usage_str);
27 return 1;
28 }
29