-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:
Pedro Alves
2017-04-05 19:21:37 +01:00
parent 3e83a92009
commit 995816ba55
8 changed files with 37 additions and 24 deletions

View File

@ -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