From 1d634dc1bb21676ee4a38c6103bb42434641a3af Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 2 Jun 2005 17:38:46 +0000 Subject: 104 split errors. Some iffy changes to the TSIP driver. --- ntpshm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ntpshm.c') 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; -- cgit v1.2.1