diff options
Diffstat (limited to 'ui-summary.c')
| -rw-r--r-- | ui-summary.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-summary.c b/ui-summary.c index 6725634..00a5dd5 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -185,7 +185,7 @@ static int get_readme_oid_cb(const struct object_id *oid, struct strbuf *base, strbuf_release(&buffer); for (int i = 0; i < sizeof(readme_names)/sizeof(*readme_names); i++) { - if (match_base && stricmp(pathname, readme_names[i]) == 0) { + if (match_base && strcasecmp(pathname, readme_names[i]) == 0) { *(ctx->oid) = *oid; *(ctx->filename) = xstrdup(pathname); ctx->found = true; @@ -198,7 +198,7 @@ static int get_readme_oid_cb(const struct object_id *oid, struct strbuf *base, return 0; } -bool get_readme_oid(const struct tree *tree, struct pathspec *paths, struct object_id *oid, char **filename) { +bool get_readme_oid(struct tree *tree, struct pathspec *paths, struct object_id *oid, char **filename) { struct get_readme_oid_ctx gro_ctx = (struct get_readme_oid_ctx){ .oid = oid, .filename = filename, @@ -209,7 +209,7 @@ bool get_readme_oid(const struct tree *tree, struct pathspec *paths, struct obje return gro_ctx.found; } -void cgit_print_repo_readme_no_layout(const struct tree *tree, struct pathspec *paths) +void cgit_print_repo_readme_no_layout(struct tree *tree, struct pathspec *paths) { char *filename = NULL; struct object_id readme_oid; |
