From 5e3df1d99df207a65d883f6747d8a616fa4b8f9c Mon Sep 17 00:00:00 2001 From: Chaskiel Grundman Date: Fri, 20 Sep 2013 15:04:13 -0400 Subject: [PATCH] rxgen: Only cast array/pointer/vector types Assuming the correct values are passed to the xdr functions, no casts are required. Don't cast simple/struct/union/typedef values. Do cast array/pointer/vectors, since the relevant xdr wrapper functions expect char *. Change-Id: I375c03899576735668c1a0df0af47377223ae97a Reviewed-on: http://gerrit.openafs.org/10260 Reviewed-by: Daria Brashear Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- src/rxgen/rpc_cout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rxgen/rpc_cout.c b/src/rxgen/rpc_cout.c index d3d7df69f..6e8c38318 100644 --- a/src/rxgen/rpc_cout.c +++ b/src/rxgen/rpc_cout.c @@ -275,7 +275,7 @@ print_ifstat(int indent, char *prefix, char *type, relation rel, char *amax, break; case REL_ALIAS: print_ifopen(indent, type); - print_ifarg_with_cast(1, type, objname); + print_ifarg(objname); break; } print_ifclose(indent); -- 2.39.5