]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
term-utils: cleanup strtoxx_or_err()
authorKarel Zak <kzak@redhat.com>
Tue, 15 May 2012 15:46:05 +0000 (17:46 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 15 May 2012 15:46:05 +0000 (17:46 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/wall.c

index f302d454f0004e8726e0236623681d1514055f96..ec9e93236d63f0e49fcde19c7d006bb0cc3d6786 100644 (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;