*name is used by strchr and subsequently modified replacing "=" with '\0'. Remove incorrect and unnecessary const. Passed in argv[] is editable, and is being modified in the function. Fixes: mesh.c: In function 'set_interface_meshparam': mesh.c:327:23: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 327 | value = strchr(name, '='); | ^ Signed-off-by: Rudi Heitbaum --- mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh.c b/mesh.c index 40e5e5e..f116ae7 100644 --- a/mesh.c +++ b/mesh.c @@ -317,7 +317,7 @@ static int set_interface_meshparam(struct nl80211_state *state, } while (argc) { - const char *name; + char *name; char *value; _any any; -- 2.51.0