Re: [PATCH 03/17] setterm: use string utils to numeric parsing

Karel Zak
2014-05-19T09:24:32Z

On Sun, May 18, 2014 at 03:05:27PM +0100, Sami Kerola wrote:
> +static int strtoint_or_err(const char *str)
> +{
> + int64_t num = strtos64_or_err(str, _("argument error"));
> +
> + if (num < INT_MIN || INT_MAX < num)
> + errx(EXIT_FAILURE, _("argument error: %s"), str);
> + return num;
> +}

Why not strtos32_or_err() from lib/strutils.c ?

Karel

--
Karel Zak <kzak@redhat.com>