range-diff: mark pointers as const
The contents pointed to by `diffopt` and `other_arg` should not be
modified. Mark these as `const` to indicate this.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/range-diff.h b/range-diff.h
index 7d918ab..381d52f 100644
--- a/range-diff.h
+++ b/range-diff.h
@@ -13,7 +13,7 @@
*/
int show_range_diff(const char *range1, const char *range2,
int creation_factor, int dual_color,
- struct diff_options *diffopt,
- struct argv_array *other_arg);
+ const struct diff_options *diffopt,
+ const struct argv_array *other_arg);
#endif