aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-var.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 11:48:50 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 11:48:50 +0000
commit47cf603ed45d09dceda47b6da42a1d88a141ad82 (patch)
treee0123e6c4917f0538ac93cfcc7b89c0c62d83da9 /gdb/mi/mi-cmd-var.c
parent4f0aafb38abea1590b4a720c5ef1516cf25289b4 (diff)
downloadgdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.zip
gdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.tar.gz
gdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.tar.bz2
Cleanup cleanups - delete use of make_cleanup_func as cast.
Diffstat (limited to 'gdb/mi/mi-cmd-var.c')
-rw-r--r--gdb/mi/mi-cmd-var.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index a20f4f1..b2d6aae 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -61,8 +61,7 @@ mi_cmd_var_create (char *command, char **argv, int argc)
name = xstrdup (argv[0]);
/* Add cleanup for name. Must be free_current_contents as
name can be reallocated */
- old_cleanups = make_cleanup ((make_cleanup_func) free_current_contents,
- &name);
+ old_cleanups = make_cleanup (free_current_contents, &name);
frame = xstrdup (argv[1]);
old_cleanups = make_cleanup (free, frame);
@@ -128,8 +127,7 @@ mi_cmd_var_delete (char *command, char **argv, int argc)
name = xstrdup (argv[0]);
/* Add cleanup for name. Must be free_current_contents as
name can be reallocated */
- old_cleanups = make_cleanup ((make_cleanup_func) free_current_contents,
- &name);
+ old_cleanups = make_cleanup (free_current_contents, &name);
/* If we have one single argument it cannot be '-c' or any string
starting with '-'. */