From c11d9707dc3ae30213aaea74457787e359aa143a Mon Sep 17 00:00:00 2001 From: David Howells Date: Mon, 29 Jun 2020 09:59:27 +0100 Subject: [PATCH] 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 --- rpc-api/afsuuid.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]; }; -- 2.49.0