mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
-Wwrite-strings: More Solaris
Some obvious constifications found by attempting to build 64-bit GDB on Solaris 11. gdb/ChangeLog: 2017-04-05 Pedro Alves <palves@redhat.com> * proc-api.c (struct trans): Constify. (procfs_note): Constify. * proc-events.c (struct trans, syscall_table): * proc-flags.c (struct trans): Constify. * proc-utils.h (procfs_note): Constify. * proc-why.c (struct trans): Constify. * procfs.c (dead_procinfo, find_syscall, proc_warn, proc_error) (procfs_detach): Constify. * sol-thread.c (struct string_map): Constify. (td_err_string, td_state_string): Constify.
This commit is contained in:
@ -38,8 +38,8 @@
|
||||
struct trans
|
||||
{
|
||||
int value; /* The numeric value. */
|
||||
char *name; /* The equivalent symbolic value. */
|
||||
char *desc; /* Short description of value. */
|
||||
const char *name; /* The equivalent symbolic value. */
|
||||
const char *desc; /* Short description of value. */
|
||||
};
|
||||
|
||||
/* Translate values in the pr_why field of a `struct prstatus' or
|
||||
|
Reference in New Issue
Block a user