X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=net%2Folsrd%2Fpatches%2F120-dyn_gw_interval.patch;h=241d775ff269e0832e78c80a39c78a6779421405;hp=688b344a5b722c2ed2aab3bde7be16a2bec832f8;hb=1bc843867b3340ffca64df10a322dc6557f2bd9d;hpb=24a56766ce95c57c28b92c25abd4637c06f92479 diff --git a/net/olsrd/patches/120-dyn_gw_interval.patch b/net/olsrd/patches/120-dyn_gw_interval.patch index 688b344a5b..241d775ff2 100644 --- a/net/olsrd/patches/120-dyn_gw_interval.patch +++ b/net/olsrd/patches/120-dyn_gw_interval.patch @@ -1,20 +1,20 @@ ---- olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw-orig.c 2007-10-31 15:14:47.000000000 +0100 -+++ olsrd-0.5.4/lib/dyn_gw/src/olsrd_dyn_gw.c 2007-10-31 15:15:17.000000000 +0100 -@@ -92,7 +92,7 @@ - - +--- 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 @@ + + /* set default interval, in case none is given in the config file */ -static int check_interval = 5; +static double check_interval = 5; - + /* list to store the Ping IP addresses given in the config file */ struct ping_list { -@@ -307,7 +307,7 @@ +@@ -302,7 +302,7 @@ 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 }; -+ struct timespec sleeptime_spec = { (int) check_interval, 0L }; - ++ struct timespec sleeptime_spec = { (int)check_interval, 0L }; + for(li = the_hna_list; li; li = li->next){ /* check for gw in table entry and if Ping IPs are given also do pings */