1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-23 17:34:00 +03:00

sd-bus: change "int" → "signed int" on bitfield

Apparently by the C standard "int" bitfields can have any signedness
(unlike non-bitfield declarations which are "signed" if the signedness
is not specified).

Let's fix the LGTM warning about this hence and be explicit that we mean
"signed" here.
This commit is contained in:
Lennart Poettering 2019-03-28 09:26:50 +01:00
parent 48da47eeca
commit b8a736d7a0

View File

@ -211,7 +211,7 @@ struct sd_bus {
bool connected_signal:1;
bool close_on_exit:1;
int use_memfd:2;
signed int use_memfd:2;
void *rbuffer;
size_t rbuffer_size;