From b93082da2b96a2751f9d7566ad5ec42415080c4b Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 21 Oct 2013 19:15:11 -0700 Subject: [PATCH] Make xid be a uint32_t and not either unsigned long or unsigned int --- include/libnfs-private.h | 4 ++-- lib/pdu.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/libnfs-private.h b/include/libnfs-private.h index 79ac411..328d79d 100644 --- a/include/libnfs-private.h +++ b/include/libnfs-private.h @@ -68,7 +68,7 @@ struct rpc_context { void *connect_data; struct AUTH *auth; - unsigned long xid; + uint32_t xid; /* buffer used for encoding RPC PDU */ char *encodebuf; @@ -98,7 +98,7 @@ struct rpc_context { struct rpc_pdu { struct rpc_pdu *next; - unsigned long xid; + uint32_t xid; ZDR zdr; uint32_t written; diff --git a/lib/pdu.c b/lib/pdu.c index eca054c..8de51d2 100644 --- a/lib/pdu.c +++ b/lib/pdu.c @@ -230,7 +230,7 @@ int rpc_process_pdu(struct rpc_context *rpc, char *buf, int size) struct rpc_pdu *pdu; ZDR zdr; int pos, recordmarker = 0; - unsigned int xid; + uint32_t xid; char *reasbuf = NULL; assert(rpc->magic == RPC_CONTEXT_MAGIC); -- 2.34.1