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

Re: [PATCH v3] http: add support for specifying the SSL version

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Aug 13, 2015, 16:49 UTC
Message-ID
<CAPig+cQZczCShRKeaQ=UP02OmUG5D2-ZCtaEO0qbm=LQ4m=ctw@mail.gmail.com>
In-Reply-To
<CAPig+cQj4-4tnZv1JkUZdGHzgL=x2f6Zg7JeYn5bBgp991WNhg@mail.gmail.com>
On Thu, Aug 13, 2015 at 12:37 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 7 quoted lines
> So, your loop can either look like this, if you use the NULL sentinel:
>
>     struct ssl_map *p = sslversions;
>     while (p->name) {
>         if (!strcmp(ssl_version, p->name))
>             ...
>     }
That's not quite correct. 'p' needs to be incremented, of course, so:
    struct ssl_map *p;
    for (p = sslversions; p->name; p++) {
        if (!strcmp(ssl_version, p->name))
            ...
    }
would be nicely idiomatic.
Previous: Eric SunshineNext: Torsten Bögershausen
Message 7 of 13 in “http: add support for specifying the SSL version”
  1. http: add support for specifying the SSL versionElia Pinto, Aug 13, 2015
  2. Eric SunshineAug 13, 2015
  3. Elia PintoAug 13, 2015
  4. Eric SunshineAug 13, 2015
  5. Elia PintoAug 13, 2015
  6. Eric SunshineAug 13, 2015
  7. Eric SunshineAug 13, 2015
  8. Torsten BögershausenAug 13, 2015
  9. Elia PintoAug 13, 2015
  10. Ilari LiusvaaraAug 13, 2015
  11. Elia PintoAug 13, 2015
  12. Junio C HamanoAug 14, 2015
  13. Elia PintoAug 14, 2015

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.