summaryrefslogtreecommitdiff
path: root/data/kismet_/finite.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/kismet_/finite.diff')
-rw-r--r--data/kismet_/finite.diff54
1 files changed, 54 insertions, 0 deletions
diff --git a/data/kismet_/finite.diff b/data/kismet_/finite.diff
new file mode 100644
index 000000000..7c71da1bd
--- /dev/null
+++ b/data/kismet_/finite.diff
@@ -0,0 +1,54 @@
+diff -r -u kismet-2008-05-R1/gpsd.cc kismet-2008-05-R1+iPhone/gpsd.cc
+--- kismet-2008-05-R1/gpsd.cc 2008-02-24 20:16:32.000000000 +0000
++++ kismet-2008-05-R1+iPhone/gpsd.cc 2008-06-14 21:58:52.000000000 +0000
+@@ -481,7 +481,7 @@
+ dir = atan(tx / ty);
+ }
+
+- if (!finite(dir))
++ if (!isfinite(dir))
+ dir = 0.0;
+ if (ty < 0)
+ dir = M_PI + dir;
+diff -r -u kismet-2008-05-R1/gpsmap.cc kismet-2008-05-R1+iPhone/gpsmap.cc
+--- kismet-2008-05-R1/gpsmap.cc 2008-05-08 21:48:35.000000000 +0000
++++ kismet-2008-05-R1+iPhone/gpsmap.cc 2008-06-14 21:58:52.000000000 +0000
+@@ -1867,7 +1867,7 @@
+ }
+ distavg = distavg / map_iter->points.size();
+
+- if (!finite(distavg))
++ if (!isfinite(distavg))
+ continue;
+
+ endx = mapx + distavg;
+diff -r -u kismet-2008-05-R1/panelfront_display.cc kismet-2008-05-R1+iPhone/panelfront_display.cc
+--- kismet-2008-05-R1/panelfront_display.cc 2008-03-16 17:59:00.000000000 +0000
++++ kismet-2008-05-R1+iPhone/panelfront_display.cc 2008-06-14 21:58:53.000000000 +0000
+@@ -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);
+@@ -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);
+@@ -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);