[Olsr-cvs] olsrd-current/src/bsd kernel_routes.c,1.15,1.16
Bernd Petrovitsch
(spam-protected)
Tue Nov 27 14:39:24 CET 2007
Update of /cvsroot/olsrd/olsrd-current/src/bsd
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv32535/src/bsd
Modified Files:
kernel_routes.c
Log Message:
* fixed compile warnings
Index: kernel_routes.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/bsd/kernel_routes.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** kernel_routes.c 11 Nov 2007 23:10:24 -0000 1.15
--- kernel_routes.c 27 Nov 2007 13:39:22 -0000 1.16
***************
*** 44,47 ****
--- 44,49 ----
#include "olsr.h"
#include "defs.h"
+ #include "process_routes.h"
+ #include "net_olsr.h"
#include <net/if_dl.h>
***************
*** 59,63 ****
struct ifaddrs *addrs;
struct ifaddrs *awalker;
! struct rt_nexthop *nexthop;
union olsr_ip_addr mask;
int step, step2;
--- 61,65 ----
struct ifaddrs *addrs;
struct ifaddrs *awalker;
! const struct rt_nexthop *nexthop;
union olsr_ip_addr mask;
int step, step2;
***************
*** 102,106 ****
walker = buff + sizeof (struct rt_msghdr);
! sin.sin_addr.s_addr = rt->rt_dst.prefix.v4;
memcpy(walker, &sin, sizeof (sin));
--- 104,108 ----
walker = buff + sizeof (struct rt_msghdr);
! sin.sin_addr = rt->rt_dst.prefix.v4;
memcpy(walker, &sin, sizeof (sin));
***************
*** 150,154 ****
return -1;
}
! sin.sin_addr.s_addr = mask.v4;
memcpy(walker, &sin, sizeof (sin));
--- 152,156 ----
return -1;
}
! sin.sin_addr = mask.v4;
memcpy(walker, &sin, sizeof (sin));
***************
*** 182,186 ****
struct sockaddr_in6 sin6;
struct sockaddr_dl sdl;
! struct rt_nexthop *nexthop;
int step, step_dl;
int len;
--- 184,188 ----
struct sockaddr_in6 sin6;
struct sockaddr_dl sdl;
! const struct rt_nexthop *nexthop;
int step, step_dl;
int len;
More information about the Olsr-cvs
mailing list