0003-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 7c9a7d7cfe
commit 9cfc1b8c1f

View File

@ -207,8 +207,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;