git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] submodule-config: use hashmap_iter_init()

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 15, 2016, 18:58 UTC
Message-ID
<CAPig+cR6Cy2MHvoTxNa89gZx9qJZW1Rv93N+wcwK2JRGkUBzRw@mail.gmail.com>
In-Reply-To
<1458066330-5107-1-git-send-email-kuleshovmail@gmail.com>

On Tue, Mar 15, 2016 at 2:25 PM, Alexander Kuleshov <kuleshovmail@gmail.com> wrote:

> submodule-config: use hashmap_iter_init()
Did you mean s/init/first/ ?
> from the <hashmap.h> for simplification.
Sentence fragment...
Missing sign-off.
Show 16 quoted lines
> ---
> 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;
> --
Previous: Alexander KuleshovNext: Stefan Beller
Message 2 of 4 in “submodule-config: use hashmap_iter_init()”
  1. submodule-config: use hashmap_iter_init()Alexander Kuleshov, Mar 15, 2016
  2. Eric SunshineMar 15, 2016
  3. Stefan BellerMar 15, 2016
  4. Alexander KuleshovMar 15, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.