summaryrefslogtreecommitdiff
path: root/libgps_shm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-27 13:39:09 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-27 13:39:09 -0400
commit4eea65f0cd06ecd356fc371e707cda174537e616 (patch)
treea295b45bbf634a1ebe52ae6152920368fa327f4e /libgps_shm.c
parent8118ed642d8d2d046684d5ce596206698127dc4b (diff)
downloadgpsd-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.c2
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;
}
}