]> www.infradead.org Git - users/dhowells/kafs-utils.git/commitdiff
xg: Fix struct afsUUID
authorDavid Howells <dhowells@redhat.com>
Mon, 29 Jun 2020 08:59:27 +0000 (09:59 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 10 Jul 2020 20:24:57 +0000 (21:24 +0100)
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 <dhowells@redhat.com>
rpc-api/afsuuid.h

index c5ce7dfccb9d6aae82dc45275732773d61f700cc..7c55d7479e275e09462a9df32dd80197909acce4 100644 (file)
@@ -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];
 };