term-utils: cleanup strtoxx_or_err()

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2012-05-15 17:46:05 +02:00
parent 20a3998222
commit b43d3a3a2c
1 changed files with 2 additions and 2 deletions

View File

@ -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;