diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-11-23 19:26:24 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-11-28 15:22:27 +0100 |
| commit | 852bc9f4967d3bd70a284794ff486253e37c6980 (patch) | |
| tree | 5c4857b20cc036e281a3913019924bb4ba4f4feb /src/tree.c | |
| parent | 5bfb3b58e37fc35a0838ca2fa8b38941e056cfcc (diff) | |
| download | libgit2-852bc9f4967d3bd70a284794ff486253e37c6980.tar.gz | |
khash: remove intricate knowledge of khash types
Instead of using the `khiter_t`, `git_strmap_iter` and `khint_t` types,
simply use `size_t` instead. This decouples code from the khash stuff
and makes it possible to move the khash includes into the implementation
files.
Diffstat (limited to 'src/tree.c')
| -rw-r--r-- | src/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c index d9b59390a..566e961d4 100644 --- a/src/tree.c +++ b/src/tree.c @@ -723,7 +723,7 @@ int git_treebuilder_insert( { git_tree_entry *entry; int error; - git_strmap_iter pos; + size_t pos; assert(bld && id && filename); @@ -758,7 +758,7 @@ int git_treebuilder_insert( static git_tree_entry *treebuilder_get(git_treebuilder *bld, const char *filename) { git_tree_entry *entry = NULL; - git_strmap_iter pos; + size_t pos; assert(bld && filename); |
