summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdevtools/sizes2
-rw-r--r--gpsd.c2
-rw-r--r--serial.c5
3 files changed, 4 insertions, 5 deletions
diff --git a/devtools/sizes b/devtools/sizes
index 3adcb45a..0a27e690 100755
--- a/devtools/sizes
+++ b/devtools/sizes
@@ -68,7 +68,7 @@ sizeit("Minimalist build, stripped to NMEA only with shm interface",
] + nmea_variants+binary_gps+non_gps+time_service+debugging)
sizeit("Normal build, configure options defaulted", "normal", [])
os.system("size gpsd-*-build")
-os.system("rm gpsd-*-build")
+#os.system("rm gpsd-*-build")
os.system("scons -c > /dev/null; rm -fr .scons*")
#end
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 */
diff --git a/serial.c b/serial.c
index f8cd94b9..be4a77d4 100644
--- a/serial.c
+++ b/serial.c
@@ -502,10 +502,7 @@ ssize_t gpsd_write(struct gps_device_t * session, char const *buf, size_t len)
bool gpsd_next_hunt_setting(struct gps_device_t * session)
/* advance to the next hunt setting */
{
-#ifdef FIXED_PORT_SPEED
- /* just the one fixed port speed... */
- static unsigned int rates[] = { FIXED_PORT_SPEED };
-#else /* FIXED_PORT_SPEED not defined */
+#ifndef FIXED_PORT_SPEED
/* every rate we're likely to see on a GPS */
static unsigned int rates[] =
{ 0, 4800, 9600, 19200, 38400, 57600, 115200 };