git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Switch from sscanf() to ovs_scan() throughout the tree.
[sliver-openvswitch.git]
/
lib
/
vlandev.c
diff --git
a/lib/vlandev.c
b/lib/vlandev.c
index
6531bf0
..
b793f77
100644
(file)
--- a/
lib/vlandev.c
+++ b/
lib/vlandev.c
@@
-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);
}
}