diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-11-13 21:15:26 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-11-13 21:15:26 -0500 |
commit | c156357dc42afafe9efed3597588a33a6055031e (patch) | |
tree | 1910eaa98378e6c4aa922ab53a128c454ac74380 /libgps_sock.c | |
parent | cfc75901928f2eb1ce3de20a747b2d01fb11093d (diff) | |
download | gpsd-c156357dc42afafe9efed3597588a33a6055031e.tar.gz |
ppsbar -> pps.
All regression tests pass. PPS is live in both gpsd and gpsmon.
Diffstat (limited to 'libgps_sock.c')
-rw-r--r-- | libgps_sock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgps_sock.c b/libgps_sock.c index 4232b006..c7f706ad 100644 --- a/libgps_sock.c +++ b/libgps_sock.c @@ -520,8 +520,8 @@ int gps_sock_stream(struct gps_data_t *gpsdata, unsigned int flags, (void)strlcat(buf, "\"timing\":false,", sizeof(buf)); if (flags & WATCH_SPLIT24) (void)strlcat(buf, "\"split24\":false,", sizeof(buf)); - if (flags & WATCH_PPSBAR) - (void)strlcat(buf, "\"ppsbar\":false,", sizeof(buf)); + if (flags & WATCH_PPS) + (void)strlcat(buf, "\"pps\":false,", sizeof(buf)); if (buf[strlen(buf) - 1] == ',') buf[strlen(buf) - 1] = '\0'; (void)strlcat(buf, "};", sizeof(buf)); @@ -550,8 +550,8 @@ int gps_sock_stream(struct gps_data_t *gpsdata, unsigned int flags, (void)strlcat(buf, "\"timing\":true,", sizeof(buf)); if (flags & WATCH_SPLIT24) (void)strlcat(buf, "\"split24\":true,", sizeof(buf)); - if (flags & WATCH_PPSBAR) - (void)strlcat(buf, "\"ppsbar\":true,", sizeof(buf)); + if (flags & WATCH_PPS) + (void)strlcat(buf, "\"pps\":true,", sizeof(buf)); /*@-nullpass@*//* shouldn't be needed, splint has a bug */ if (flags & WATCH_DEVICE) (void)snprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), |