From 7c766bf44d652f4f4ffad199c3fc556f82195d1f Mon Sep 17 00:00:00 2001 From: wens Date: Thu, 10 Apr 2008 04:17:08 +0000 Subject: Change tobind/toconnect interface. **OUTTACACHE is now UTMPD** git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4121 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/utmpd/authserver.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'daemon/utmpd/authserver.c') 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; } -- cgit v1.2.3