Skip to content
Snippets Groups Projects
Commit d649768a authored by blogic's avatar blogic
Browse files

swconfig: swlib.c: remove const qualifier for val.s since this is supposed to be free'd


Signed-off-by: default avatarAlexandru Ardelean <ardeleanalex@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46230 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent 0711e53e
No related branches found
No related tags found
No related merge requests found
......@@ -363,7 +363,7 @@ int swlib_set_attr_string(struct switch_dev *dev, struct switch_attr *a, int por
val.value.i = atoi(str);
break;
case SWITCH_TYPE_STRING:
val.value.s = str;
val.value.s = (char *)str;
break;
case SWITCH_TYPE_PORTS:
ports = alloca(sizeof(struct switch_port) * dev->ports);
......
......@@ -135,7 +135,7 @@ struct switch_val {
int err;
int port_vlan;
union {
const char *s;
char *s;
int i;
struct switch_port *ports;
} value;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment