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:
parent
ab45d91d6a
commit
c875433b14
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue