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.
This commit is contained in:
Tom Tromey 2014-06-17 11:43:21 -06:00
parent 6d1ace6861
commit 6e366df19d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2014-06-17 Tom Tromey <tromey@redhat.com>
* remote.c (extended_remote_run): Use make_cleanup_freeargv.
2014-06-16 Keith Seitz <keiths@redhat.com>
PR mi/15863

View File

@ -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 ())