1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

bus: Fix read_word_le() function

This commit is contained in:
Lukasz Skalski 2014-01-17 18:11:07 +01:00 committed by Lennart Poettering
parent 47c94a96df
commit 1ffee377ee

View File

@ -1935,7 +1935,7 @@ static size_t read_word_le(void *p, size_t sz) {
return le16toh(x.u16);
else if (sz == 4)
return le32toh(x.u32);
else if (sz == 4)
else if (sz == 8)
return le64toh(x.u64);
assert_not_reached("unknown word width");