summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_sym.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-08 09:11:43 +0000
committerbde <bde@FreeBSD.org>1998-07-08 09:11:43 +0000
commiteee2789d0f37e2119b09abe680d801623369d60a (patch)
treec3527701fe6aa235bb4b89231ea39671543295ab /sys/ddb/db_sym.c
parentb57b07e56004790a6179ed6ca31ba63d47444a49 (diff)
downloadFreeBSD-src-eee2789d0f37e2119b09abe680d801623369d60a.zip
FreeBSD-src-eee2789d0f37e2119b09abe680d801623369d60a.tar.gz
Fixed bogus type of valuep in struct db_variable. It was `int *' and
became `long *' for alpha, but should always have been `db_expr_t *'. Fixed variable types to match.
Diffstat (limited to 'sys/ddb/db_sym.c')
-rw-r--r--sys/ddb/db_sym.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 4f313e9..3b1dd2e 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_sym.c,v 1.23 1998/06/28 00:55:00 dfr Exp $
+ * $Id: db_sym.c,v 1.24 1998/07/08 06:43:56 bde Exp $
*/
/*
@@ -281,7 +281,7 @@ db_symbol_values(sym, namep, valuep)
* not accept symbols whose value is "small" (and use plain hex).
*/
-unsigned long db_maxoff = 0x10000;
+db_expr_t db_maxoff = 0x10000;
void
db_printsym(off, strategy)
@@ -303,7 +303,7 @@ db_printsym(off, strategy)
db_printf("%+#ln", (long)off);
return;
}
- if (name == 0 || d >= db_maxoff) {
+ if (name == 0 || d >= (unsigned long)db_maxoff) {
db_printf("%#ln", (unsigned long)off);
return;
}
OpenPOWER on IntegriCloud