diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-23 18:48:12 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-23 18:48:12 -0400 |
commit | e18934bf45246408915652f7b6a5e5ce66cccd8a (patch) | |
tree | c8ec133ec6ce522e70c4e1fca9ae6d6580a92fef | |
parent | 88a0c062d32d34138cccdf199db522538840bd09 (diff) | |
download | gpsd-e18934bf45246408915652f7b6a5e5ce66cccd8a.tar.gz |
Reduce space required by devicelist now that it's in the main structure.
-rw-r--r-- | gps.h | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -39,7 +39,8 @@ extern "C" { * 5.1 - GPS_PATH_MAX uses system PATH_MAX; split24 flag added. New * model and serial members in part B of AIS type 24, conforming * with ITU-R 1371-4. New timedrift structure (Nov 2013, release 3.10). - * 5.2 - AIS type 6 and 8 get 'structured' flag; devices moved out of union. + * 5.2 - AIS type 6 and 8 get 'structured' flag; GPS_PATH_MAX + * shortened because devices has moved out of union. */ #define GPSD_API_MAJOR_VERSION 5 /* bump on incompatible changes */ #define GPSD_API_MINOR_VERSION 2 /* bump on compatible changes */ @@ -48,13 +49,7 @@ extern "C" { #define MAXCHANNELS 72 /* must be > 12 GPS + 12 GLONASS + 2 WAAS */ #define GPS_PRNMAX 32 /* above this number are SBAS satellites */ #define MAXUSERDEVS 4 /* max devices per user */ - -/* PATH_MAX needs to be enough for long names like /dev/serial/by-id/... */ -#ifdef PATH_MAX -#define GPS_PATH_MAX PATH_MAX -#else -#define GPS_PATH_MAX 1024 -#endif +#define GPS_PATH_MAX 32 /* for names like /dev/serial/by-id/... */ /* * The structure describing an uncertainty volume in kinematic space. |