From e51bb90d354881ef3bdf6fa98c1270e3710221dd Mon Sep 17 00:00:00 2001 From: Craig Small Date: Thu, 3 May 2001 02:05:20 +0000 Subject: fixed sockaddr problem and moved b* to mem* functions --- tcpip/rip98d.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tcpip/rip98d.c') 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 +#endif + #include #include #include @@ -5,10 +10,10 @@ #include #include #include +#include #include #include -#include #include #include @@ -18,7 +23,6 @@ #include -#include #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); -- cgit v1.2.3