summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-02-16 08:31:20 -0500
committerEric S. Raymond <esr@thyrsus.com>2011-02-16 08:31:20 -0500
commita425161cab6a09d9850305f6fecd520f0d260b2b (patch)
treeb9a4d048fdd24b65167889c7b5297355e14bf683 /cgps.c
parenta4a18f041b753a41409cfd37967e484747e8e324 (diff)
downloadgpsd-a425161cab6a09d9850305f6fecd520f0d260b2b.tar.gz
Splint cleanup. All regression tests pass.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgps.c b/cgps.c
index ddf1ece8..62d99c44 100644
--- a/cgps.c
+++ b/cgps.c
@@ -736,6 +736,7 @@ int main(int argc, char *argv[])
struct timeval timeout;
fd_set rfds;
int data;
+ unsigned int flags = WATCH_ENABLE;
/*@ -observertrans @*/
switch (gpsd_units()) {
@@ -854,7 +855,6 @@ int main(int argc, char *argv[])
status_timer = time(NULL);
- unsigned int flags = WATCH_ENABLE;
if (source.device != NULL)
flags |= WATCH_DEVICE;
(void)gps_stream(&gpsdata, flags, source.device);