]> git.ipfire.org Git - people/ms/strongswan.git/commit
utils: Fix %T printf hook on big-endian systems
authorTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 14:30:02 +0000 (15:30 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 6 Jan 2014 14:30:02 +0000 (15:30 +0100)
commit13f2d3a2f637fc5277fc0752392f56d1af7a1ccb
treec7ec460213fead0e5aedd3281e7c425402961879
parent0773c7fd71ac6b0e873c94699f9ff45b0eb66489
utils: Fix %T printf hook on big-endian systems

The cast to a bool* cut of the actual value on big-endian systems
if bool was shorter than int because the bool argument to printf gets
promoted to an int.

Fixes #479.
src/libstrongswan/utils/utils.c