Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
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.


In response to


pgsql-patches by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group