summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
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);