| Message ID | 1783104055-19005-14-git-send-email-mark.hatle@kernel.crashing.org |
|---|---|
| State | New |
| Headers | show |
| Series | Create new pseudo 1.99.0 version | expand |
diff --git a/pseudo_util.c b/pseudo_util.c index 4c05394..3eaa9e6 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -893,7 +893,7 @@ pseudo_append_elements(char *newpath, char *root, size_t allocated, char **curre while (path < (start + elen) && *path) { size_t this_elen; int leave_this = 0; - char *next = strchr(path, '/'); + const char *next = strchr(path, '/'); if (!next) { next = strchr(path, '\0'); leave_this = leave_last;
Fix compile warning: pseudo_util.c: In function ‘pseudo_append_elements’: pseudo_util.c:896:30: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 896 | char *next = strchr(path, '/'); | ^~~~~~ pseudo_util.c:898:30: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 898 | next = strchr(path, '\0'); | ^ Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org> --- pseudo_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)