Skip to content

Commit

Permalink
Merge pull request #519 from kxxt/fix-riscv-compile
Browse files Browse the repository at this point in the history
Change rpc_pdu.zdr_decode_buf to void*
  • Loading branch information
sahlberg authored Feb 4, 2025
2 parents ad4d9b6 + 2849838 commit d1c7f77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/libnfs-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ struct rpc_pdu {

/* function to decode the zdr reply data and buffer to decode into */
zdrproc_t zdr_decode_fn;
caddr_t zdr_decode_buf;
void *zdr_decode_buf;
uint32_t zdr_decode_bufsize;

uint32_t discard_after_sending:1;
Expand Down
2 changes: 1 addition & 1 deletion lib/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ rpc_read_from_socket(struct rpc_context *rpc)
* If the READ failed, bail out here as there is no
* data.
*/
const READ3res *res = (READ3res *)(void *) rpc->pdu->zdr_decode_buf;
const READ3res *res = (READ3res *) rpc->pdu->zdr_decode_buf;
if (res->status != NFS3_OK) {
goto payload_finished;
}
Expand Down

0 comments on commit d1c7f77

Please sign in to comment.