summary refs log tree commit diff
path: root/sunrpc
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/rpc_sample.c10
-rw-r--r--sunrpc/rpc_svcout.c14
2 files changed, 14 insertions, 10 deletions
diff --git a/sunrpc/rpc_sample.c b/sunrpc/rpc_sample.c
index 959f0a1780..79214a6a83 100644
--- a/sunrpc/rpc_sample.c
+++ b/sunrpc/rpc_sample.c
@@ -252,10 +252,12 @@ write_sample_server (definition * def)
 	  fprintf (fout, "\n\t/*\n\t * insert server code here\n\t */\n\n");
 
 	  if (!mtflag)
-	    if(!streq(proc->res_type, "void"))
-	      f_print(fout, "\treturn &result;\n}\n");
-	    else /* cast back to void * */
-	      f_print(fout, "\treturn (void *) &result;\n}\n");
+	    {
+	      if (!streq(proc->res_type, "void"))
+		f_print(fout, "\treturn &result;\n}\n");
+	      else /* cast back to void * */
+		f_print(fout, "\treturn (void *) &result;\n}\n");
+	    }
 	  else
 	    f_print(fout, "\treturn retval;\n}\n");
 	}
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",