diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2005-06-02 17:38:46 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2005-06-02 17:38:46 +0000 |
commit | 1d634dc1bb21676ee4a38c6103bb42434641a3af (patch) | |
tree | c1e69dbb9e456218874bdfe9cf963c2921df4754 /ntpshm.c | |
parent | 17217d637cb9695cf50db9ab6f6ef97b4d97c904 (diff) | |
download | gpsd-1d634dc1bb21676ee4a38c6103bb42434641a3af.tar.gz |
104 split errors. Some iffy changes to the TSIP driver.
Diffstat (limited to 'ntpshm.c')
-rw-r--r-- | ntpshm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -47,9 +47,10 @@ struct shmTime { int pad[10]; }; -static struct shmTime *getShmTime(int unit) +static /*@null@*/ struct shmTime *getShmTime(int unit) { - int shmid=shmget (NTPD_BASE+unit, sizeof (struct shmTime), IPC_CREAT|0700); + int shmid=shmget ((key_t)(NTPD_BASE+unit), + sizeof (struct shmTime), IPC_CREAT|0700); if (shmid == -1) { gpsd_report(1, "shmget failed\n"); return NULL; |