Skip to content

Commit ef563de

Browse files
Ramsay Jonesgitster
authored andcommitted
convert.c: Fix return type of git_path_check_eol()
The git_path_check_eol() function converts a string value to the corresponding 'enum eol' value. However, the function is currently declared to return an 'enum crlf_action', which causes sparse to complain thus: SP convert.c convert.c:736:50: warning: mixing different enum types convert.c:736:50: int enum crlf_action versus convert.c:736:50: int enum eol In order to suppress the warning, we simply correct the return type in the function declaration. Signed-off-by: Ramsay Jones <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e4ac953 commit ef563de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

convert.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static enum crlf_action git_path_check_crlf(const char *path, struct git_attr_ch
658658
return CRLF_GUESS;
659659
}
660660

661-
static enum crlf_action git_path_check_eol(const char *path, struct git_attr_check *check)
661+
static enum eol git_path_check_eol(const char *path, struct git_attr_check *check)
662662
{
663663
const char *value = check->value;
664664

0 commit comments

Comments
 (0)