summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-06-07 20:52:56 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-06-07 20:52:56 -0400
commitef549333bb4f161cd97c3977a00d97cda906be02 (patch)
tree4bca328d410b4e289eb1e88016d573f7a8d36b1a
parent2ed5aee2e351c8ed4a7263a402703130105ec4df (diff)
downloadgpsd-ef549333bb4f161cd97c3977a00d97cda906be02.tar.gz
Splint cleanup. All regression tests pass.
-rw-r--r--monitor_sirf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/monitor_sirf.c b/monitor_sirf.c
index af03e2b8..09b38bff 100644
--- a/monitor_sirf.c
+++ b/monitor_sirf.c
@@ -59,7 +59,8 @@ static char *dgpsvec[] = {
"Software",
};
-#define CHECK_RANGE(vec, i) (((i) >= 0) && ((i) < sizeof(vec)/sizeof(vec[0])))
+/* check range of an unsigned quantity */
+#define CHECK_RANGE(vec, i) ((i) < sizeof(vec)/sizeof(vec[0]))
/*****************************************************************************
*