]> git.ipfire.org Git - thirdparty/util-linux.git/commit
setterm: use string utils to numeric parsing
authorSami Kerola <kerolasa@iki.fi>
Sat, 17 May 2014 18:21:34 +0000 (19:21 +0100)
committerSami Kerola <kerolasa@iki.fi>
Mon, 19 May 2014 21:45:36 +0000 (22:45 +0100)
commit35b578a02a8e22ce998be615f3c6dfe45c0a8b34
treed12d4868d6c18a49bf3c9fceaef173de87f5010e
parentfb27f91cac9702ad1858d782dd840d5868547423
setterm: use string utils to numeric parsing

Check the input numbers are numbers, which makes also the code shorter,
and user experience better as half invalid imputs will error.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/Makemodule.am
term-utils/setterm.c