From 16f6d55c96a5a686f8ab5353e9d7020e642a30bc Mon Sep 17 00:00:00 2001 From: Faisal Ahmed Moshiur <19180457+fam007e@users.noreply.github.com> Date: Fri, 13 Feb 2026 03:28:38 +0600 Subject: [PATCH] Common: fixes discarded-qualifiers warnings --- src/common/impl/FFstrbuf.c | 2 +- src/common/impl/io_unix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/impl/FFstrbuf.c b/src/common/impl/FFstrbuf.c index 1f59bf1a13..09e79b3551 100644 --- a/src/common/impl/FFstrbuf.c +++ b/src/common/impl/FFstrbuf.c @@ -183,7 +183,7 @@ const char* ffStrbufAppendSUntilC(FFstrbuf* strbuf, const char* value, char unti if(value == NULL) return NULL; - char* end = strchr(value, until); + const char* end = strchr(value, until); if(end == NULL) ffStrbufAppendS(strbuf, value); else diff --git a/src/common/impl/io_unix.c b/src/common/impl/io_unix.c index 63fc81e4d2..31fefe91d0 100644 --- a/src/common/impl/io_unix.c +++ b/src/common/impl/io_unix.c @@ -23,7 +23,7 @@ static void createSubfolders(const char* fileName) { FF_STRBUF_AUTO_DESTROY path = ffStrbufCreate(); - char *token = NULL; + const char *token = NULL; while((token = strchr(fileName, '/')) != NULL) { ffStrbufAppendNS(&path, (uint32_t)(token - fileName + 1), fileName);