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

Re: [PATCH 3/3] curl: fix symbolic constant typechecks with curl_easy_setopt()

From
Daniel Stenberg <daniel@haxx.se>
Date
Jun 5, 2025, 06:13 UTC
Message-ID
<r1197994-o3so-6453-q16n-6n3on33n4nrp@unkk.fr>
In-Reply-To
<20250604205622.GC1510819@coredump.intra.peff.net>
On Wed, 4 Jun 2025, Jeff King wrote:
> It seems kind of weird to me that curl doesn't define these constants as
> longs, since the point of them is to pass to curl_easy_setopt().

Agreed. Mostly just because of my lack of imagination when I added them a long time ago.

We have over recent times updated several public option related defines to better help applications to get int vs long right, but I have clearly missed to do that for this particular set.

I intend to fix this omission, but since you want to support building with lots of old curl versions as well, this correction probably won't help you for another decade or so... :-)

-- 
  / daniel.haxx.se
Previous: Junio C HamanoNext: Jeff King
Message 12 of 16 in “silencing warnings with curl 8.14”
  1. 0/3 silencing warnings with curl 8.14Jeff King, Jun 4, 2025
  2. 1/3 curl: fix integer constant typechecks with curl_easy_setopt()Jeff King, Jun 4, 2025
  3. Johannes SchindelinJun 5, 2025
  4. Junio C HamanoJun 5, 2025
  5. Jeff KingJun 5, 2025
  6. Jeff KingJun 5, 2025
  7. Junio C HamanoJun 5, 2025
  8. Jeff KingJun 5, 2025
  9. 2/3 curl: fix integer variable typechecks with curl_easy_setopt()Jeff King, Jun 4, 2025
  10. 3/3 curl: fix symbolic constant typechecks with curl_easy_setopt()Jeff King, Jun 4, 2025
  11. Junio C HamanoJun 4, 2025
  12. Daniel StenbergJun 5, 2025
  13. Jeff KingJun 5, 2025
  14. Collin FunkJun 4, 2025
  15. Ramsay JonesJun 4, 2025
  16. Patrick SteinhardtJun 5, 2025

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.