git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] submodule-config: use hashmap_iter_init()
@ 2016-03-15 18:25 Alexander Kuleshov
  2016-03-15 18:58 ` Eric Sunshine
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Kuleshov @ 2016-03-15 18:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Git, Alexander Kuleshov

from the <hashmap.h> for simplification.
---
 submodule-config.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/submodule-config.c b/submodule-config.c
index b82d1fb..8ac5031 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -405,8 +405,7 @@ static const struct submodule *config_from(struct submodule_cache *cache,
 		struct hashmap_iter iter;
 		struct submodule_entry *entry;
 
-		hashmap_iter_init(&cache->for_name, &iter);
-		entry = hashmap_iter_next(&iter);
+		entry = hashmap_iter_first(&cache->for_name, &iter);
 		if (!entry)
 			return NULL;
 		return entry->config;
-- 
2.8.0.rc2.216.g1477fb2.dirty

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-15 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-15 18:25 [PATCH] submodule-config: use hashmap_iter_init() Alexander Kuleshov
2016-03-15 18:58 ` Eric Sunshine
2016-03-15 19:08   ` Stefan Beller
2016-03-15 19:10     ` Alexander Kuleshov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).