summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-14 11:29:42 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-15 02:18:46 +0100
commit0cdc83f310f1275c3f11194dadcd3b56641beeba (patch)
tree01f05d679732eb54d1eabc443f3891cf4c13adbe
parent02755a6b57e24d381563c48f382a646a4be007ae (diff)
i386/i386/db_trace.c: qualify constants with const
* i386/i386/db_trace.c: Qualify constants with const.
-rw-r--r--i386/i386/db_trace.c22
1 files changed, 11 insertions, 11 deletions
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 <machine/setjmp.h>