if(!streq(proc->res_type, "void")) f_print(fout, "\treturn &result;\n}\n"); else  f_print(fout, "\treturn (void *) &result;\n}\n");
{ if (!streq(proc->res_type, "void")) f_print(fout, "\treturn &result;\n}\n"); else  f_print(fout, "\treturn (void *) &result;\n}\n"); }
write_sample_server (definition * def){  version_list *vp;  proc_list *proc;  for (vp = def->def.pr.versions; vp != NULL; vp = vp->next)    {      for (proc = vp->procs; proc != NULL; proc = proc->next)	{	  f_print (fout, "\n");	  if (!mtflag)	    {	      return_type (proc);	      f_print (fout, "*\n");	    }	  else	    f_print (fout, "bool_t\n");	  if (Cflag || mtflag)	    pvname_svc (proc->proc_name, vp->vers_num);	  else	    pvname(proc->proc_name, vp->vers_num);	  printarglist(proc, "result", RQSTP, "struct svc_req *");	  f_print(fout, "{\n");	  if (!mtflag)	    {	      f_print(fout, "\tstatic ");	      if(!streq(proc->res_type, "void"))		return_type(proc);	      else		f_print(fout, "char *");                                /* cannot have void type */	      /* f_print(fout, " result;\n", proc->res_type); */	      f_print(fout, " result;\n");	    }	  else	    f_print(fout, "\tbool_t retval;\n");	  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");	  else	    f_print(fout, "\treturn retval;\n}\n");	}      /* put in sample freeing routine */      if (mtflag)	{	  f_print(fout, "\nint\n");	  pvname(def->def_name, vp->vers_num);	  if (Cflag)	    f_print(fout,"_freeresult (SVCXPRT *transp, xdrproc_t xdr_result, caddr_t result)\n");	  else	    {	      f_print(fout,"_freeresult (transp, xdr_result, result)\n");	      f_print(fout,"\tSVCXPRT *transp;\n");	      f_print(fout,"\txdrproc_t xdr_result;\n");	      f_print(fout,"\tcaddr_t result;\n");	    }	  f_print(fout, "{\n");	  f_print(fout, "\txdr_free (xdr_result, result);\n");	  f_print(fout,		  "\n\t/*\n\t * Insert additional freeing code here, if needed\n\t */\n");	  f_print(fout, "\n\treturn 1;\n}\n");	}    }}