diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-28 19:54:25 -0300 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2022-07-28 19:54:25 -0300 |
commit | 052e06fd16f5ef161a10fc7880e32827c814bea2 (patch) | |
tree | 8ffdcbf75e8f235fc7209cbed4d745556d0b5d91 /index.h | |
parent | c8f5ba65044992deb3175e9b89792e13a8af4539 (diff) |
index: rename typedef `index` to `index_t`
This had to be done because `index()` is a function in the standard
library.
Diffstat (limited to 'index.h')
-rw-r--r-- | index.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ #include <stdint.h> -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 |