mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Constify nm format array
* nm.c (formats, format): Make const.
This commit is contained in:
parent
0b075f1902
commit
5ee755fabb
@ -141,7 +141,7 @@ enum formats
|
||||
|
||||
#define FORMAT_DEFAULT FORMAT_BSD
|
||||
|
||||
static struct output_fns formats[FORMAT_MAX] =
|
||||
static const struct output_fns formats[FORMAT_MAX] =
|
||||
{
|
||||
{print_object_filename_bsd,
|
||||
print_archive_filename_bsd,
|
||||
@ -167,7 +167,7 @@ static struct output_fns formats[FORMAT_MAX] =
|
||||
|
||||
|
||||
/* The output format to use. */
|
||||
static struct output_fns *format = &formats[FORMAT_DEFAULT];
|
||||
static const struct output_fns *format = &formats[FORMAT_DEFAULT];
|
||||
static unsigned int print_format = FORMAT_DEFAULT;
|
||||
static const char *print_format_string = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user