Change variables int side and int patch_method to enum in apply.c. This allows for proper listing of enum constants during debugging. Signed-off-by: Vinayak Dev <vinayakdev.sci@xxxxxxxxx> --- apply.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/apply.c b/apply.c index 1e9cf2f4f2..8612bd44c8 100644 --- a/apply.c +++ b/apply.c @@ -205,9 +205,6 @@ struct fragment { * or deflated "literal". */ #define binary_patch_method leading -/* #define BINARY_DELTA_DEFLATED 1 */ -/* #define BINARY_LITERAL_DEFLATED 2 */ - enum binary_type_deflated { BINARY_DELTA_DEFLATED = 1, BINARY_LITERAL_DEFLATED @@ -924,9 +921,6 @@ static int gitdiff_hdrend(struct gitdiff_data *state UNUSED, * to make sure.. */ -/* #define DIFF_OLD_NAME 0 */ -/* #define DIFF_NEW_NAME 1 */ - enum diff_name { DIFF_OLD_NAME = 0, DIFF_NEW_NAME @@ -936,7 +930,7 @@ static int gitdiff_verify_name(struct gitdiff_data *state, const char *line, int isnull, char **name, - int side) + enum diff_name side) { if (!*name && !isnull) { *name = find_name(state->root, line, NULL, state->p_value, TERM_TAB); @@ -1921,7 +1915,7 @@ static struct fragment *parse_binary_hunk(struct apply_state *state, int llen, used; unsigned long size = *sz_p; char *buffer = *buf_p; - int patch_method; + enum binary_type_deflated patch_method; unsigned long origlen; char *data = NULL; int hunk_size = 0; -- 2.39.1