mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
Cleanup cleanups - delete use of make_cleanup_func as cast.
This commit is contained in:
@ -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 '-'. */
|
||||
|
Reference in New Issue
Block a user