summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_examine.c2
-rw-r--r--ddb/db_macro.c2
-rw-r--r--ddb/db_macro.h2
-rw-r--r--ddb/db_sym.c2
-rw-r--r--ddb/db_task_thread.c4
-rw-r--r--ddb/db_variables.h4
6 files changed, 8 insertions, 8 deletions
diff --git a/ddb/db_examine.c b/ddb/db_examine.c
index 2df261f..96c5eee 100644
--- a/ddb/db_examine.c
+++ b/ddb/db_examine.c
@@ -480,7 +480,7 @@ db_xcdump(addr, size, count, task)
if (!DB_CHECK_ACCESS(next_page_addr, sizeof(int), task))
bcount = next_page_addr - addr;
}
- db_read_bytes((char *)addr, bcount, data, task);
+ db_read_bytes(addr, bcount, data, task);
for (i = 0; i < bcount && off != 0; i += size) {
if (i % 4 == 0)
db_printf(" ");
diff --git a/ddb/db_macro.c b/ddb/db_macro.c
index e372c23..43bb583 100644
--- a/ddb/db_macro.c
+++ b/ddb/db_macro.c
@@ -165,7 +165,7 @@ db_exec_macro(name)
return(0);
}
-int
+long
/* ARGSUSED */
db_arg_variable(vp, valuep, flag, ap)
struct db_variable *vp;
diff --git a/ddb/db_macro.h b/ddb/db_macro.h
index 12ed16e..da5626f 100644
--- a/ddb/db_macro.h
+++ b/ddb/db_macro.h
@@ -32,7 +32,7 @@ extern void db_show_macro (void);
extern int db_exec_macro (char *name);
-extern int db_arg_variable (
+extern long db_arg_variable (
struct db_variable *vp,
db_expr_t *valuep,
int flag,
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index dd72138..5c5f700 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -445,7 +445,7 @@ db_symbol_values(stab, sym, namep, valuep)
* not accept symbols whose value is zero (and use plain hex).
*/
-unsigned int db_maxoff = 0x4000;
+unsigned long db_maxoff = 0x4000;
void
db_task_printsym(off, strategy, task)
diff --git a/ddb/db_task_thread.c b/ddb/db_task_thread.c
index 3762942..1146223 100644
--- a/ddb/db_task_thread.c
+++ b/ddb/db_task_thread.c
@@ -245,7 +245,7 @@ db_init_default_thread(void)
* in the command line
*/
/* ARGSUSED */
-int
+long
db_set_default_thread(vp, valuep, flag)
struct db_variable *vp;
db_expr_t *valuep;
@@ -270,7 +270,7 @@ db_set_default_thread(vp, valuep, flag)
/*
* convert $taskXXX[.YYY] type DDB variable to task or thread address
*/
-int
+long
db_get_task_thread(vp, valuep, flag, ap)
struct db_variable *vp;
db_expr_t *valuep;
diff --git a/ddb/db_variables.h b/ddb/db_variables.h
index c01a5e2..5249d18 100644
--- a/ddb/db_variables.h
+++ b/ddb/db_variables.h
@@ -42,7 +42,7 @@ struct db_variable {
char *name; /* Name of variable */
db_expr_t *valuep; /* pointer to value of variable */
/* function to call when reading/writing */
- int (*fcn)(struct db_variable *, db_expr_t *, int, db_var_aux_param_t);
+ long (*fcn)(struct db_variable *, db_expr_t *, int, db_var_aux_param_t);
short min_level; /* number of minimum suffix levels */
short max_level; /* number of maximum suffix levels */
short low; /* low value of level 1 suffix */
@@ -50,7 +50,7 @@ struct db_variable {
#define DB_VAR_GET 0
#define DB_VAR_SET 1
};
-#define FCN_NULL ((int (*)())0)
+#define FCN_NULL ((long (*)())0)
#define DB_VAR_LEVEL 3 /* maximum number of suffix level */