From: Chaskiel Grundman Date: Fri, 20 Sep 2013 19:04:13 +0000 (-0400) Subject: rxgen: Only cast array/pointer/vector types X-Git-Tag: upstream/1.8.0_pre1^2~424 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5e3df1d99df207a65d883f6747d8a616fa4b8f9c;p=packages%2Fo%2Fopenafs.git 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 --- 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);