diff options
author | David M. Lee <dlee@digium.com> | 2013-06-17 18:58:56 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-06-17 18:58:56 +0000 |
commit | 4aa47d68930a3ff4e750a6044f51524a76185899 (patch) | |
tree | 6b98b07b6aa1276446ffd81f40683f95756e307d /include | |
parent | 291711f85fcf9eb616959d68155d7483f81dac3f (diff) |
Fix build warnings related to printf/scanf of tv_usec.
The type of tv_usec is suseconds_t. On Linux, this is usually a long int, but
the specification is actually pretty lax on what it might actually be. And,
sadly, there's no printf/scanf width specifier for suseconds_t. So it could
bit an int or a long, but there's not a great way to tell which it is.
This patch fixes scanf by reading into a long temporary variable that's then
stored into the tv_usec. It fixes printf by casting the tv_usec to a long
first.
This patch also adds some missing width specifiers for some debug statements,
which would cause ".000001" to be displayed at ".1".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392076 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions