Skip to contentSkip to conversation

SUNRPC: temp var should match return type of xdr_skb_read_actor

PATCH In review Chuck Lever 1 participant 1 message Oct 26, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/27 SUNRPC: temp var should match return type of xdr_skb_read_actor

The return type of xdr_skb_read_actor functions is size_t. This fixes a nit I unwittingly overlooked in commit dd456471.

---

 net/sunrpc/socklib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/sunrpc/socklib.c +1 -1
index 97ac45f..a661a3a 100644
@@ -72,7 +72,7 @@ ssize_t xdr_partial_copy_from_skb(struct xdr_buf *xdr, unsigned int base, struct
 	struct page	**ppage = xdr->pages;
 	unsigned int	len, pglen = xdr->page_len;
 	ssize_t		copied = 0;
-	int		ret;
+	size_t		ret;
 
 	len = xdr->head[0].iov_len;
 	if (base < len) {

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs