Re: cast pid_t to int when using *printf - Mailing list pgsql-patches

From Oliver Jowett
Subject Re: cast pid_t to int when using *printf
Date
Msg-id 4153CE20.6010500@opencloud.com
Whole thread Raw
In response to Re: cast pid_t to int when using *printf  (Neil Conway <neilc@samurai.com>)
Responses Re: cast pid_t to int when using *printf  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
Neil Conway wrote:
> On Fri, 2004-09-24 at 16:51, Oliver Jowett wrote:
>
>>gcc (3.2.3 on Solaris 9) warns about a couple of places where a pid_t is
>>formatted with %d by a printf-family function.
>
>
> For curiosity's sake, what formatting escape does gcc prefer?

I don't think there is an escape for pid_t, you always have to cast it.

-O

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: Re: cast pid_t to int when using *printf
Next
From: "Michael Paesold"
Date:
Subject: Re: psql: rollback only last query on error