summaryrefslogtreecommitdiffstats
path: root/tcpip/rip98d.c
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2001-05-03 02:05:20 +0000
committerCraig Small <csmall@enc.com.au>2001-05-03 02:05:20 +0000
commite51bb90d354881ef3bdf6fa98c1270e3710221dd (patch)
treed85f1fbe66d7b0e75f04ab52f42d2c2e2e97cc1f /tcpip/rip98d.c
parent59cfcb1d81825cc4816fc1ffddd0193f0ebec4ae (diff)
fixed sockaddr problem and moved b* to mem* functions
Diffstat (limited to 'tcpip/rip98d.c')
-rw-r--r--tcpip/rip98d.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/tcpip/rip98d.c b/tcpip/rip98d.c
index 78851cd..9fffab6 100644
--- a/tcpip/rip98d.c
+++ b/tcpip/rip98d.c
@@ -1,3 +1,8 @@
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -5,10 +10,10 @@
#include <netdb.h>
#include <syslog.h>
#include <signal.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
@@ -18,7 +23,6 @@
#include <netax25/daemon.h>
-#include <config.h>
#include "../pathnames.h"
#include "rip98d.h"
@@ -246,7 +250,7 @@ static int load_dests(void)
return FALSE;
}
- bcopy(host->h_addr, (char *)&dest_list[dest_count].dest_addr, host->h_length);
+ memcpy((char *)&dest_list[dest_count].dest_addr, host->h_addr, host->h_length);
dest_count++;
}
@@ -309,7 +313,7 @@ int main(int argc, char **argv)
return 1;
}
- bzero((char *)&loc_addr, sizeof(loc_addr));
+ memset((char *)&loc_addr, 0, sizeof(loc_addr));
loc_addr.sin_family = AF_INET;
loc_addr.sin_addr.s_addr = htonl(INADDR_ANY);
loc_addr.sin_port = htons(RIP_PORT);