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

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