(void *) with shmat

From: Ulrich Neumann<u_neumann(at)gne(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: (void *) with shmat
Date: 2002-01-08 08:43:00
Message-ID: a1eevs$1koe$2@news.tht.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello together,

In ipc.c, function InternalIpcMemoryCreate there is the following line of code:
memAddress = shmat(shmid, 0, 0);

this line should be changed to:
memAddress = (void *) shmat(shmid, 0, 0);

at function IpcMemoryCreate there is the following line of code:
memAddress = shmat(shmid, 0, 0);

this line should be changed to:
memAddress = (void *) shmat(shmid, 0, 0);

This will avoid problems with MetroWerks CodeWarrior compiler.

Thanks

Ulrich Neumann

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Page 2002-01-08 08:48:29 Re: Default permissions of system catalogs
Previous Message Ulrich Neumann 2002-01-08 08:42:00 GETTIMEOFDAY_1ARG change