[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 11/19] ddb/db_variables.c: fix initializations from incompatible
From: |
Marin Ramesa |
Subject: |
[PATCH 11/19] ddb/db_variables.c: fix initializations from incompatible pointer type |
Date: |
Wed, 20 Nov 2013 13:53:53 +0100 |
* ddb/db_variables.c (db_set_default_thread, db_get_task_thread,
db_arg_variable, fcn): Declare long return type.
---
ddb/db_variables.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ddb/db_variables.c b/ddb/db_variables.c
index 54fc06c..3a12e4a 100644
--- a/ddb/db_variables.c
+++ b/ddb/db_variables.c
@@ -46,9 +46,9 @@ extern db_expr_t db_radix;
extern db_expr_t db_max_width;
extern db_expr_t db_tab_stop_width;
extern db_expr_t db_max_line;
-extern int db_set_default_thread();
-extern int db_get_task_thread();
-extern int db_arg_variable();
+extern long db_set_default_thread();
+extern long db_get_task_thread();
+extern long db_arg_variable();
#define DB_NWORK 32 /* number of work variable */
@@ -184,7 +184,7 @@ db_read_write_variable(vp, valuep, rw_flag, ap)
int rw_flag;
db_var_aux_param_t ap;
{
- int (*func)() = vp->fcn;
+ long (*func)() = vp->fcn;
struct db_var_aux_param aux_param;
if (ap == 0) {
--
1.8.1.4
- [PATCH 08/19] ddb/db_run.c: trivial stylistic fix for consistency, (continued)
[PATCH 10/19] ddb/db_sym.c: add parentheses around assignment used as truth value, Marin Ramesa, 2013/11/20
[PATCH 11/19] ddb/db_variables.c: fix initializations from incompatible pointer type,
Marin Ramesa <=
[PATCH 12/19] ipc/ipc_print.h: include ipc/ipc_pset.h for ipc_pset_t, Marin Ramesa, 2013/11/20
[PATCH 13/19] kern/startup.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
[PATCH 14/19] kern/xpr.c: quiet warning about uninitialized variable, Marin Ramesa, 2013/11/20
[PATCH 15/19] device/net_io.c: quiet the warning about uninitialized variable, Marin Ramesa, 2013/11/20
[PATCH 16/19] Fix implicit declaration of function, Marin Ramesa, 2013/11/20
[PATCH 17/19] i386/i386at/kd.c: add forward declaration, Marin Ramesa, 2013/11/20