[PATCH] readline/util.c: use '%d' instead of 'ld' to avoid compiling warning

Chen Gang gang.chen.5i5j@gmail.com
Fri May 30 02:28:00 GMT 2014



On 05/30/2014 10:22 AM, Alan Modra wrote:
> On Fri, May 30, 2014 at 11:45:07AM +0930, Alan Modra wrote:
>> On Fri, May 30, 2014 at 08:11:41AM +0800, Chen Gang wrote:
>>> getpid() will return 'pid_t' which is always 'int', so need use '%d'
>>> instead of '%ld' in sprintf().
>>
>> Please do not copy many lists and/or maintainers.  This patch should
>> have gone just to gdb-patches@sourceware.org, since readline belongs
>> to the gdb project.
> 
> Oops, maybe *I* should have read readline/README before sending my
> email.  readline/README tells you the correct mailing list!
> 

OK, thanks.

And excuse me, originally, I did not know that readline only belongs to gdb.


Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed



More information about the Binutils mailing list