summaryrefslogtreecommitdiff
path: root/index.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-07-28 19:54:25 -0300
committermrb0nk500 <b0nk@b0nk.xyz>2022-07-28 19:54:25 -0300
commit052e06fd16f5ef161a10fc7880e32827c814bea2 (patch)
tree8ffdcbf75e8f235fc7209cbed4d745556d0b5d91 /index.h
parentc8f5ba65044992deb3175e9b89792e13a8af4539 (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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/index.h b/index.h
index 4b37534..e640514 100644
--- a/index.h
+++ b/index.h
@@ -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