summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpsd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd.c b/gpsd.c
index a8d543cc..9f7b5861 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -1599,13 +1599,13 @@ int main(int argc, char *argv[])
if ((changed & DEVICEID_SET) != 0) {
char id[NMEA_MAX];
(void)snprintf(id, sizeof(id), "GPSD,I=%s",
- sub->device->device_type->typename);
- if (sub->device->subtype[0] != '\0') {
+ channel->device_type->typename);
+ if (channel->subtype[0] != '\0') {
(void)strlcat(id, " ", sizeof(id));
- (void)strlcat(id,sub->device->subtype,sizeof(id));
+ (void)strlcat(id,channel->subtype,sizeof(id));
}
(void)strlcat(id, "\r\n", sizeof(id));
- notify_watchers(sub->device, id);
+ notify_watchers(channel, id);
}
/* copy/merge channel data into subscriber fix buffers */
for (sub = subscribers;