[package] fix the finite prototype in kismet, thanks Acinonyx (#5198)
[openwrt/svn-archive/archive.git] / net / kismet / patches / 110-finite_proto.patch
1 diff -Nru kismet-2008-05-R1.old/gpsd.cc kismet-2008-05-R1/gpsd.cc
2 --- kismet-2008-05-R1.old/gpsd.cc 2009-05-20 00:27:48.612804334 +0300
3 +++ kismet-2008-05-R1/gpsd.cc 2009-05-20 00:28:21.407929729 +0300
4 @@ -481,7 +481,7 @@
5 dir = atan2(tx,ty);
6 }
7
8 - if (!finite(dir))
9 + if (!isfinite(dir))
10 dir = 0.0;
11 if (ty < 0)
12 dir = M_PI + dir;
13 diff -Nru kismet-2008-05-R1.old/panelfront_display.cc kismet-2008-05-R1/panelfront_display.cc
14 --- kismet-2008-05-R1.old/panelfront_display.cc 2008-03-16 19:59:00.000000000 +0200
15 +++ kismet-2008-05-R1/panelfront_display.cc 2009-05-20 00:28:11.074804546 +0300
16 @@ -1562,7 +1562,7 @@
17 details_network->virtnet->max_lat,
18 details_network->virtnet->max_lon);
19
20 - if (finite(diagdist)) {
21 + if (isfinite(diagdist)) {
22 if (metric) {
23 if (diagdist < 1000)
24 snprintf(output, print_width, "Range : %.3f meters", diagdist);
25 @@ -1575,7 +1575,7 @@
26 else
27 snprintf(output, print_width, "Range : %.3f miles", diagdist / 5280);
28 }
29 - kwin->text.push_back(output);
30 + kwin->text.push_back(output);
31 }
32 }
33 }
34 @@ -1937,7 +1937,7 @@
35 double diagdist = GPSD::EarthDistance(dnet->min_lat, dnet->min_lon,
36 dnet->max_lat, dnet->max_lon);
37
38 - if (finite(diagdist)) {
39 + if (isfinite(diagdist)) {
40 if (metric) {
41 if (diagdist < 1000)
42 snprintf(output, print_width, "Range : %f meters", diagdist);
43 @@ -1950,7 +1950,7 @@
44 else
45 snprintf(output, print_width, "Range : %f miles", diagdist / 5280);
46 }
47 - kwin->text.push_back(output);
48 + kwin->text.push_back(output);
49 }
50 }
51 }
52 @@ -3141,7 +3141,7 @@
53 details_client->max_lat,
54 details_client->max_lon);
55
56 - if (finite(diagdist)) {
57 + if (isfinite(diagdist)) {
58 if (metric) {
59 if (diagdist < 1000)
60 snprintf(output, print_width, "Range : %f meters", diagdist);