This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [COMMIT PATCH] More invalid pointer to pointer conversions.


On 03/13/2013 05:38 PM, Tom Tromey wrote:

> Pedro> -      displacement = strtol (tmp, (char **) &tmp, 10);
> Pedro> +      displacement = strtol (tmp, &endp, 10);
> Pedro> +      tmp = endp;
> 
> I saw this in Keith's patch, too, and I was wondering if we should have
> a strtol_const convenience function.

Yeah, I wondered the same.  I don't mind either way, actually.

( Read, I don't want it enough to add it myself :-) )

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]