diff options
author | Pedro Alves <palves@redhat.com> | 2017-04-05 19:21:37 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-04-05 19:21:37 +0100 |
commit | 995816ba55d952b2823d2ead66495c5cad6dfe58 (patch) | |
tree | d2d9a758f0156e7589f4f6be87a483e8fe3cd6f4 /gdb/proc-api.c | |
parent | 3e83a920090130052a407621b94b94513f539fda (diff) | |
download | gdb-995816ba55d952b2823d2ead66495c5cad6dfe58.zip gdb-995816ba55d952b2823d2ead66495c5cad6dfe58.tar.gz gdb-995816ba55d952b2823d2ead66495c5cad6dfe58.tar.bz2 |
-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.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r-- | gdb/proc-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c index dbadd55..dd9af0d 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -54,8 +54,8 @@ struct trans { long 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 */ }; static int procfs_trace = 0; @@ -733,7 +733,7 @@ wait_with_trace (int *wstat, char *file, int line) } void -procfs_note (char *msg, char *file, int line) +procfs_note (const char *msg, const char *file, int line) { prepare_to_trace (); if (procfs_trace) |