diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-06-07 20:52:56 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-06-07 20:52:56 -0400 |
commit | ef549333bb4f161cd97c3977a00d97cda906be02 (patch) | |
tree | 4bca328d410b4e289eb1e88016d573f7a8d36b1a | |
parent | 2ed5aee2e351c8ed4a7263a402703130105ec4df (diff) | |
download | gpsd-ef549333bb4f161cd97c3977a00d97cda906be02.tar.gz |
Splint cleanup. All regression tests pass.
-rw-r--r-- | monitor_sirf.c | 3 |
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])) /***************************************************************************** * |