Antw: Re: (void *) with shmat

From: "Ulrich Neumann" <U_Neumann(at)gne(dot)de>
To: <markw(at)mohawksoft(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Antw: Re: (void *) with shmat
Date: 2002-01-08 14:19:08
Message-ID: sc3b0e03.015@mail.gne.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

you re right. The problem is a mistake in a Metrowerks header file.
I ve fixed the Metrowerks header and recompiled the library.

Thanks for your quick response.

Ulrich Neumann

>>> mlw <markw(at)mohawksoft(dot)com> 08.01.2002 13:23:40 >>>

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

-------------------------------------------
This mail is virus scanned
Diese mail ist virusgeprueft

CVP Server Solutions by GNE
visit us at www.gne.de
-------------------------------------------

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Meskes 2002-01-08 14:22:39 Re: ecpg compile error on AIX
Previous Message Marc G. Fournier 2002-01-08 13:37:55 Re: RC1 time?