]> 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:29 +0000 (11:10 -0600)
commitb26ec935ec01d554129289f70ace46cf699ce0ee
treec0a82a5ec239d72a7b1aa36a911077947756c5b8
parent7f2a953691b05a60d131d4d20a0eb6aea3546a5f
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