]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: fix const qualifier warning in new_counter_spec
authorKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:35:56 +0000 (16:35 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Nov 2025 15:35:56 +0000 (16:35 +0100)
commit014d2779afb4118d7117442eeed562e2c7b7594f
treea70f6a345bbbda32e3c4926b649d310c60ccc9a2
parent40e6850d2b2ba2492d5f3e75656cb9bcce2806bb
lsfd: fix const qualifier warning in new_counter_spec

Fix const qualifier discarded warning in new_counter_spec().
This warning is reported by gcc 15 which defaults to the C23 standard.

The function modifies the input string by inserting a null terminator
to split it into name and expression parts, so the parameter should
be char * rather than const char *.

Signed-off-by: Karel Zak <kzak@redhat.com>
lsfd-cmd/lsfd.c