From 53936f327d757f8a0cae10c720c97433e39272d9 Mon Sep 17 00:00:00 2001 From: niklas Date: Fri, 21 Mar 1997 00:41:17 +0000 Subject: [PATCH] Make ddb variables long (for 64bit archs). from netbsd --- sys/ddb/db_variables.c | 12 ++++++------ sys/ddb/db_variables.h | 4 ++-- 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 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 -- 2.20.1