The `file_path` of `strchr(file_path, '/')` is a `const char *`. In this
case the `strchr()` in debian experimental returns a `const char *`,
leading to this error message:
```
mcp251xfd/mcp251xfd-regmap.c:75:13: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
75 | tmp = strchr(file_path, '/');
| ^
```
Fix the error by using the return value from `strchr()` directly in the
`if()`.
Link: https://github.com/linux-can/can-utils/actions/runs/22649777324/job/65679726209?pr=619
|
||
|---|---|---|
| .. | ||
| data | ||
| 99-devcoredump.rules | ||
| devcoredump | ||
| mcp251xfd-dev-coredump.c | ||
| mcp251xfd-dump-userspace.h | ||
| mcp251xfd-dump.c | ||
| mcp251xfd-dump.h | ||
| mcp251xfd-gen-testdata.sh | ||
| mcp251xfd-main.c | ||
| mcp251xfd-regmap.c | ||
| mcp251xfd.h | ||