summaryrefslogtreecommitdiffstats
path: root/cacheserver
diff options
context:
space:
mode:
authorwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-24 08:08:00 +0800
committerwens <wens@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-24 08:08:00 +0800
commitb9f7936a00b1bac1af0566adf278f1b3fb670e2e (patch)
tree61c3562236e75d20ebfcc8ad5be86e2b8bffca86 /cacheserver
parente0234349d759b2a9f71455283fd3096deb134265 (diff)
downloadpttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar.gz
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar.bz2
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar.lz
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar.xz
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.tar.zst
pttbbs-b9f7936a00b1bac1af0566adf278f1b3fb670e2e.zip
fix compile error
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2672 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'cacheserver')
-rw-r--r--cacheserver/utmpserver.c5
-rw-r--r--cacheserver/utmpsync.c2
2 files changed, 2 insertions, 5 deletions
diff --git a/cacheserver/utmpserver.c b/cacheserver/utmpserver.c
index 94c6c0f1..2fb3f7ab 100644
--- a/cacheserver/utmpserver.c
+++ b/cacheserver/utmpserver.c
@@ -73,7 +73,7 @@ int main(int argc, char **argv)
{
struct sockaddr_in clientaddr;
int ch, port = 5120, sfd, cfd, len, index, i, uid;
- char iface_ip[16] = {NULL};
+ char *iface_ip = NULL;
while( (ch = getopt(argc, argv, "p:i:h")) != -1 )
switch( ch ){
@@ -81,8 +81,7 @@ int main(int argc, char **argv)
port = atoi(optarg);
break;
case 'i':
- host = strncpy(iface_ip, optarg, 16);
- host[15] = 0;
+ iface_ip = optarg;
break;
case 'h':
default:
diff --git a/cacheserver/utmpsync.c b/cacheserver/utmpsync.c
index 13ffcf4e..029df6b8 100644
--- a/cacheserver/utmpsync.c
+++ b/cacheserver/utmpsync.c
@@ -3,8 +3,6 @@
#include <err.h>
extern SHM_t *SHM;
-int towrite(int fd, void *buf, int len);
-int toconnect(char *host, int port);
int main(int argc, char **argv)
{