mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
stap-probe: Remove unnecessary cast
ret->args_u.text is const char *, probe_args is const char *, so no cast is needed. Found while doing cxx-conversion stuff, since it wouldn't build in C++. gdb/ChangeLog: * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
This commit is contained in:
parent
5fe2850dd9
commit
bc1f8cdaf4
@ -1,3 +1,7 @@
|
||||
2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* stap-probe.c (handle_stap_probe): Remove unnecessary cast.
|
||||
|
||||
2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* cli/cli-setshow.c (cmd_show_list): Constify a variable.
|
||||
|
@ -1538,7 +1538,7 @@ handle_stap_probe (struct objfile *objfile, struct sdt_note *el,
|
||||
}
|
||||
|
||||
ret->args_parsed = 0;
|
||||
ret->args_u.text = (void *) probe_args;
|
||||
ret->args_u.text = probe_args;
|
||||
|
||||
/* Successfully created probe. */
|
||||
VEC_safe_push (probe_p, *probesp, (struct probe *) ret);
|
||||
|
Loading…
Reference in New Issue
Block a user