Fix make_cleanup_dtor signature to match declaration
authorSimon Marchi <simon.marchi@ericsson.com>
Wed, 3 Dec 2014 13:56:10 +0000 (08:56 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 3 Dec 2014 13:56:10 +0000 (08:56 -0500)
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/ChangeLog
gdb/common/cleanups.c

index f9c814851e0a3e52bd837bbbfdfe24696c800879..5e1e43f45fd3b93e239edc42d33319fe5e5d9f53 100644 (file)
@@ -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.
index 80271fd8ee37e957588364480441268c9b167391..8678114ba9d7ff7d99c450e418c631e7d4448053 100644 (file)
@@ -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);