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

Pedro Alves
2013-03-13T17:55:26Z

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