Skip to content

C23 const fixes#901

Merged
dscho merged 2 commits intovfs-2.54.0from
c23-const-fixes
Apr 28, 2026
Merged

C23 const fixes#901
dscho merged 2 commits intovfs-2.54.0from
c23-const-fixes

Conversation

@dscho
Copy link
Copy Markdown
Member

@dscho dscho commented Apr 28, 2026

This ports the two patches from #900 that were not backports to vfs-2.54.0, to appease the C23 const rules of strchr()/strrchr()/memchr() (which are now in effect due to Fedora 44 being used in fedora-breaking-changes.

dscho added 2 commits April 28, 2026 14:09
Accommodate for C23 enforcing `const`-ness of `strchr()`'s return value.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
We need to accommodate for C23 being very strict about the `const`-ness of the
return value of the `strchr()` function.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from mjcheetham April 28, 2026 12:30
@dscho dscho self-assigned this Apr 28, 2026
@dscho dscho merged commit 2bb9f4f into vfs-2.54.0 Apr 28, 2026
267 of 269 checks passed
@dscho dscho deleted the c23-const-fixes branch April 28, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants