utils: Fix get_s64() function

get_s64() uses internally strtoll() to parse the value out of a given
string. strtoll() returns a long long. However, the intermediate variable is
long only which might be 32 bit on some systems. So, fix it.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Kurt Kanzenbach 2019-07-04 14:24:27 +02:00 committed by Stephen Hemminger
parent ab45d91d6a
commit c875433b14
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ int get_u8(__u8 *val, const char *arg, int base)
int get_s64(__s64 *val, const char *arg, int base)
{
long res;
long long res;
char *ptr;
errno = 0;