mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-14 13:33:50 +08:00
f4b86f752d
The stp state parsing was putting result in an __u8 which would mean that check for invalid string was never happening. Caught by enabling -Wextra: CC mst.o mst.c: In function ‘mst_set’: mst.c:217:27: warning: comparison is always false due to limited range of data type [-Wtype-limits] 217 | if (state == -1) { Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> |
||
---|---|---|
.. | ||
.gitignore | ||
br_common.h | ||
bridge.c | ||
fdb.c | ||
link.c | ||
Makefile | ||
mdb.c | ||
monitor.c | ||
mst.c | ||
vlan.c | ||
vni.c |