[COMMIT PATCH] More invalid pointer to pointer conversions.

Pedro Alves palves@redhat.com
Wed Mar 13 17:55:00 GMT 2013


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



More information about the Gdb-patches mailing list