[systemd-devel] [PATCH] bus: Fix read_word_le() function
Lennart Poettering
lennart at poettering.net
Fri Jan 17 09:35:33 PST 2014
On Fri, 17.01.14 18:11, Lukasz Skalski (l.skalski at partner.samsung.com) wrote:
Applied!
Thanks!
> ---
> src/libsystemd/bus-message.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libsystemd/bus-message.c b/src/libsystemd/bus-message.c
> index 0c8604c..1a2039b 100644
> --- a/src/libsystemd/bus-message.c
> +++ b/src/libsystemd/bus-message.c
> @@ -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");
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list