if ( inetdflag || !tirpcflag) { for (i = 1; i < argc; i++) { if (streq(argv[i], "-s")) { if(!check_nettype( argv[i + 1], valid_i_nettypes )) return 0; write_inetd_register(argv[i + 1]); i++; } } } else { for (i = 1; i < argc; i++) if (streq(argv[i], "-s")) { if(!check_nettype( argv[i + 1], valid_ti_nettypes )) return 0; write_nettype_register(argv[i + 1]); i++; } else if (streq(argv[i], "-n")) { write_netid_register(argv[i + 1]); i++; }
if (inetdflag || !tirpcflag) { for (i = 1; i < argc; i++) { if (streq (argv[i], "-s")) { if (!check_nettype (argv[i + 1], valid_i_nettypes)) return 0; write_inetd_register (argv[i + 1]); i++; }
static int do_registers(int argc, const char *argv[]){	int i;	if ( inetdflag || !tirpcflag) {		for (i = 1; i < argc; i++) {			if (streq(argv[i], "-s")) {			        if(!check_nettype( argv[i + 1], valid_i_nettypes ))				  return 0;				write_inetd_register(argv[i + 1]);				i++;			}		}	} else {		for (i = 1; i < argc; i++)		        if (streq(argv[i], "-s")) {			        if(!check_nettype( argv[i + 1], valid_ti_nettypes ))				  return 0;				write_nettype_register(argv[i + 1]);				i++;			} else if (streq(argv[i], "-n")) {				write_netid_register(argv[i + 1]);				i++;			}	}	return 1;}