Re: [PATCH] cast pid_t to long for printing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano wrote:
> Uwe Zeisberger <zeisberg@xxxxxxxxxxxxxxxxxxxxxxxxxx> 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
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]