public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] newlib/libc/stdlib/realloc.c: fix variable name
Date: Tue, 14 Nov 2017 09:18:00 -0000	[thread overview]
Message-ID: <20171114091843.40870.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9cf0c4a012b214504e19fb92b23d5f0f3c9da097

commit 9cf0c4a012b214504e19fb92b23d5f0f3c9da097
Author: Florian Schmidt <florian.schmidt@neclab.eu>
Date:   Tue Nov 14 09:01:14 2017 +0100

    newlib/libc/stdlib/realloc.c: fix variable name
    
    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>

Diff:
---
 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 2caa6e4..0cdbdb6 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.  */


                 reply	other threads:[~2017-11-14  9:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171114091843.40870.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).