summaryrefslogtreecommitdiff
path: root/src/hashtable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashtable.c')
-rw-r--r--src/hashtable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/hashtable.c b/src/hashtable.c
index b40737d67..86e5a113a 100644
--- a/src/hashtable.c
+++ b/src/hashtable.c
@@ -94,22 +94,22 @@ static void node_swap_with(git_hashtable_node *self, git_hashtable_node *other)
}
static int node_insert(git_hashtable *self, git_hashtable_node *new_node)
-{
+{
int iteration, hash_id;
- for (iteration = 0; iteration < MAX_LOOPS; iteration++) {
+ for (iteration = 0; iteration < MAX_LOOPS; iteration++) {
for (hash_id = 0; hash_id < GIT_HASHTABLE_HASHES; ++hash_id) {
git_hashtable_node *node;
node = node_with_hash(self, new_node->key, hash_id);
node_swap_with(new_node, node);
if(new_node->key == 0x0){
self->key_count++;
- return GIT_SUCCESS;
+ return GIT_SUCCESS;
}
}
}
- if (self->is_resizing)
+ if (self->is_resizing)
return git__throw(GIT_EBUSY, "Failed to insert node. Hashtable is currently resizing");
resize_to(self, self->size * 2);
@@ -130,7 +130,7 @@ static int insert_nodes(git_hashtable *self, git_hashtable_node *old_nodes, size
return GIT_SUCCESS;
}
-git_hashtable *git_hashtable_alloc(size_t min_size,
+git_hashtable *git_hashtable_alloc(size_t min_size,
git_hash_ptr hash,
git_hash_keyeq_ptr key_eq)
{