(void) sprintf (_errbuf, "cannot create %s service.", transp);
sprintf (_errbuf, "cannot create %s service.", transp);
write_netid_register (const char *transp){  list *l;  definition *def;  version_list *vp;  const char *sp;  char tmpbuf[32];  sp = "";  f_print (fout, "\n");  f_print (fout, "%s\tnconf = getnetconfigent(\"%s\");\n", sp, transp);  f_print (fout, "%s\tif (nconf == NULL) {\n", sp);  (void) sprintf (_errbuf, "cannot find %s netid.", transp);  sprintf (tmpbuf, "%s\t\t", sp);  print_err_message (tmpbuf);  f_print (fout, "%s\t\texit(1);\n", sp);  f_print (fout, "%s\t}\n", sp);  f_print (fout, "%s\t%s = svc_tli_create(RPC_ANYFD, nconf, 0, 0, 0);\n",	   sp, TRANSP /*, transp *//* ?!?... */ );  f_print (fout, "%s\tif (%s == NULL) {\n", sp, TRANSP);  (void) sprintf (_errbuf, "cannot create %s service.", transp);  print_err_message (tmpbuf);  f_print (fout, "%s\t\texit(1);\n", sp);  f_print (fout, "%s\t}\n", sp);  for (l = defined; l != NULL; l = l->next)    {      def = (definition *) l->val;      if (def->def_kind != DEF_PROGRAM)	{	  continue;	}      for (vp = def->def.pr.versions; vp != NULL; vp = vp->next)	{	  f_print (fout,		   "%s\t(void) rpcb_unset(%s, %s, nconf);\n",		   sp, def->def_name, vp->vers_name);	  f_print (fout,		   "%s\tif (!svc_reg(%s, %s, %s, ",		   sp, TRANSP, def->def_name, vp->vers_name);	  pvname (def->def_name, vp->vers_num);	  f_print (fout, ", nconf)) {\n");	  (void) sprintf (_errbuf, "unable to register (%s, %s, %s).",			  def->def_name, vp->vers_name, transp);	  print_err_message (tmpbuf);	  f_print (fout, "%s\t\texit(1);\n", sp);	  f_print (fout, "%s\t}\n", sp);	}    }  f_print (fout, "%s\tfreenetconfigent(nconf);\n", sp);}