]> git.ipfire.org Git - thirdparty/iproute2.git/commit
utils: Fix get_s64() function
authorKurt Kanzenbach <kurt@linutronix.de>
Thu, 4 Jul 2019 12:24:27 +0000 (14:24 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 29 Jul 2019 15:44:20 +0000 (08:44 -0700)
commitc875433b145e33645798ecfe4d99bcb28c80d1e9
tree6f218a6ee3104de7dee2125ead981b02cce7d164
parentab45d91d6af402d54f6d1f982986c48b93ca34f0
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>
lib/utils.c