* cli/cli-setshow.c (do_setshow_command): Partially revert previous
change. Cast to "char **" for var_string.
This commit is contained in:
parent
03f4d4c7dc
commit
3b113db73f
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* cli/cli-setshow.c (do_setshow_command): Partially revert previous
|
||||
change. Cast to "char **" for var_string.
|
||||
|
||||
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* cp-name-parser.y (parse_escape): Revert previous change. Return
|
||||
|
|
|
@ -301,8 +301,8 @@ do_setshow_command (char *arg, int from_tty, struct cmd_list_element *c)
|
|||
switch (c->var_type)
|
||||
{
|
||||
case var_string:
|
||||
if (((char *)c->var)[0] != '\0')
|
||||
fputstr_filtered ((char *)c->var, '"', stb->stream);
|
||||
if (*(char **) c->var)
|
||||
fputstr_filtered (*(char **) c->var, '"', stb->stream);
|
||||
break;
|
||||
case var_string_noescape:
|
||||
case var_optional_filename:
|
||||
|
|
Loading…
Reference in a new issue