summaryrefslogtreecommitdiff
path: root/gpsd_json.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsd_json.c')
-rw-r--r--gpsd_json.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gpsd_json.c b/gpsd_json.c
index 582f946d..aa9960ae 100644
--- a/gpsd_json.c
+++ b/gpsd_json.c
@@ -131,10 +131,6 @@ void json_tpv_dump(const struct gps_device_t *session,
assert(replylen > 2);
(void)strlcpy(reply, "{\"class\":\"TPV\",", replylen);
- (void)snprintf(reply + strlen(reply),
- replylen - strlen(reply),
- "\"tag\":\"%s\",",
- gpsdata->tag[0] != '\0' ? gpsdata->tag : "-");
if (gpsdata->dev.path[0] != '\0')
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
@@ -246,10 +242,6 @@ void json_noise_dump(const struct gps_data_t *gpsdata,
assert(replylen > 2);
(void)strlcpy(reply, "{\"class\":\"GST\",", replylen);
- (void)snprintf(reply + strlen(reply),
- replylen - strlen(reply),
- "\"tag\":\"%s\",",
- gpsdata->tag[0] != '\0' ? gpsdata->tag : "-");
if (gpsdata->dev.path[0] != '\0')
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
@@ -287,10 +279,6 @@ void json_sky_dump(const struct gps_data_t *datap,
assert(replylen > 2);
(void)strlcpy(reply, "{\"class\":\"SKY\",", replylen);
- (void)snprintf(reply + strlen(reply),
- replylen - strlen(reply),
- "\"tag\":\"%s\",",
- datap->tag[0] != '\0' ? datap->tag : "-");
if (datap->dev.path[0] != '\0')
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
@@ -3422,10 +3410,6 @@ void json_att_dump(const struct gps_data_t *gpsdata,
(void)strlcpy(reply, "{\"class\":\"ATT\",", replylen);
(void)snprintf(reply + strlen(reply),
replylen - strlen(reply),
- "\"tag\":\"%s\",",
- gpsdata->tag[0] != '\0' ? gpsdata->tag : "-");
- (void)snprintf(reply + strlen(reply),
- replylen - strlen(reply),
"\"device\":\"%s\",", gpsdata->dev.path);
if (isnan(gpsdata->attitude.heading) == 0) {
(void)snprintf(reply + strlen(reply),