2
0
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:
Ben Pfaff
2013-11-09 15:44:23 -08:00
parent ed2232fc77
commit c2c28dfd68
13 changed files with 300 additions and 390 deletions

View File

@@ -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);
}
}