fixing compile warnings in nfs41_xdr.c
This commit is contained in:
parent
b6d6767341
commit
4355e06153
1 changed files with 2 additions and 2 deletions
|
|
@ -1671,13 +1671,13 @@ static bool_t decode_file_attrs(
|
||||||
}
|
}
|
||||||
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER) {
|
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER) {
|
||||||
unsigned char *ptr = &info->owner[0];
|
unsigned char *ptr = &info->owner[0];
|
||||||
if (!xdr_bytes(xdr, &ptr, &info->owner_len,
|
if (!xdr_bytes(xdr, &(char *)ptr, &info->owner_len,
|
||||||
NFS4_OPAQUE_LIMIT))
|
NFS4_OPAQUE_LIMIT))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) {
|
if (attrs->attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) {
|
||||||
unsigned char *ptr = &info->owner_group[0];
|
unsigned char *ptr = &info->owner_group[0];
|
||||||
if (!xdr_bytes(xdr, &ptr, &info->owner_group_len,
|
if (!xdr_bytes(xdr, &(char *)ptr, &info->owner_group_len,
|
||||||
NFS4_OPAQUE_LIMIT))
|
NFS4_OPAQUE_LIMIT))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue