Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
SVN-Revision: 46230
val.value.i = atoi(str);
break;
case SWITCH_TYPE_STRING:
val.value.i = atoi(str);
break;
case SWITCH_TYPE_STRING:
+ val.value.s = (char *)str;
break;
case SWITCH_TYPE_PORTS:
ports = alloca(sizeof(struct switch_port) * dev->ports);
break;
case SWITCH_TYPE_PORTS:
ports = alloca(sizeof(struct switch_port) * dev->ports);
int err;
int port_vlan;
union {
int err;
int port_vlan;
union {
int i;
struct switch_port *ports;
} value;
int i;
struct switch_port *ports;
} value;