cursor: fix discards 'const' qualifier

Fixes:
../cursor/xcursor.c: In function 'xcursor_next_path':
../cursor/xcursor.c:610:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  610 |         char *colon = strchr(path, ':');
      |                       ^~~~~~

Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
This commit is contained in:
Rudi Heitbaum 2026-03-04 08:28:56 +11:00
parent df10ef181e
commit fe4d7620dd

View file

@ -607,7 +607,7 @@ xcursor_build_fullname(const char *dir, const char *subdir, const char *file)
static const char *
xcursor_next_path(const char *path)
{
char *colon = strchr(path, ':');
const char *colon = strchr(path, ':');
if (!colon)
return NULL;