From: Simon Marchi <simon.marchi@ericsson.com>
To: <gdb-patches@sourceware.org>
Cc: Simon Marchi <simon.marchi@ericsson.com>
Subject: [PATCH] Fix make_cleanup_dtor signature to match declaration
Date: Tue, 02 Dec 2014 22:32:00 -0000 [thread overview]
Message-ID: <1417559541-32531-1-git-send-email-simon.marchi@ericsson.com> (raw)
The definition does not use the typedef for the dtor function pointer
type that the declaration uses. It's a cosmetic-only change.
ChangeLog:
* common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
type.
---
gdb/common/cleanups.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/common/cleanups.c b/gdb/common/cleanups.c
index 80271fd..8678114 100644
--- a/gdb/common/cleanups.c
+++ b/gdb/common/cleanups.c
@@ -124,7 +124,7 @@ make_cleanup (make_cleanup_ftype *function, void *arg)
struct cleanup *
make_cleanup_dtor (make_cleanup_ftype *function, void *arg,
- void (*dtor) (void *))
+ make_cleanup_dtor_ftype *dtor)
{
return make_my_cleanup2 (&cleanup_chain,
function, arg, dtor);
--
2.1.3
next reply other threads:[~2014-12-02 22:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 22:32 Simon Marchi [this message]
2014-12-03 3:56 ` Joel Brobecker
2014-12-03 13:57 ` Simon Marchi
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=1417559541-32531-1-git-send-email-simon.marchi@ericsson.com \
--to=simon.marchi@ericsson.com \
--cc=gdb-patches@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