From: Uwe Zeisberger Date: Mon, 26 Jun 2006 12:13:25 GMT Subject: Re: [PATCH] cast pid_t to long for printing Message-ID: <20060626121325.GA19314@informatik.uni-freiburg.de> In-Reply-To: <7vr71ci7yt.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Uwe Zeisberger writes: > > > While fixing daemon.c, I saw that there is a call to syslog using %d for > > pid_t, too. I fixed that in the same way without further testing and > > manual reading. I assume that's OK. > > Is anybody using pid_t that is wider than int? IOW, I wonder if > it would make more sense to use "%d" with casting to int. See types(3HEAD) e.g. on http://docs.sun.com/app/docs/doc/816-5173/6mbb8ae36?a=view So it's always as long as int, but it is defined as long... Best regards Uwe -- Uwe Zeisberger http://www.google.com/search?q=gravity+on+earth%3D