mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
More constification, mostly of struct dfmt
Make struct dfmt and the struct dfmt arrays const across the board, and make them static whereever possible. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
This commit is contained in:
@@ -77,7 +77,7 @@ void null_debug_cleanup(void)
|
||||
{
|
||||
}
|
||||
|
||||
struct dfmt null_debug_form = {
|
||||
const struct dfmt null_debug_form = {
|
||||
"Null debug format",
|
||||
"null",
|
||||
null_debug_init,
|
||||
@@ -89,4 +89,4 @@ struct dfmt null_debug_form = {
|
||||
null_debug_cleanup
|
||||
};
|
||||
|
||||
struct dfmt *null_debug_arr[2] = { &null_debug_form, NULL };
|
||||
const struct dfmt * const null_debug_arr[2] = { &null_debug_form, NULL };
|
||||
|
Reference in New Issue
Block a user