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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux