From: David Howells Date: Mon, 29 Jun 2020 08:59:27 +0000 (+0100) Subject: xg: Fix struct afsUUID X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c11d9707dc3ae30213aaea74457787e359aa143a;p=users%2Fdhowells%2Fkafs-utils.git xg: Fix struct afsUUID Fix struct afsUUID so that the single byte elements are signed so that they get sign-extended when encoded to 32-bit values. Signed-off-by: David Howells --- diff --git a/rpc-api/afsuuid.h b/rpc-api/afsuuid.h index c5ce7df..7c55d74 100644 --- a/rpc-api/afsuuid.h +++ b/rpc-api/afsuuid.h @@ -35,7 +35,7 @@ struct afsUUID { uint32_t time_low; uint16_t time_mid; uint16_t time_hi_and_version; - uint8_t clock_seq_hi_and_reserved; - uint8_t clock_seq_low; - uint8_t node[6]; + int8_t clock_seq_hi_and_reserved; + int8_t clock_seq_low; + int8_t node[6]; };