flock: add error message to translations

And remove type casting.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2014-09-28 20:51:38 +01:00 committed by Karel Zak
parent 1bcf491a78
commit c5c056e7fe
1 changed files with 1 additions and 1 deletions

View 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"));