OSDN Git Service

afs: Fix the afs_uuid struct to make the char-sized fields signed
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:27:49 +0000 (15:27 +0000)
committerDavid Howells <dhowells@redhat.com>
Mon, 13 Nov 2017 15:38:18 +0000 (15:38 +0000)
commit03dc2cfca536df89f4b1747caad9324c9be482fa
tree7bb0cedf49ccd5f056edc2950ece6428413f9581
parentf4b3526d83c40dd8bf5948b9d7a1b2c340f0dcc8
afs: Fix the afs_uuid struct to make the char-sized fields signed

In AFS's encoding of a UUID, the eight 'char' fields are all signed, so
represent them with __s8 rather than __u8.  This makes the compiler
sign-extend them correctly when XDR-encoding them.

Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/afs.h