]> git.ipfire.org Git - thirdparty/iproute2.git/commit
ifstat: fix warning about conditional
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 28 Jun 2023 23:35:25 +0000 (16:35 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 28 Jun 2023 23:35:25 +0000 (16:35 -0700)
commitbbfccc11e1c4399f46921365b36807c3791be536
tree7d826db9c25757ae1b2a8fcb69852f9d85b53b53
parentac6d95a8465e7d41762fa493ec271ac4584aa0af
ifstat: fix warning about conditional

Gcc with warnings enabled complains because the conditional.
  if ((long)(a - b) < 0)
could be construed as never true.  Change to simple comparison.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/ifstat.c