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 f9c8148..5e1e43f 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 80271fd..8678114 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);