diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2014-12-03 08:56:10 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2014-12-03 08:56:10 -0500 |
commit | 75783939d7bd00c4e0086e5b7e536fb88f4e9d27 (patch) | |
tree | e6eaa6e7064ef3c53f80f8c51bef7c7648d82350 | |
parent | 2d7bb7580ac174127f8ae127ebc4156a91035fc0 (diff) | |
download | fsf-binutils-gdb-75783939d7bd00c4e0086e5b7e536fb88f4e9d27.zip fsf-binutils-gdb-75783939d7bd00c4e0086e5b7e536fb88f4e9d27.tar.gz fsf-binutils-gdb-75783939d7bd00c4e0086e5b7e536fb88f4e9d27.tar.bz2 |
Fix make_cleanup_dtor signature to match declaration
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/common/cleanups.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f9c8148..5e1e43f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-12-03 Simon Marchi <simon.marchi@ericsson.com> + + * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor + type. + 2014-12-02 Doug Evans <dje@google.com> * symtab.c (symbol_init_cplus_specific): Delete. 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); |