]> git.ipfire.org Git - thirdparty/util-linux.git/commit - sys-utils/dmesg.c
dmesg: use strtol_or_err instead of atoi
authorDavidlohr Bueso <dave@gnu.org>
Thu, 3 Feb 2011 20:41:56 +0000 (17:41 -0300)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 14:40:48 +0000 (15:40 +0100)
commit15673c1598e8eb138b569f9e86421d1b60f76c23
treea8bbb687d1390abb4ff2dec7a155bb7e84d0e17b
parent39561c706a2417ab465275cef0f94d63493d1604
dmesg: use strtol_or_err instead of atoi

We shouldn't be accepting things like 'dmesg -n 2crapinput'
This patch also changes the exit's value to use EXIT_* constants.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
sys-utils/Makefile.am
sys-utils/dmesg.c