summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/explan_libgpsd_core.c.xml2
-rw-r--r--gpsd.h-tail2
-rw-r--r--libgpsd_core.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/doc/explan_libgpsd_core.c.xml b/doc/explan_libgpsd_core.c.xml
index eb73a48b..dc25c7da 100644
--- a/doc/explan_libgpsd_core.c.xml
+++ b/doc/explan_libgpsd_core.c.xml
@@ -36,7 +36,7 @@
indicate a device switch.</para></entry>
</row>
<row>
- <entry><function>void gpsd_init(struct gps_device_t *session, struct gps_context_t *context, char *device)</function></entry>
+ <entry><function>void gpsd_init(struct gps_device_t *session, struct gps_context_t *context, const char *device)</function></entry>
<entry><para>Copy the device name to the session data structure,
initialise important data fields and call
<function>gpsd_tty_init()</function>,
diff --git a/gpsd.h-tail b/gpsd.h-tail
index 516e1688..a5d106a8 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -645,7 +645,7 @@ extern unsigned char hc(unsigned char);
extern void gps_context_init(struct gps_context_t *context);
extern void gpsd_init(struct gps_device_t *,
struct gps_context_t *,
- /*@null@*/char *);
+ /*@null@*/const char *);
extern void gpsd_clear(struct gps_device_t *);
extern int gpsd_activate(struct gps_device_t *);
extern void gpsd_deactivate(struct gps_device_t *);
diff --git a/libgpsd_core.c b/libgpsd_core.c
index 314ec861..e8051bcd 100644
--- a/libgpsd_core.c
+++ b/libgpsd_core.c
@@ -189,7 +189,7 @@ void gps_context_init(struct gps_context_t *context)
/*@+compdestroy@*/
void gpsd_init(struct gps_device_t *session, struct gps_context_t *context,
- char *device)
+ const char *device)
/* initialize GPS polling */
{
/*@ -mayaliasunique @*/