wmnet: simplify updateStats_dev() a bit
commit49944a01ae6802367feb65df02f910e38b61dd59
authorCarlos R. Mafra <crmafra@gmail.com>
Sun, 11 Jan 2015 21:04:02 +0000 (11 21:04 +0000)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 11 Jan 2015 21:04:02 +0000 (11 21:04 +0000)
treeb52b8a10c2f79bb450a86583d1d85ac24bfd4849
parentcd4947f139309f758130ea27d673ce7742d6486a
wmnet: simplify updateStats_dev() a bit

There is no need to have a variable holding the interface name and
doing the exercise of stripping the trailing colon. It is enough
to just compare the line to check whether it contains the device
name. And only if it does we sscanf() its contents.
wmnet/drivers.c