summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-20 13:53:53 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-20 21:50:44 +0100
commit300555b73ca5ae1f2508e2cbb1e5c4e83209d2fa (patch)
treeea755819c015978e46d673574f0bb88a386aa021
parent774d5d3c92fd44b89a00a064f4ff460609a0e177 (diff)
ddb/db_variables.c: fix initializations from incompatible pointer type
* ddb/db_variables.c (db_set_default_thread, db_get_task_thread, db_arg_variable, fcn): Declare long return type.
-rw-r--r--ddb/db_variables.c8
1 files 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) {