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

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