[PATCH] libctf: eschew %zi format specifier

Nick Alcock nick.alcock@oracle.com
Thu Jun 6 11:55:00 GMT 2019


On 5 Jun 2019, Tom Tromey stated:

>>>>>> "Nick" == Nick Alcock <nick.alcock@oracle.com> writes:
>
> Nick> No strndup()?! Can't we even rely on POSIX.1-2001? It's old enough to
> Nick> vote! (I guess I'll have to AC_LIBOBJ a replacement in.)
>
> libiberty has xstrndup.  Maybe there's a reason libctf can't use
> libiberty?

It is using it already (for the hashtab, for starters), and I forgot
that xstrndup existed. That makes things *much* simpler.

I'll submit a patch to switch to that shortly, as well as fixing the
other warnings you noted. :)

-- 
NULL && (void)



More information about the Binutils mailing list