summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-06-11 09:20:20 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-06-11 09:20:20 -0400
commit2941f808be395819aefb9241b3889b441b73ea1b (patch)
tree083353edd201273d3e3af9a604ff5eecca56a319 /gpsd.c
parent087691569a1e6ae23c1969db5a1d0ebc5d229ca5 (diff)
downloadgpsd-2941f808be395819aefb9241b3889b441b73ea1b.tar.gz
Code slimming.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index 5041407a..8f9fac89 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -952,6 +952,7 @@ static void set_serial(struct gps_device_t *device,
}
#endif /* RECONFIGURE_ENABLE */
+#ifdef SOCKET_EXPORT_ENABLE
static void json_devicelist_dump(char *reply, size_t replylen)
{
struct gps_device_t *devp;
@@ -973,6 +974,7 @@ static void json_devicelist_dump(char *reply, size_t replylen)
reply[strlen(reply) - 1] = '\0';
(void)strlcat(reply, "]}\r\n", replylen);
}
+#endif /* SOCKET_EXPORT_ENABLE */
static void rstrip(char *str)
/* strip trailing \r\n\t\SP from a string */