Re: [PATCH] cast pid_t to long for printing
- From
Junio C Hamano <junkio@cox.net>
- Date
- Jun 26, 2006, 09:26 UTC
- Message-ID
- <7vr71ci7yt.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060626082606.GC3646@informatik.uni-freiburg.de>
Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de> 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.