diff options
Diffstat (limited to 'sunrpc/rpc_svcout.c')
-rw-r--r-- | sunrpc/rpc_svcout.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/sunrpc/rpc_svcout.c b/sunrpc/rpc_svcout.c index 9b5f1dd0f5..2869d3d844 100644 --- a/sunrpc/rpc_svcout.c +++ b/sunrpc/rpc_svcout.c @@ -602,12 +602,14 @@ write_program (const definition * def, const char *storage) f_print (fout, "\t}\n"); if (!mtflag) - if (Cflag) - f_print (fout, "\t%s = (*%s)((char *)&%s, %s);\n", - RESULT, ROUTINE, ARG, RQSTP); - else - f_print (fout, "\t%s = (*%s)(&%s, %s);\n", - RESULT, ROUTINE, ARG, RQSTP); + { + if (Cflag) + f_print (fout, "\t%s = (*%s)((char *)&%s, %s);\n", + RESULT, ROUTINE, ARG, RQSTP); + else + f_print (fout, "\t%s = (*%s)(&%s, %s);\n", + RESULT, ROUTINE, ARG, RQSTP); + } else if (Cflag) f_print(fout, "\t%s = (bool_t) (*%s)((char *)&%s, (void *)&%s, %s);\n", |