]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
flock: add error message to translations
authorSami Kerola <kerolasa@iki.fi>
Sun, 28 Sep 2014 19:51:38 +0000 (20:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 10:33:18 +0000 (12:33 +0200)
And remove type casting.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/flock.c

index dabacb85c7684010749158835e5cd0f89b1706bf..62c6f7c7cef92a361dbb79d5cbfd0a0632fc3dfb 100644 (file)
@@ -218,7 +218,7 @@ int main(int argc, char *argv[])
 
        } else if (optind < argc) {
                /* Use provided file descriptor */
-               fd = (int)strtol_or_err(argv[optind], "bad number");
+               fd = strtos32_or_err(argv[optind], _("bad file descriptor"));
        } else {
                /* Bad options */
                errx(EX_USAGE, _("requires file descriptor, file or directory"));