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