diff options
author | Karel Zak | 2012-05-15 17:46:05 +0200 |
---|---|---|
committer | Karel Zak | 2012-05-15 17:46:05 +0200 |
commit | b43d3a3a2ccfd6993ef030c27db1de0fc201ff55 (patch) | |
tree | 48951b749e30ec57c2a85897b972b5de615e64b8 /term-utils | |
parent | sys-utils: cleanup strtoxx_or_err() (diff) | |
download | kernel-qcow2-util-linux-b43d3a3a2ccfd6993ef030c27db1de0fc201ff55.tar.gz kernel-qcow2-util-linux-b43d3a3a2ccfd6993ef030c27db1de0fc201ff55.tar.xz kernel-qcow2-util-linux-b43d3a3a2ccfd6993ef030c27db1de0fc201ff55.zip |
term-utils: cleanup strtoxx_or_err()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'term-utils')
-rw-r--r-- | term-utils/wall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c index f302d454f..ec9e93236 100644 --- a/term-utils/wall.c +++ b/term-utils/wall.c @@ -110,7 +110,7 @@ main(int argc, char **argv) { int print_banner = TRUE; char *mbuf; size_t mbufsize; - long timeout = WRITE_TIME_OUT; + unsigned timeout = WRITE_TIME_OUT; setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); @@ -134,7 +134,7 @@ main(int argc, char **argv) { warnx(_("--nobanner is available only for root")); break; case 't': - timeout = strtoll_or_err(optarg, _("invalid timeout argument")); + timeout = strtou32_or_err(optarg, _("invalid timeout argument")); if (timeout < 1) errx(EXIT_FAILURE, _("invalid timeout argument: %s"), optarg); break; |