summaryrefslogtreecommitdiff
path: root/ddb/db_print.c
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-12-15 11:48:39 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-15 21:42:30 +0100
commitf885fde0a7177f954893be22efdf8c55c7c40fdb (patch)
tree1052965ca2da8f0e22142205d8fe1bb4de0fd531 /ddb/db_print.c
parent442227ee5519f307e9f74030a9eeb7aa7983a4bc (diff)
ddb: qualify pointers whose dereferenced values are constant with const
Diffstat (limited to 'ddb/db_print.c')
-rw-r--r--ddb/db_print.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ddb/db_print.c b/ddb/db_print.c
index fbc0960..17ca2cc 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -127,8 +127,8 @@ db_show_regs(addr, have_addr, count, modif)
char *
db_thread_stat(thread, status)
- thread_t thread;
- char *status;
+ const thread_t thread;
+ char *status;
{
char *p = status;
@@ -281,7 +281,7 @@ db_show_all_threads(addr, have_addr, count, modif)
db_expr_t addr;
boolean_t have_addr;
db_expr_t count;
- char * modif;
+ const char * modif;
{
task_t task;
int task_id;
@@ -332,7 +332,7 @@ db_show_one_thread(addr, have_addr, count, modif)
db_expr_t addr;
boolean_t have_addr;
db_expr_t count;
- char * modif;
+ const char * modif;
{
int flag;
int thread_id;
@@ -378,7 +378,7 @@ db_show_one_task(addr, have_addr, count, modif)
db_expr_t addr;
boolean_t have_addr;
db_expr_t count;
- char * modif;
+ const char * modif;
{
int flag;
int task_id;
@@ -410,7 +410,7 @@ db_show_one_task(addr, have_addr, count, modif)
int
db_port_iterate(thread, func)
- thread_t thread;
+ const thread_t thread;
void (*func)();
{
ipc_entry_t entry;
@@ -452,7 +452,7 @@ db_lookup_port(thread, id)
static void
db_print_port_id(id, port, bits, n)
int id;
- ipc_port_t port;
+ const ipc_port_t port;
unsigned bits;
int n;
{
@@ -466,7 +466,7 @@ db_print_port_id(id, port, bits, n)
static void
db_print_port_id_long(
int id,
- ipc_port_t port,
+ const ipc_port_t port,
unsigned bits,
int n)
{
@@ -484,7 +484,7 @@ db_show_port_id(addr, have_addr, count, modif)
db_expr_t addr;
boolean_t have_addr;
db_expr_t count;
- char * modif;
+ const char * modif;
{
thread_t thread;