fbset: fix mode matching code: original code may trigger false positive.
authorDenis Vlasenko <vda.linux@googlemail.com>
Sun, 24 Aug 2008 16:25:40 +0000 (16:25 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sun, 24 Aug 2008 16:25:40 +0000 (16:25 -0000)
commitb66d16a2e67356270e61617245714e34db075663
treefe736194d216d48d35c5bfc0cf9001aeaee3feea
parent577071558802573119ad5e0695dc6263d81a06fb
fbset: fix mode matching code: original code may trigger false positive.
 E.g. fbset -n '16bit'
 succeeded at 'mode "640x480 16bit"' and that is wrong.
 Also parser is rewritten. By Vladimir.

function                                             old     new   delta
static.syncs                                           -      20     +20
g_options                                              4       -      -4
g_cmdoptions                                         432     385     -47
fbset_main                                          1842    1642    -200
util-linux/fbset.c