All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Change prognum, versnum, minvers, and maxvers in progping to u_int32_t from u_long
@ 2009-04-22 21:45 Frank Filz
  2009-04-22 21:46 ` Chuck Lever
  2009-04-22 21:56 ` Chuck Lever
  0 siblings, 2 replies; 7+ messages in thread
From: Frank Filz @ 2009-04-22 21:45 UTC (permalink / raw)
  To: NFS List, libtirpc, Steve Dickson; +Cc: Chuck Lever

This fixes a problem where "rpcinfo -T transport host prognum" fails on a PPC64
because CLNT_CONTROL expects the version number to be a 32 bit quantity. u_long
probably works fine on little endian machines, but won't work on big endian
machines.


Signed-off-by: Frank Filz <ffilzlnx@us.ibm.com>
---
 src/rpcinfo.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/rpcinfo.c b/src/rpcinfo.c
index 0170f65..698f4ca 100644
--- a/src/rpcinfo.c
+++ b/src/rpcinfo.c
@@ -1591,7 +1591,7 @@ progping (netid, argc, argv)
   CLIENT *client;
   struct timeval to;
   enum clnt_stat rpc_stat;
-  u_long prognum, versnum, minvers, maxvers;
+  u_int32_t prognum, versnum, minvers, maxvers;
   struct rpc_err rpcerr;
   int failure = 0;
   struct netconfig *nconf;
-- 
1.5.2.2




^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-04-22 22:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-22 21:45 [PATCH] Change prognum, versnum, minvers, and maxvers in progping to u_int32_t from u_long Frank Filz
2009-04-22 21:46 ` Chuck Lever
2009-04-22 22:19   ` Frank Filz
2009-04-22 21:56 ` Chuck Lever
2009-04-22 22:08   ` [Libtirpc-devel] " Chuck Lever
2009-04-22 22:36     ` [PATCH] rpcbind: Change prognum, versnum, minvers, and maxvers in progping to rpcprog_t and rpcvers_t " Frank Filz
2009-04-22 22:37       ` Chuck Lever

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.