Re: cast pid_t to int when using *printf

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: cast pid_t to int when using *printf
Date: 2004-09-24 07:34:56
Message-ID: 4153CE20.6010500@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Paesold 2004-09-24 08:42:03 Re: psql: rollback only last query on error
Previous Message Neil Conway 2004-09-24 07:00:34 Re: cast pid_t to int when using *printf