(void *) with shmat - Mailing list pgsql-hackers

From Ulrich Neumann
Subject (void *) with shmat
Date
Msg-id a1eevs$1koe$2@news.tht.net
Whole thread Raw
Responses Re: (void *) with shmat  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Ulrich Neumann
Date:
Subject: GETTIMEOFDAY_1ARG change
Next
From: mlw
Date:
Subject: Re: (void *) with shmat