Incorporate fix by Ferry Hubert for float to double promotion
authorFrank de Brabander <brabander@fox-it.com>
Fri, 31 Aug 2012 11:34:29 +0000 (13:34 +0200)
committerFrank de Brabander <brabander@fox-it.com>
Fri, 31 Aug 2012 11:34:29 +0000 (13:34 +0200)
Signed-off-by: Frank de Brabander <brabander@fox-it.com>
src/linux/lq_plugin_ffeth_nl80211.c

index 6767880..c2fe777 100644 (file)
@@ -301,7 +301,7 @@ lq_ffeth_nl80211_timer(void __attribute__ ((unused)) * context)
 static void
 lq_initialize_ffeth_nl80211(void)
 {
-  if (olsr_cnf->lq_nat_thresh < 1.0) {
+  if (olsr_cnf->lq_nat_thresh < 1.0f) {
     fprintf(stderr, "Warning, nat_treshold < 1.0 is more likely to produce loops with etx_ffeth\n");
   }
   olsr_packetparser_add_function(&lq_parser_ffeth_nl80211);