Skip to content

hash: change key arguments to const - #22886

Closed
icing wants to merge 3 commits into
curl:masterfrom
icing:hash-const-key
Closed

icing wants to merge 3 commits into
curl:masterfrom
icing:hash-const-key

Conversation

@icing

@icing icing commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

hash.h functions had void *key as argument in several functions and those should be const void *key instead as they are not modified.

Saves a ton of CURL_UNCONST use, often on string constants where they are definitely not wanted.

hash.h functions had `void *key` as argument in several functions
and those should be `const void *key` instead as they are not modified.

Saves a ton of `CURL_UNCONST` use, often on string constants where
they are definitely not wanted.
@github-actions github-actions Bot added the tests label Sep 9, 2026
@testclutch

Copy link
Copy Markdown

Analysis of PR #22886 at 11ee82c1:

Test 440 failed, but it has been 1.6% flaky lately, so it's probably NOT a fault of the PR. Note that this test has failed in 12 different CI jobs (the link just goes to one of them).

Generated by Testclutch

@bagder bagder closed this in 66aaba7 Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

3 participants