diff options
author | Gary E. Miller <gem@rellim.com> | 2018-09-25 16:07:46 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-09-25 16:07:46 -0700 |
commit | ac15facf90bc57781c420342adc9dc27ebc2a761 (patch) | |
tree | 693bf32b137fa6d2698b013a05fdc5fdbbb663d9 /driver_greis.c | |
parent | 35026d5ffd09f9c1111a4712f4c0d8cfe6e73fe6 (diff) | |
download | gpsd-ac15facf90bc57781c420342adc9dc27ebc2a761.tar.gz |
driver_greis: Fix cppcheck scoping nit.
Diffstat (limited to 'driver_greis.c')
-rw-r--r-- | driver_greis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/driver_greis.c b/driver_greis.c index cf219b97..9eb148fc 100644 --- a/driver_greis.c +++ b/driver_greis.c @@ -349,7 +349,6 @@ static gps_mask_t greis_msg_SI(struct gps_device_t *session, unsigned char *buf, size_t len) { int i; - unsigned short PRN; if (len < 1) { gpsd_log(&session->context->errout, LOG_WARN, @@ -362,7 +361,7 @@ static gps_mask_t greis_msg_SI(struct gps_device_t *session, session->gpsdata.satellites_visible = len - 1; for (i = 0; i < session->gpsdata.satellites_visible; i++) { /* This isn't really PRN, this is USI. Convert it. */ - PRN = getub(buf, i); + unsigned short PRN = getub(buf, i); session->gpsdata.skyview[i].PRN = PRN; /* fit into gnssid:svid */ |