[PATCH] newlib/libc/stdlib/realloc.c: fix variable name
Corinna Vinschen
vinschen@redhat.com
Tue Nov 14 11:47:00 GMT 2017
On Nov 14 09:01, Florian Schmidt wrote:
> The variable doesn't follow the convention of having the same name as
> the function it's bundled with. Furthermore, it clashes with the
> variable of the same name in newlib/libc/stdlib/calloc.c.
>
> Signed-off-by: Florian Schmidt <florian.schmidt@neclab.eu>
> ---
> newlib/libc/stdlib/realloc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/newlib/libc/stdlib/realloc.c b/newlib/libc/stdlib/realloc.c
> index 2caa6e4d2..0cdbdb619 100644
> --- a/newlib/libc/stdlib/realloc.c
> +++ b/newlib/libc/stdlib/realloc.c
> @@ -1,5 +1,5 @@
> #ifdef MALLOC_PROVIDED
> -int _dummy_calloc = 1;
> +int _dummy_realloc = 1;
> #else
> /* realloc.c -- a wrapper for realloc_r. */
>
> --
> 2.15.0
Pushed.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20171114/cca35859/attachment.sig>
More information about the Newlib
mailing list