PATCH: upgrades kismet to 2007-10-R1
[openwrt/svn-archive/archive.git] / net / kismet / patches / 100-fix-atan.patch
1 diff -ru kismet-2007-10-R1/gpsd.cc kismet-2007-10-R1-fixed/gpsd.cc
2 --- kismet-2007-10-R1/gpsd.cc 2007-09-15 09:14:00.000000000 -0700
3 +++ kismet-2007-10-R1-fixed/gpsd.cc 2007-11-06 01:46:12.000000000 -0800
4 @@ -323,7 +323,7 @@
5 if (ty == 0) {
6 dir = 0.0;
7 } else {
8 - dir = atan(tx / ty);
9 + dir = atan2(tx,ty);
10 }
11
12 if (!finite(dir))