From: Karel Zak Date: Thu, 27 Nov 2025 15:35:56 +0000 (+0100) Subject: lsfd: fix const qualifier warning in new_counter_spec X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=014d2779afb4118d7117442eeed562e2c7b7594f;p=thirdparty%2Futil-linux.git 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 --- diff --git a/lsfd-cmd/lsfd.c b/lsfd-cmd/lsfd.c index b7d996f6e..26d0bd54a 100644 --- a/lsfd-cmd/lsfd.c +++ b/lsfd-cmd/lsfd.c @@ -2320,7 +2320,7 @@ static struct libscols_filter *new_filter(const char *expr, bool debug, struct l return f; } -static struct counter_spec *new_counter_spec(const char *spec_str) +static struct counter_spec *new_counter_spec(char *spec_str) { char *sep; struct counter_spec *spec;