Commit 1289b49
committed
slash: fix strchr assignment type for glibc 2.43
Compiling with glibc 2.43 will create warnings if the the string pointer
argument to strchr does not match the assignment type:
warning: assignment discards ‘const’ qualifier from pointer target type
[-Wdiscarded-qualifiers]
Fix two instances where we called strchr with a const char pointer
argument and assigned the return value to a non-const char pointer. The
returned pointers were only read, so the functionality is the same.1 parent bf93fd3 commit 1289b49
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
474 | | - | |
475 | | - | |
| 474 | + | |
476 | 475 | | |
477 | 476 | | |
478 | 477 | | |
| |||
0 commit comments