[hamradio-commits] [dump1090] 349/373: Make Pull # compatible with Pull #42

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Thu Oct 23 14:58:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch backport
in repository dump1090.

commit 4f449a8d44b41823a463550db90d10e897ce3257
Author: Malcolm Robb <Support at ATTAvionics.com>
Date:   Thu Oct 2 21:08:57 2014 +0100

    Make Pull # compatible with Pull #42
---
 mode_s.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mode_s.c b/mode_s.c
index 4d470bd..03aa58f 100644
--- a/mode_s.c
+++ b/mode_s.c
@@ -2052,7 +2052,8 @@ int decodeCPR(struct aircraft *a, int fflag, int surface) {
     }
 
     // Check to see that the latitude is in range: -90 .. +90
-    if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90) return;
+    if (rlat0 < -90 || rlat0 > 90 || rlat1 < -90 || rlat1 > 90)
+        return (-1);
 
     // Check that both are in the same latitude zone, or abort.
     if (cprNLFunction(rlat0) != cprNLFunction(rlat1))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list