chiark / gitweb /
bus: avoid 'bool' storage when retrieving 'b' from the message
authorKay Sievers <kay@vrfy.org>
Tue, 22 Oct 2013 01:27:38 +0000 (03:27 +0200)
committerKay Sievers <kay@vrfy.org>
Tue, 22 Oct 2013 01:35:45 +0000 (03:35 +0200)
commit9bcbce4201afada1c0ad8ada0cbfbbf58a52a6a7
tree6711cfcec9e2d25dae74a3d04e9093e2cdfdcec0
parent40976028c6f24b9934e6c797ef6f5e123ac520d5
bus: avoid 'bool' storage when retrieving 'b' from the message

Just use an unsigned int as a bool type to avoid issues in the public
message reading API; sizeof(bool) == 1, but the code copies 4 bytes at
the pointers destination.
src/hostname/hostnamed.c
src/libsystemd-bus/bus-message.c
src/libsystemd-bus/bus-util.c
src/timedate/timedated.c