From: Lennart Poettering Date: Wed, 28 Apr 2021 12:33:19 +0000 (+0200) Subject: hostnamed: use byte array when we need a byte array X-Git-Tag: v249-rc1~325^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c52e295d68a56822d4e62356e1b10025a8c29306;p=thirdparty%2Fsystemd.git hostnamed: use byte array when we need a byte array it's more corect this way, but shouldn#t change a thing binary-wise --- diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 27d9fecbc1b..20b4f4e61fa 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@ -972,7 +972,7 @@ static int method_get_product_uuid(sd_bus_message *m, void *userdata, sd_bus_err if (r < 0) return r; - r = sd_bus_message_append_array(reply, 'y', &uuid, sizeof(uuid)); + r = sd_bus_message_append_array(reply, 'y', uuid.bytes, sizeof(uuid.bytes)); if (r < 0) return r;