]> git.ipfire.org Git - thirdparty/kmod.git/commit
util: Use const variable type in mkdir_parents
authorRudi Heitbaum <rudi@heitbaum.com>
Sun, 8 Feb 2026 14:49:49 +0000 (01:49 +1100)
committerLucas De Marchi <demarchi@kernel.org>
Mon, 9 Feb 2026 15:57:47 +0000 (09:57 -0600)
commit6188542cd63c12018e1f74bdf686457982509cb3
treea5a6f2a5adc4235f2aeddac94fdff2a98a8fcbcd
parent02cae7715eded4d0b4ea2f539670838f013ff849
util: Use const variable type in mkdir_parents

For ISO C23, the function strchr that return pointers into their input
arrays now have definitions as macros that return a pointer to a
const-qualified type when the in put argument is a pointer to a
const-qualified type.

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/pull/422
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
shared/util.c