pgrep: Replace ints with longs in strict_atol().

atol() means long, and value points to a long.
This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent 4ea5b22d62
commit c1dbd41d2b

View File

@ -192,8 +192,8 @@ static struct el *split_list (const char *restrict str, int (*convert)(const cha
* contains a plain number, FALSE if there are any non-digits. */
static int strict_atol (const char *restrict str, long *restrict value)
{
int res = 0;
int sign = 1;
long res = 0;
long sign = 1;
if (*str == '+')
++str;