From 0cdc83f310f1275c3f11194dadcd3b56641beeba Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Thu, 14 Nov 2013 11:29:42 +0100 Subject: i386/i386/db_trace.c: qualify constants with const * i386/i386/db_trace.c: Qualify constants with const. --- i386/i386/db_trace.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'i386') diff --git a/i386/i386/db_trace.c b/i386/i386/db_trace.c index 151d90a..d7e1345 100644 --- a/i386/i386/db_trace.c +++ b/i386/i386/db_trace.c @@ -205,7 +205,7 @@ db_find_trace_symbols(void) /* * Figure out how many arguments were passed into the frame at "fp". */ -int db_numargs_default = 5; +const int db_numargs_default = 5; int db_numargs( @@ -571,18 +571,18 @@ static void db_cproc_state( /* offsets in a cproc structure */ /* TODO: longs? */ -int db_cproc_next_offset = 0 * 4; -int db_cproc_incarnation_offset = 1 * 4; -int db_cproc_list_offset = 2 * 4; -int db_cproc_wait_offset = 3 * 4; -int db_cproc_context_offset = 5 * 4; -int db_cproc_state_offset = 7 * 4; -int db_cproc_stack_base_offset = 10 * 4 + sizeof(mach_msg_header_t); -int db_cproc_stack_size_offset = 11 * 4 + sizeof(mach_msg_header_t); +const int db_cproc_next_offset = 0 * 4; +const int db_cproc_incarnation_offset = 1 * 4; +const int db_cproc_list_offset = 2 * 4; +const int db_cproc_wait_offset = 3 * 4; +const int db_cproc_context_offset = 5 * 4; +const int db_cproc_state_offset = 7 * 4; +const int db_cproc_stack_base_offset = 10 * 4 + sizeof(mach_msg_header_t); +const int db_cproc_stack_size_offset = 11 * 4 + sizeof(mach_msg_header_t); /* offsets in a cproc_switch context structure */ -int db_cprocsw_framep_offset = 3 * 4; -int db_cprocsw_pc_offset = 4 * 4; +const int db_cprocsw_framep_offset = 3 * 4; +const int db_cprocsw_pc_offset = 4 * 4; #include -- cgit v1.2.3