summaryrefslogtreecommitdiff
path: root/data/kismet_/finite.diff
blob: 7c71da1bd8a74329296c46ac9fdfb7af6eaabca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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);