Skip to content

Commit 2afe8d1

Browse files
authored
Common: fixes discarded-qualifiers warnings (#2181)
1 parent f31d3b8 commit 2afe8d1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/common/impl/FFstrbuf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const char* ffStrbufAppendSUntilC(FFstrbuf* strbuf, const char* value, char unti
183183
if(value == NULL)
184184
return NULL;
185185

186-
char* end = strchr(value, until);
186+
const char* end = strchr(value, until);
187187
if(end == NULL)
188188
ffStrbufAppendS(strbuf, value);
189189
else

src/common/impl/io_unix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static void createSubfolders(const char* fileName)
2323
{
2424
FF_STRBUF_AUTO_DESTROY path = ffStrbufCreate();
2525

26-
char *token = NULL;
26+
const char *token = NULL;
2727
while((token = strchr(fileName, '/')) != NULL)
2828
{
2929
ffStrbufAppendNS(&path, (uint32_t)(token - fileName + 1), fileName);

0 commit comments

Comments
 (0)