summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2005-06-02 17:38:46 +0000
committerEric S. Raymond <esr@thyrsus.com>2005-06-02 17:38:46 +0000
commit1d634dc1bb21676ee4a38c6103bb42434641a3af (patch)
treec1e69dbb9e456218874bdfe9cf963c2921df4754 /ntpshm.c
parent17217d637cb9695cf50db9ab6f6ef97b4d97c904 (diff)
downloadgpsd-1d634dc1bb21676ee4a38c6103bb42434641a3af.tar.gz
104 split errors. Some iffy changes to the TSIP driver.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 6cae964d..1ede06f8 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -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;