diff options
Diffstat (limited to 'daemon/utmpd/authserver.c')
-rw-r--r-- | daemon/utmpd/authserver.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/daemon/utmpd/authserver.c b/daemon/utmpd/authserver.c index 5fbba03a..ce728fa9 100644 --- a/daemon/utmpd/authserver.c +++ b/daemon/utmpd/authserver.c @@ -206,21 +206,18 @@ void connection_accept(int fd, short event, void *arg) int main(int argc, char *argv[]) { - int ch, port = 5121, sfd; - char *iface_ip = NULL; + int ch, sfd; + char *iface_ip = ":5121"; Signal(SIGPIPE, SIG_IGN); - while( (ch = getopt(argc, argv, "p:i:h")) != -1 ) + while( (ch = getopt(argc, argv, "i:h")) != -1 ) switch( ch ){ - case 'p': - port = atoi(optarg); - break; case 'i': iface_ip = optarg; break; case 'h': default: - fprintf(stderr, "usage: authserver [-i interface_ip] [-p port]\n"); + fprintf(stderr, "usage: authserver [-i [interface_ip]:port]\n"); return 1; } |