diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-05-24 17:16:23 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-24 17:17:31 -0400 |
commit | 32c2c9caae5672c1b29d8458a74bbc7ab0e2720e (patch) | |
tree | 04f6de6e825e51381bd1278cfd786586a869df64 /gps.h | |
parent | 5c651e258f759b7c12045cb2f4f9a75e580873b3 (diff) | |
download | gpsd-32c2c9caae5672c1b29d8458a74bbc7ab0e2720e.tar.gz |
GPS_PATH_MAX needs to be longer to handle Linux persistent device names.
The current value of GPS_PATH_MAX works for /dev/ttyfoo, but is
slightly too small to allow using persistent dev names. For example,
an ND-100S also shows up on my machine as
/dev/serial/by-id/usb-Prolific_Technology_Inc._USB-Serial_Controller_D-if00-port0
which requires GPS_PATH_MAX >= 82.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gps.h')
-rw-r--r-- | gps.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -43,7 +43,7 @@ extern "C" { #define MAXTAGLEN 8 /* maximum length of sentence tag name */ #define MAXCHANNELS 72 /* must be > 12 GPS + 12 GLONASS + 2 WAAS */ #define GPS_PRNMAX 32 /* above this number are SBAS satellites */ -#define GPS_PATH_MAX 64 /* dev files usually have short names */ +#define GPS_PATH_MAX 128 /* dev files usually have short names */ #define MAXUSERDEVS 4 /* max devices per user */ /* |