]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Portably sscanf tv_usec 56/3356/2
authorDavid M. Lee <dlee@respoke.io>
Wed, 27 Jul 2016 15:33:23 +0000 (10:33 -0500)
committerDavid M. Lee <dlee@respoke.io>
Wed, 27 Jul 2016 17:48:17 +0000 (12:48 -0500)
commit8902a51d59e1d7bff962aa2168da31fbc078a3ed
treed22d2d7a53aa166459ab16d44f218070e0cb8e04
parent159e437e5a3f48d97584e711e3b6163adb9cdff5
Portably sscanf tv_usec

In a timeval, tv_usec is defined as a suseconds_t, which could be
different underlying types on different platforms. Instead of trying to
scanf directly into the timeval, scanf into a long int, then copy that
into the timeval.

Change-Id: I29f22d049d3f7746b6c0cc23fbf4293bdaa5eb95
funcs/func_cdr.c