]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasic.c: Fix printf format type mismatches with arguments.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 19 Dec 2018 19:02:35 +0000 (13:02 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 2 Jan 2019 17:10:58 +0000 (12:10 -0500)
commitf19607870526952d27e6a806e35535e00c0f5f2a
tree3303a1da9dca10ced32937322d98ba745817e7fc
parent4ff64bfc2ca6aba59eb098bbfe4fc8b1dea31ce2
stasic.c: Fix printf format type mismatches with arguments.

An int64_t is not likely the same size as a long.

* Changed the int64_t values in the statistics structs to longs so casting
is not necessary when generating the formatted CLI output.  The offending
members did not need to be int64_t anyway as they were only set by an int
type variable which was already truncating bits.

* Reordered the statistics structs to reduce potential padding bytes.

Change-Id: Ic090a070e9dc4ca650ebdb9c01ed50a581289962
main/stasis.c