Re: (void *) with shmat

From: mlw <markw(at)mohawksoft(dot)com>
To: Ulrich Neumann <u_neumann(at)gne(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: (void *) with shmat
Date: 2002-01-08 12:23:40
Message-ID: 3C3AE4CC.27247F10@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Why is this needed?

shmat is defined as returning a void *. Is it not so with MetroWerks?

Ulrich Neumann wrote:
>
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2002-01-08 13:37:06 Re: RC1 time?
Previous Message Daniel Kalchev 2002-01-08 09:22:03 Re: again on index usage