0003-pgrep: Replace ints with longs in strict_atol().
atol() means long, and value points to a long.
This commit is contained in:
parent
7c9a7d7cfe
commit
9cfc1b8c1f
4
pgrep.c
4
pgrep.c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user