]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Portably sscanf tv_usec 57/3357/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:08:48 +0000 (13:08 -0500)
commit34087b0d43bdc0edcc0c09e2f553a8942136a21e
treef90c068efeae9f2bcf92223e853b5d574d4f9e56
parentba449e024203f2e90621da9e85ff6066d4a32627
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