summaryrefslogtreecommitdiff
path: root/driver_proto.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-02-12 09:13:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-02-12 09:13:29 +0000
commit5a3c9eaa4ab85f644aa2b5aa3a796d490f76855c (patch)
tree5bfb3376d90c6ea0719ee2012499d242fe74921b /driver_proto.c
parentf55d2ae23805486b3957437693e09173544a32ea (diff)
downloadgpsd-5a3c9eaa4ab85f644aa2b5aa3a796d490f76855c.tar.gz
All driver method tables are now const.
This required moving one field, the modifiable cycle time, into the session structure; the driver type field is now the default value set on switching to that driver, if the field has not already been set during a previous activation.
Diffstat (limited to 'driver_proto.c')
-rw-r--r--driver_proto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver_proto.c b/driver_proto.c
index f83639ea..20cdbbb8 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -369,7 +369,7 @@ static void _proto__wrapup(struct gps_device_t *session)
/* any driver must use to compile. */
/* This is everything we export */
-struct gps_type_t _proto__binary = {
+const struct gps_type_t _proto__binary = {
/* Full name of type */
.type_name = "_proto_ binary",
/* associated lexer packet type */