Common: fixes discarded-qualifiers warnings (#2181)

This commit is contained in:
Dark Knightz
2026-02-13 16:05:07 +06:00
committed by GitHub
parent f31d3b8b21
commit 2afe8d11d1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);