summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-03-21 00:41:20 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-03-21 00:41:20 +0000
commit8b96fe16654db0860265c3631fa8bd6d2e14389b (patch)
treef3ba97f32cae9c5b88d53516a5bab59ffc07f2d3
parent6da2d78cf989833472f76d53bdf84ef2d7fe5309 (diff)
Make ddb variables long (for 64bit archs). from netbsd
-rw-r--r--sys/ddb/db_variables.c12
-rw-r--r--sys/ddb/db_variables.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/ddb/db_variables.c b/sys/ddb/db_variables.c
index f7e96b2d11b..c2b517d61d0 100644
--- a/sys/ddb/db_variables.c
+++ b/sys/ddb/db_variables.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_variables.c,v 1.5 1996/04/21 22:19:18 deraadt Exp $ */
+/* $OpenBSD: db_variables.c,v 1.6 1997/03/21 00:41:17 niklas Exp $ */
/* $NetBSD: db_variables.c,v 1.8 1996/02/05 01:57:19 christos Exp $ */
/*
@@ -40,11 +40,11 @@
#include <ddb/db_var.h>
struct db_variable db_vars[] = {
- { "radix", &db_radix, FCN_NULL },
- { "maxoff", (int *)&db_maxoff, FCN_NULL },
- { "maxwidth", &db_max_width, FCN_NULL },
- { "tabstops", &db_tab_stop_width, FCN_NULL },
- { "lines", &db_max_line, FCN_NULL },
+ { "radix", (long *)&db_radix, FCN_NULL },
+ { "maxoff", (long *)&db_maxoff, FCN_NULL },
+ { "maxwidth", (long *)&db_max_width, FCN_NULL },
+ { "tabstops", (long *)&db_tab_stop_width, FCN_NULL },
+ { "lines", (long *)&db_max_line, FCN_NULL },
};
struct db_variable *db_evars = db_vars + sizeof(db_vars)/sizeof(db_vars[0]);
diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h
index 830451c82d6..1d17e202eca 100644
--- a/sys/ddb/db_variables.h
+++ b/sys/ddb/db_variables.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_variables.h,v 1.4 1996/04/21 22:19:19 deraadt Exp $ */
+/* $OpenBSD: db_variables.h,v 1.5 1997/03/21 00:41:19 niklas Exp $ */
/* $NetBSD: db_variables.h,v 1.5 1996/02/05 01:57:21 christos Exp $ */
/*
@@ -38,7 +38,7 @@
*/
struct db_variable {
char *name; /* Name of variable */
- int *valuep; /* value of variable */
+ long *valuep; /* value of variable */
/* function to call when reading/writing */
int (*fcn) __P((struct db_variable *, db_expr_t *, int));
#define DB_VAR_GET 0