core/swupdate.c:268:13: warning: assignment discards ‘const’ qualifier from pointer target type
268 | pos = strchr(selector, ',');
| ^
Signed-off-by: Stefano Babic <
stefan...@swupdate.org>
---
core/swupdate.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/swupdate.c b/core/swupdate.c
index 213be587..a7ad57ae 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -265,7 +265,7 @@ static int parse_image_selector(const char *selector, struct swupdate_cfg *sw)
char *pos;
DEBUG("Parsing selector: %s", selector);
- pos = strchr(selector, ',');
+ pos = (char *)strchr(selector, ',');
if (pos == NULL) {
ERROR("Incorrect select option format: %s", selector);
return -EINVAL;
--
2.55.0