From 9e011ec7123c4d2ac79e5fc34e9277a546de95d1 Mon Sep 17 00:00:00 2001 From: wens Date: Sat, 1 Nov 2008 04:24:53 +0000 Subject: Fix Makefile and bind interface git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4414 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- daemon/utmpd/Makefile | 2 +- daemon/utmpd/authserver.c | 2 +- daemon/utmpd/utmpserver2.c | 2 +- daemon/utmpd/utmpserver3.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/utmpd/Makefile b/daemon/utmpd/Makefile index 6abe9c7c..e03d8dae 100644 --- a/daemon/utmpd/Makefile +++ b/daemon/utmpd/Makefile @@ -5,7 +5,7 @@ SRCROOT= ../.. PROGRAMS= utmpserver utmpsync utmpserver2 utmpserver3 authserver UTILDIR= $(SRCROOT)/util -UTILOBJ= $(UTILDIR)/util_var.o $(UTILDIR)/util_cache.o $(UTILDIR)/util_passwd.o $(UTILDIR)/util_record.o +UTILOBJ= $(UTILDIR)/util_var.o $(UTILDIR)/util_cache.o $(UTILDIR)/util_passwd.o LDLIBS+=$(SRCROOT)/common/bbs/libcmbbs.a \ $(SRCROOT)/common/sys/libcmsys.a \ diff --git a/daemon/utmpd/authserver.c b/daemon/utmpd/authserver.c index ce728fa9..aa580f94 100644 --- a/daemon/utmpd/authserver.c +++ b/daemon/utmpd/authserver.c @@ -221,7 +221,7 @@ int main(int argc, char *argv[]) return 1; } - if( (sfd = tobind(iface_ip, port)) < 0 ) + if( (sfd = tobind(iface_ip)) < 0 ) return 1; srandom(getpid() + time(NULL)); diff --git a/daemon/utmpd/utmpserver2.c b/daemon/utmpd/utmpserver2.c index aca43245..ce79c0c7 100644 --- a/daemon/utmpd/utmpserver2.c +++ b/daemon/utmpd/utmpserver2.c @@ -213,7 +213,7 @@ int main(int argc, char *argv[]) #ifdef FAKEDATA fp=fopen("utmp.data","rb"); #else - if( (sfd = tobind(iface_ip, port)) < 0 ) + if( (sfd = tobind(iface_ip)) < 0 ) return 1; #endif while(1) { diff --git a/daemon/utmpd/utmpserver3.c b/daemon/utmpd/utmpserver3.c index de112802..83fa6285 100644 --- a/daemon/utmpd/utmpserver3.c +++ b/daemon/utmpd/utmpserver3.c @@ -327,7 +327,7 @@ int main(int argc, char *argv[]) return 1; } - if( (sfd = tobind(iface_ip, port)) < 0 ) + if( (sfd = tobind(iface_ip)) < 0 ) return 1; event_init(); -- cgit v1.2.3