diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-06-11 09:20:20 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-06-11 09:20:20 -0400 |
commit | 2941f808be395819aefb9241b3889b441b73ea1b (patch) | |
tree | 083353edd201273d3e3af9a604ff5eecca56a319 /serial.c | |
parent | 087691569a1e6ae23c1969db5a1d0ebc5d229ca5 (diff) | |
download | gpsd-2941f808be395819aefb9241b3889b441b73ea1b.tar.gz |
Code slimming.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 }; |