]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Portably sscanf tv_usec 58/3358/2
authorDavid M. Lee <dlee@respoke.io>
Wed, 27 Jul 2016 15:33:23 +0000 (10:33 -0500)
committerDavid M. Lee <dlee@digium.com>
Wed, 27 Jul 2016 18:09:01 +0000 (13:09 -0500)
commitfeb1a434122a3cd3cbe4a6e75a4bd76a677bdb0d
tree56e04edc332a10b989f28e47f0721224959a3362
parent49461f37b75aa27275d1c4811007e2a7f94ac002
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