remove NO_INETD by shuffling code around

This commit is contained in:
Love Hornquist Astrand
2009-12-25 06:37:57 +01:00
parent 02e980612e
commit b914fd57c5
4 changed files with 14 additions and 15 deletions

View File

@@ -221,7 +221,7 @@ wait_for_connection(krb5_context context,
int
start_server(krb5_context context)
start_server(krb5_context context, const char *port_str)
{
int e;
struct kadm_port *p;
@@ -230,6 +230,11 @@ start_server(krb5_context context)
unsigned int num_socks = 0;
int i;
if (port_str == NULL)
port_str = "+";
parse_ports(context, port_str);
for(p = kadm_ports; p; p = p->next) {
struct addrinfo hints, *ai, *ap;
char portstr[32];