From d18cefaf96a5effe8ceb61c93a40d4748acf5fca Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 28 May 2009 09:34:01 +0000 Subject: [PATCH] [package] fix the finite prototype in kismet, thanks Acinonyx (#5198) git-svn-id: svn://svn.openwrt.org/openwrt/packages@16124 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/kismet/patches/110-finite_proto.patch | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 net/kismet/patches/110-finite_proto.patch diff --git a/net/kismet/patches/110-finite_proto.patch b/net/kismet/patches/110-finite_proto.patch new file mode 100644 index 000000000..d578e765c --- /dev/null +++ b/net/kismet/patches/110-finite_proto.patch @@ -0,0 +1,60 @@ +diff -Nru kismet-2008-05-R1.old/gpsd.cc kismet-2008-05-R1/gpsd.cc +--- kismet-2008-05-R1.old/gpsd.cc 2009-05-20 00:27:48.612804334 +0300 ++++ kismet-2008-05-R1/gpsd.cc 2009-05-20 00:28:21.407929729 +0300 +@@ -481,7 +481,7 @@ + dir = atan2(tx,ty); + } + +- if (!finite(dir)) ++ if (!isfinite(dir)) + dir = 0.0; + if (ty < 0) + dir = M_PI + dir; +diff -Nru kismet-2008-05-R1.old/panelfront_display.cc kismet-2008-05-R1/panelfront_display.cc +--- kismet-2008-05-R1.old/panelfront_display.cc 2008-03-16 19:59:00.000000000 +0200 ++++ kismet-2008-05-R1/panelfront_display.cc 2009-05-20 00:28:11.074804546 +0300 +@@ -1562,7 +1562,7 @@ + details_network->virtnet->max_lat, + details_network->virtnet->max_lon); + +- if (finite(diagdist)) { ++ if (isfinite(diagdist)) { + if (metric) { + if (diagdist < 1000) + snprintf(output, print_width, "Range : %.3f meters", diagdist); +@@ -1575,7 +1575,7 @@ + else + snprintf(output, print_width, "Range : %.3f miles", diagdist / 5280); + } +- kwin->text.push_back(output); ++ kwin->text.push_back(output); + } + } + } +@@ -1937,7 +1937,7 @@ + double diagdist = GPSD::EarthDistance(dnet->min_lat, dnet->min_lon, + dnet->max_lat, dnet->max_lon); + +- if (finite(diagdist)) { ++ if (isfinite(diagdist)) { + if (metric) { + if (diagdist < 1000) + snprintf(output, print_width, "Range : %f meters", diagdist); +@@ -1950,7 +1950,7 @@ + else + snprintf(output, print_width, "Range : %f miles", diagdist / 5280); + } +- kwin->text.push_back(output); ++ kwin->text.push_back(output); + } + } + } +@@ -3141,7 +3141,7 @@ + details_client->max_lat, + details_client->max_lon); + +- if (finite(diagdist)) { ++ if (isfinite(diagdist)) { + if (metric) { + if (diagdist < 1000) + snprintf(output, print_width, "Range : %f meters", diagdist); -- 2.11.0