summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-09-22 10:51:16 -0700
committerGary E. Miller <gem@rellim.com>2018-09-22 10:51:16 -0700
commit522d679025a557701755c729a9b9ae96ad66a583 (patch)
treeea9268558dacbc916365e9cba5379cb6636d50b9 /gpsd.c
parentfe278e203d5696a0ddb02d87b888116a4df9519b (diff)
downloadgpsd-522d679025a557701755c729a9b9ae96ad66a583.tar.gz
gpsd: Allow zerk/ubxtools to work when another client is running.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gpsd.c b/gpsd.c
index 4175d805..74f58f40 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -995,6 +995,7 @@ static bool awaken(struct gps_device_t *device)
}
#ifdef RECONFIGURE_ENABLE
+#if __UNUSED_RECONFIGURE__
static bool privileged_user(struct gps_device_t *device)
/* is this channel privileged to change a device's behavior? */
{
@@ -1013,6 +1014,7 @@ static bool privileged_user(struct gps_device_t *device)
*/
return subcount <= 1;
}
+#endif __UNUSED_RECONFIGURE__
static void set_serial(struct gps_device_t *device,
speed_t speed, char *modestring)
@@ -1247,11 +1249,7 @@ static void handle_request(struct subscriber_t *sub,
}
/* we should have exactly one device now */
}
- if (!privileged_user(device))
- str_appendf(reply, replylen,
- "{\"class\":\"ERROR\",\"message\":\"Multiple subscribers, cannot change control bits on %s.\"}\r\n",
- device->gpsdata.dev.path);
- else if (device->device_type == NULL)
+ if (device->device_type == NULL)
str_appendf(reply, replylen,
"{\"class\":\"ERROR\",\"message\":\"Type of %s is unknown.\"}\r\n",
device->gpsdata.dev.path);