pgrep: Replace ints with longs in strict_atol().
atol() means long, and value points to a long.
This commit is contained in:
parent
4ea5b22d62
commit
c1dbd41d2b
4
pgrep.c
4
pgrep.c
@ -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. */
|
* contains a plain number, FALSE if there are any non-digits. */
|
||||||
static int strict_atol (const char *restrict str, long *restrict value)
|
static int strict_atol (const char *restrict str, long *restrict value)
|
||||||
{
|
{
|
||||||
int res = 0;
|
long res = 0;
|
||||||
int sign = 1;
|
long sign = 1;
|
||||||
|
|
||||||
if (*str == '+')
|
if (*str == '+')
|
||||||
++str;
|
++str;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user