summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/explan_gpsd.c.xml4
-rw-r--r--gpsd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/explan_gpsd.c.xml b/doc/explan_gpsd.c.xml
index 28e13590..c9b8c6ea 100644
--- a/doc/explan_gpsd.c.xml
+++ b/doc/explan_gpsd.c.xml
@@ -147,7 +147,7 @@
<entry><para>For every possible subscriber, check if the subscriber is in watcher mode and is interested in the gps device indicated in the calling parameter <function>gps_device_t</function>.</para><para>If so, send the data via a call to <function>throttled_write()</function>.</para></entry>
</row>
<row>
- <entry><function>static struct gps_device_t *find_device(char *device_name)</function></entry>
+ <entry><function>static struct gps_device_t *find_device(const char *device_name)</function></entry>
<entry><para>For every possible channel, check if the channel is allocated and if the device on the channel is the one passed to us.</para><para>If it is so, exit early and return the channel number.</para><para>If there is no match, return a NULL.</para></entry>
</row>
<row>
@@ -169,7 +169,7 @@
number allocated.</para></entry>
</row>
<row>
- <entry><function>static bool add_device(char *device_name)</function></entry>
+ <entry><function>static bool add_device(const char *device_name)</function></entry>
<entry><para>Add a device to the pool of those available. If in
nowait mode, open it immediately; otherwise initialize it and make
it available for future watches, but don't open it yet.</para></entry>
diff --git a/gpsd.c b/gpsd.c
index 3e39ff7a..de641b8e 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -594,7 +594,7 @@ static void deactivate_device(struct gps_device_t *device)
/* *INDENT-OFF* */
/*@ -globstate @*/
-/*@null@*//*@observer@*/ static struct gps_device_t *find_device(char
+/*@null@*//*@observer@*/ static struct gps_device_t *find_device(const char
*device_name)
/* find the device block for an existing device name */
{
@@ -622,7 +622,7 @@ static bool open_device(struct gps_device_t *device)
return true;
}
-static bool add_device(char *device_name)
+static bool add_device(const char *device_name)
/* add a device to the pool; open it right away if in nowait mode */
{
struct gps_device_t *devp;