Blame SOURCES/autofs-5.0.7-fix-inconsistent-signed-usage-for-__rpc_ping.patch

304803
autofs-5.0.7 - fix inconsistent signed usage for __rpc_ping()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
There is some incosistent usage of unsigned int variables with the usage
304803
of __rpc_ping().
304803
---
304803
 lib/rpc_subs.c |   12 +++++-------
304803
 1 file changed, 5 insertions(+), 7 deletions(-)
304803
304803
diff --git a/lib/rpc_subs.c b/lib/rpc_subs.c
304803
index 718caf9..f5742e8 100644
304803
--- a/lib/rpc_subs.c
304803
+++ b/lib/rpc_subs.c
304803
@@ -670,13 +670,11 @@ int rpc_ping_proto(struct conn_info *info)
304803
 	return 1;
304803
 }
304803
 
304803
-static unsigned int __rpc_ping(const char *host,
304803
-				unsigned long version,
304803
-				int proto,
304803
-				long seconds, long micros,
304803
-				unsigned int option)
304803
+static int __rpc_ping(const char *host,
304803
+		      unsigned long version, int proto,
304803
+		      long seconds, long micros, unsigned int option)
304803
 {
304803
-	unsigned int status;
304803
+	int status;
304803
 	struct conn_info info;
304803
 	struct pmap parms;
304803
 
304803
@@ -713,7 +711,7 @@ int rpc_ping(const char *host, long seconds, long micros, unsigned int option)
304803
 {
304803
 	unsigned long vers3 = NFS3_VERSION;
304803
 	unsigned long vers2 = NFS2_VERSION;
304803
-	unsigned int status;
304803
+	int status;
304803
 
304803
 	status = __rpc_ping(host, vers2, IPPROTO_UDP, seconds, micros, option);
304803
 	if (status > 0)