stun: Fix a use of a function with an aggregate return value
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 17 Dec 2013 10:06:10 +0000 (10:06 +0000)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 18 Dec 2013 22:50:58 +0000 (17:50 -0500)
commit3e29fec4a959f2999a0f5a91561f5e798cd9bba2
tree434cb8ee5c915d315ec5d4fc01ea92c246c66f3e
parent869093b34758646d915ef06a2473aa0b2c7432d1
stun: Fix a use of a function with an aggregate return value

div() has an aggregate return, which GCC doesn’t like, although this
seems like a pretty pointless warning because div_t is the same size as
a pointer on 64-bit platforms (probably) and hardly going to cause
performance problems by passing it by value.

Anyway, it seems easier to simplify the code by using explicit / and %
operators inline, than it does to add pragmas and shut the warning up.
stun/stunmessage.c
stun/usages/timer.c