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. --- index.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'index.h') diff --git a/index.h b/index.h index 4b37534..e640514 100644 --- a/index.h +++ b/index.h @@ -3,7 +3,7 @@ #include -typedef struct index index; +typedef struct index index_t; struct index { uint8_t type; /* Index type. (0 = Named index, 1 = Numbered index) */ @@ -11,12 +11,12 @@ struct index { char *name; /* Named index. */ uint64_t num; /* Numbered index. */ }; - index *next; /* Next index. */ + index_t *next; /* Next index. */ }; -extern int is_valid_index(index *idx); -extern char *make_index_path(const char *root, index *idx, int path_type); -extern char *index_to_str(index *idx); -extern int index_path_exists(index *idx, const char *root, char **path); +extern int is_valid_index(index_t *idx); +extern char *make_index_path(const char *root, index_t *idx, int path_type); +extern char *index_to_str(index_t *idx); +extern int index_path_exists(index_t *idx, const char *root, char **path); #endif -- cgit v1.2.3-13-gbd6f