From f8675343d79058ab5200e93e6c33058e13d7bb43 Mon Sep 17 00:00:00 2001 From: Denton Liu Date: Fri, 6 Dec 2019 12:16:26 -0800 Subject: 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 Signed-off-by: Junio C Hamano --- range-diff.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'range-diff.h') diff --git a/range-diff.h b/range-diff.h index 7d918ab9ed..381d52f4d3 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 -- cgit v1.2.3