summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-11-01 12:24:53 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-11-01 12:24:53 +0800
commit9e011ec7123c4d2ac79e5fc34e9277a546de95d1 (patch)
tree64d43abadcee5688a6072ae32f5c25bac45f9b03 /daemon
parentef3ae89e6046453253984d82af845ddc9e84fbc1 (diff)
downloadpttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar.gz
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar.bz2
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar.lz
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar.xz
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.tar.zst
pttbbs-9e011ec7123c4d2ac79e5fc34e9277a546de95d1.zip
Fix Makefile and bind interface
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4414 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'daemon')
-rw-r--r--daemon/utmpd/Makefile2
-rw-r--r--daemon/utmpd/authserver.c2
-rw-r--r--daemon/utmpd/utmpserver2.c2
-rw-r--r--daemon/utmpd/utmpserver3.c2
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();