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

index ee725b58864dfa7d84b701bdbdc1d47a9394acb6..7750ad9577d48efcfb7bab5a4a4daa768104aa3c 100644 (file)
@@ -485,7 +485,7 @@ int main(int argc, char **argv)
        while ((c = getopt_long(argc, argv, "ehpt:V", longopts, NULL)) != -1) {
                switch(c) {
                case 't':
-                       timeout = strtoul_or_err(optarg, _("failed to parse timeout"));
+                       timeout = strtou32_or_err(optarg, _("invalid timeout argument"));
                        break;
                case 'p':
                        profile = 1;