mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
Remove unnecessary casts from cli-cmds.c
I noticed a couple of unnecessary casts in cli-cmds.c. This patch removes them. Tested by rebuilding. I'm checking this in. gdb/ChangeLog 2018-09-05 Tom Tromey <tom@tromey.com> * cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2018-09-05 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* cli/cli-cmds.c (shell_escape, edit_command): Remove cast.
|
||||||
|
|
||||||
2018-09-05 Tom de Vries <tdevries@suse.de>
|
2018-09-05 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
* dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
|
* dwarf2loc.c (sect_variable_value): Call indirect_synthetic_pointer
|
||||||
|
@ -730,7 +730,7 @@ shell_escape (const char *arg, int from_tty)
|
|||||||
|
|
||||||
close_most_fds ();
|
close_most_fds ();
|
||||||
|
|
||||||
if ((user_shell = (char *) getenv ("SHELL")) == NULL)
|
if ((user_shell = getenv ("SHELL")) == NULL)
|
||||||
user_shell = "/bin/sh";
|
user_shell = "/bin/sh";
|
||||||
|
|
||||||
/* Get the name of the shell for arg0. */
|
/* Get the name of the shell for arg0. */
|
||||||
@ -850,8 +850,8 @@ edit_command (const char *arg, int from_tty)
|
|||||||
error (_("No line number known for %s."), arg);
|
error (_("No line number known for %s."), arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((editor = (char *) getenv ("EDITOR")) == NULL)
|
if ((editor = getenv ("EDITOR")) == NULL)
|
||||||
editor = "/bin/ex";
|
editor = "/bin/ex";
|
||||||
|
|
||||||
fn = symtab_to_fullname (sal.symtab);
|
fn = symtab_to_fullname (sal.symtab);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user