summaryrefslogtreecommitdiffstats
path: root/cacheserver
diff options
context:
space:
mode:
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)
{