aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2014-06-17 11:43:21 -0600
committerTom Tromey <tromey@redhat.com>2014-06-17 11:43:21 -0600
commit6e366df19d789254b8e26cc7620218ce98df324f (patch)
tree864da51d52a19a59f6c2e305712708b1b86d3d98 /gdb/remote.c
parent6d1ace6861e999361b30d1bc27459ab8094e0d4a (diff)
downloadgdb-6e366df19d789254b8e26cc7620218ce98df324f.zip
gdb-6e366df19d789254b8e26cc7620218ce98df324f.tar.gz
gdb-6e366df19d789254b8e26cc7620218ce98df324f.tar.bz2
use make_cleanup_freeargv
This replaces a function cast with a call to make_cleanup_freeargv. I'm checking this in as obvious. 2014-06-17 Tom Tromey <tromey@redhat.com> * remote.c (extended_remote_run): Use make_cleanup_freeargv.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 909e9dd..6915dd8 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -7888,7 +7888,7 @@ extended_remote_run (char *args)
char **argv;
argv = gdb_buildargv (args);
- back_to = make_cleanup ((void (*) (void *)) freeargv, argv);
+ back_to = make_cleanup_freeargv (argv);
for (i = 0; argv[i] != NULL; i++)
{
if (strlen (argv[i]) * 2 + 1 + len >= get_remote_packet_size ())