From 052e06fd16f5ef161a10fc7880e32827c814bea2 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 28 Jul 2022 19:54:25 -0300 Subject: index: rename typedef `index` to `index_t` This had to be done because `index()` is a function in the standard library. --- git.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git.c') diff --git a/git.c b/git.c index be54aa9..e13b787 100644 --- a/git.c +++ b/git.c @@ -281,7 +281,7 @@ static int parse_info_file_path(pull_request *pr, const char *root) { return ret; } -pull_request *get_pull_request(index *idx, const char *root) { +pull_request *get_pull_request(index_t *idx, const char *root) { /* Do we have a valid index? */ if (is_valid_index(idx)) { char *pr_dir; @@ -519,7 +519,7 @@ file **get_branch_commits(git_branch *br) { return NULL; } -int create_pull_request_dir(pull_request *pr, index *idx, const char *root) { +int create_pull_request_dir(pull_request *pr, index_t *idx, const char *root) { int ret = 0; struct stat st; file **commits; -- cgit v1.2.3-13-gbd6f