mdev: fix a bug where it was not stopping on first matching rule
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 29 Mar 2008 13:10:57 +0000 (13:10 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 29 Mar 2008 13:10:57 +0000 (13:10 -0000)
commit4461564c77260351fe3d82386eebf81085347b34
tree6a7d926942063a825e6582dacbc586e28bbf3886
parent7cb808e1c5d6184dc3846f65344c7879f60de4f3
mdev: fix a bug where it was not stopping on first matching rule
(testsuite entry added). Revamped line parsing while at it.

function                                             old     new   delta
next_field                                             -      36     +36
make_device                                         1104    1022     -82
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/1 up/down: 36/-82)            Total: -46 bytes
testsuite/mdev.tests
util-linux/mdev.c