diff options
author | Tom Tromey <tom@tromey.com> | 2018-09-05 00:00:31 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-09-05 09:23:22 -0600 |
commit | 081bca4d622143b229cf02a1dda4afb9b457eefa (patch) | |
tree | e2060d9593f7fb125f5dfda8de467a9c42905c60 /gdb/cli | |
parent | e4a62c65fa8fe6a48b6ff564f45c1ac535f10f14 (diff) | |
download | fsf-binutils-gdb-081bca4d622143b229cf02a1dda4afb9b457eefa.zip fsf-binutils-gdb-081bca4d622143b229cf02a1dda4afb9b457eefa.tar.gz fsf-binutils-gdb-081bca4d622143b229cf02a1dda4afb9b457eefa.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 4694553..c60e5ef 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -730,7 +730,7 @@ shell_escape (const char *arg, int from_tty) close_most_fds (); - if ((user_shell = (char *) getenv ("SHELL")) == NULL) + if ((user_shell = getenv ("SHELL")) == NULL) user_shell = "/bin/sh"; /* 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); } - if ((editor = (char *) getenv ("EDITOR")) == NULL) - editor = "/bin/ex"; + if ((editor = getenv ("EDITOR")) == NULL) + editor = "/bin/ex"; fn = symtab_to_fullname (sal.symtab); |