diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-02-18 20:20:14 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-02-18 20:20:14 +0000 |
commit | 0be3ca12e575d424bbdc91cf80fbc0ba0496e05b (patch) | |
tree | 3ab3fffa8a7d9cee71e89a9a1d7d6d736783bb85 | |
parent | 9a64213d774f75b14da913c6a5024844325af6cd (diff) | |
download | gpsd-0be3ca12e575d424bbdc91cf80fbc0ba0496e05b.tar.gz |
Merge in a permission fix by Rob Janssen...
..and a type fix that unbreaks the TSIP build.
-rw-r--r-- | ntpshm.c | 2 | ||||
-rw-r--r-- | tsip.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ struct shmTime { static /*@null@*/ struct shmTime *getShmTime(int unit) { int shmid=shmget ((key_t)(NTPD_BASE+unit), - sizeof (struct shmTime), IPC_CREAT|0700); + sizeof (struct shmTime), IPC_CREAT|0644); if (shmid == -1) { gpsd_report(1, "shmget failed\n"); return NULL; @@ -223,7 +223,7 @@ static gps_mask_t tsip_analyze(struct gps_device_t *session) session->driver.tsip.last_46 = now; u1 = getub(buf,0); /* Status code */ u2 = getub(buf,1); /* Antenna/Battery */ - if (u1 != (uchar)0) { + if (u1 != (u_int8_t)0) { session->gpsdata.status = STATUS_NO_FIX; mask |= STATUS_SET; } |