summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2014-08-27 21:28:54 -0400
committerEric S. Raymond <esr@thyrsus.com>2014-08-27 21:28:54 -0400
commit3756d7a8103057b66d4ac2826535562494640a57 (patch)
treecb730426befccdfabd5732538412c243441f5306 /gpsctl.c
parent44c7e898076f407abed9342acf8005a318af2101 (diff)
downloadgpsd-3756d7a8103057b66d4ac2826535562494640a57.tar.gz
splint/cppcheck cleanuo after the gpsd_report change.
All regression tests pass.
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gpsctl.c b/gpsctl.c
index c4029d3e..6ea4a123 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -304,8 +304,6 @@ int main(int argc, char **argv)
}
}
- context.errout.label = "gpsctl";
-
if (optind < argc)
device = argv[optind];
@@ -568,7 +566,7 @@ int main(int argc, char **argv)
}
/*@ -mustfreeonly -immediatetrans @*/
- gps_context_init(&context);
+ gps_context_init(&context, "gpsctl");
context.errout.debug = debuglevel;
session.context = &context;
gpsd_tty_init(&session);
@@ -604,7 +602,7 @@ int main(int argc, char **argv)
*/
/*@ -mustfreeonly -immediatetrans @*/
- gps_context_init(&context);
+ gps_context_init(&context, "gpsctl");
context.errout.debug = debuglevel;
session.context = &context; /* in case gps_init isn't called */