Commit 288c8a25750af694685ad71e08b6708729266aa9

schu 2012-03-13T16:48:07

examples/diff: update example code Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/examples/diff.c b/examples/diff.c
index f80f702..20e14e5 100644
--- a/examples/diff.c
+++ b/examples/diff.c
@@ -172,8 +172,8 @@ int main(int argc, char *argv[])
 			!check_uint16_param(a, "--unified=", &opts.context_lines) &&
 			!check_uint16_param(a, "--inter-hunk-context=",
 				&opts.interhunk_lines) &&
-			!check_str_param(a, "--src-prefix=", &opts.src_prefix) &&
-			!check_str_param(a, "--dst-prefix=", &opts.dst_prefix))
+			!check_str_param(a, "--src-prefix=", &opts.old_prefix) &&
+			!check_str_param(a, "--dst-prefix=", &opts.new_prefix))
 			usage("Unknown arg", a);
 	}