From ddc22ff56acef0690abfd22ee640cda4eb143933 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 16 May 2012 20:42:26 -0400 Subject: Cleanup motivated by new cppcheck with more tests. All regression tests pass. --- driver_tsip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver_tsip.c') diff --git a/driver_tsip.c b/driver_tsip.c index b641a1f5..74d795f5 100644 --- a/driver_tsip.c +++ b/driver_tsip.c @@ -67,7 +67,6 @@ static int tsip_write(struct gps_device_t *session, static bool tsip_detect(struct gps_device_t *session) { char buf[BUFSIZ]; - unsigned int n; bool ret = false; int myfd; fd_set fdset; @@ -90,6 +89,7 @@ static bool tsip_detect(struct gps_device_t *session) /*@+ignoresigns@*/ myfd = session->gpsdata.gps_fd; if (write(myfd, buf, 4) == 4) { + unsigned int n; for (n = 0; n < 3; n++) { FD_ZERO(&fdset); FD_SET(myfd, &fdset); -- cgit v1.2.1