summaryrefslogtreecommitdiffstats
path: root/term-utils/Makemodule.am
diff options
context:
space:
mode:
authorSami Kerola2014-05-17 20:21:34 +0200
committerSami Kerola2014-05-19 23:45:36 +0200
commit35b578a02a8e22ce998be615f3c6dfe45c0a8b34 (patch)
treed12d4868d6c18a49bf3c9fceaef173de87f5010e /term-utils/Makemodule.am
parentsetterm: recommend long options with double hyphen (diff)
downloadkernel-qcow2-util-linux-35b578a02a8e22ce998be615f3c6dfe45c0a8b34.tar.gz
kernel-qcow2-util-linux-35b578a02a8e22ce998be615f3c6dfe45c0a8b34.tar.xz
kernel-qcow2-util-linux-35b578a02a8e22ce998be615f3c6dfe45c0a8b34.zip
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>
Diffstat (limited to 'term-utils/Makemodule.am')
-rw-r--r--term-utils/Makemodule.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/term-utils/Makemodule.am b/term-utils/Makemodule.am
index e53471f23..39fddc9a0 100644
--- a/term-utils/Makemodule.am
+++ b/term-utils/Makemodule.am
@@ -29,7 +29,7 @@ usrbin_exec_PROGRAMS += setterm
dist_man_MANS += term-utils/setterm.1
setterm_SOURCES = term-utils/setterm.c
setterm_CFLAGS = $(AM_CFLAGS)
-setterm_LDADD = $(LDADD)
+setterm_LDADD = $(LDADD) libcommon.la
if HAVE_TINFO
setterm_LDADD += $(TINFO_LIBS)
setterm_CFLAGS += $(TINFO_CFLAGS)