summary refs log tree commit diff
path: root/sunrpc/rpc_sample.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/rpc_sample.c')
-rw-r--r--sunrpc/rpc_sample.c10
1 files changed, 6 insertions, 4 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");
 	}