summaryrefslogtreecommitdiff
path: root/src/transaction.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-11-23 19:26:24 +0100
committerPatrick Steinhardt <ps@pks.im>2018-11-28 15:22:27 +0100
commit852bc9f4967d3bd70a284794ff486253e37c6980 (patch)
tree5c4857b20cc036e281a3913019924bb4ba4f4feb /src/transaction.c
parent5bfb3b58e37fc35a0838ca2fa8b38941e056cfcc (diff)
downloadlibgit2-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/transaction.c')
-rw-r--r--src/transaction.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transaction.c b/src/transaction.c
index 675023afd..22ba6b1b2 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -133,8 +133,8 @@ cleanup:
static int find_locked(transaction_node **out, git_transaction *tx, const char *refname)
{
- git_strmap_iter pos;
transaction_node *node;
+ size_t pos;
pos = git_strmap_lookup_index(tx->locks, refname);
if (!git_strmap_valid_index(tx->locks, pos)) {