mirror of
https://github.com/openvswitch/ovs
synced 2025-10-21 14:49:41 +00:00
Switch from sscanf() to ovs_scan() throughout the tree.
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -221,8 +221,7 @@ vlandev_linux_refresh(void)
|
||||
char vlan_dev[16], real_dev[16];
|
||||
int vid;
|
||||
|
||||
if (sscanf(line, "%15[^ |] | %d | %15s",
|
||||
vlan_dev, &vid, real_dev) == 3) {
|
||||
if (ovs_scan(line, "%15[^ |] | %d | %15s", vlan_dev, &vid, real_dev)) {
|
||||
vlandev_add__(vlan_dev, real_dev, vid);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user