diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-03-27 13:39:09 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-03-27 13:39:09 -0400 |
commit | 4eea65f0cd06ecd356fc371e707cda174537e616 (patch) | |
tree | a295b45bbf634a1ebe52ae6152920368fa327f4e /libgps_shm.c | |
parent | 8118ed642d8d2d046684d5ce596206698127dc4b (diff) | |
download | gpsd-4eea65f0cd06ecd356fc371e707cda174537e616.tar.gz |
Change return values in the shm interface to be more like socket export.
All regression tests pass. Code splints clean. shm live-testing works.
Diffstat (limited to 'libgps_shm.c')
-rw-r--r-- | libgps_shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps_shm.c b/libgps_shm.c index 8c90f524..99457842 100644 --- a/libgps_shm.c +++ b/libgps_shm.c @@ -74,7 +74,7 @@ int gps_shm_read(struct gps_data_t *gpsdata) after = shared->bookend2; /*@i1@*/gpsdata->privdata = shared; - return (before == after) ? 0 : -1; + return (before == after) ? sizeof(struct gps_data_t) : 0; } } |