2008-07-10 00:00:36 +00:00
|
|
|
--- olsrd-0.5.6-rc7/lib/dyn_gw/src/olsrd_dyn_gw-orig.c 2008-07-10 01:50:44.000000000 +0200
|
|
|
|
+++ olsrd-0.5.6-rc7/lib/dyn_gw/src/olsrd_dyn_gw.c 2008-07-10 01:51:39.000000000 +0200
|
|
|
|
@@ -90,7 +90,7 @@
|
|
|
|
|
|
|
|
|
2008-02-03 10:51:09 +00:00
|
|
|
/* set default interval, in case none is given in the config file */
|
|
|
|
-static int check_interval = 5;
|
|
|
|
+static double check_interval = 5;
|
2008-07-10 00:00:36 +00:00
|
|
|
|
2008-02-03 10:51:09 +00:00
|
|
|
/* list to store the Ping IP addresses given in the config file */
|
|
|
|
struct ping_list {
|
2008-07-10 00:00:36 +00:00
|
|
|
@@ -302,7 +302,7 @@
|
2008-02-03 10:51:09 +00:00
|
|
|
struct hna_list *li;
|
|
|
|
struct timespec remainder_spec;
|
|
|
|
/* the time to wait in "Interval" sec (see connfig), default=5sec */
|
|
|
|
- struct timespec sleeptime_spec = { check_interval, 0L };
|
2008-07-10 00:00:36 +00:00
|
|
|
+ struct timespec sleeptime_spec = { (int)check_interval, 0L };
|
|
|
|
|
2008-02-03 10:51:09 +00:00
|
|
|
for(li = the_hna_list; li; li = li->next){
|
|
|
|
/* check for gw in table entry and if Ping IPs are given also do pings */
|