From 1f8b8e34117643ba2996aec26f537cbf9809d24c Mon Sep 17 00:00:00 2001 From: thorpej Date: Sun, 10 Nov 2002 03:24:51 +0000 Subject: [PATCH] Avoid a GCC 3.3 strict alias warning. --- sys/ddb/db_variables.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/sys/ddb/db_variables.c b/sys/ddb/db_variables.c index 4ccf96e57f3d..66cd59169d21 100644 --- a/sys/ddb/db_variables.c +++ b/sys/ddb/db_variables.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_variables.c,v 1.25 2002/11/04 06:24:41 itohy Exp $ */ +/* $NetBSD: db_variables.c,v 1.26 2002/11/10 03:24:51 thorpej Exp $ */ /* * Mach Operating System @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: db_variables.c,v 1.25 2002/11/04 06:24:41 itohy Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_variables.c,v 1.26 2002/11/10 03:24:51 thorpej Exp $"); #include "opt_ddbparam.h" @@ -71,13 +71,13 @@ static int db_find_variable(const struct db_variable **); /* XXX must all be ints for sysctl. */ const struct db_variable db_vars[] = { - { "radix", (long *)&db_radix, db_rw_internal_variable }, - { "maxoff", (long *)&db_maxoff, db_rw_internal_variable }, - { "maxwidth", (long *)&db_max_width, db_rw_internal_variable }, - { "tabstops", (long *)&db_tab_stop_width, db_rw_internal_variable }, - { "lines", (long *)&db_max_line, db_rw_internal_variable }, - { "onpanic", (long *)&db_onpanic, db_rw_internal_variable }, - { "fromconsole", (long *)&db_fromconsole, db_rw_internal_variable }, + { "radix", (void *)&db_radix, db_rw_internal_variable }, + { "maxoff", (void *)&db_maxoff, db_rw_internal_variable }, + { "maxwidth", (void *)&db_max_width, db_rw_internal_variable }, + { "tabstops", (void *)&db_tab_stop_width, db_rw_internal_variable }, + { "lines", (void *)&db_max_line, db_rw_internal_variable }, + { "onpanic", (void *)&db_onpanic, db_rw_internal_variable }, + { "fromconsole", (void *)&db_fromconsole, db_rw_internal_variable }, }; const struct db_variable * const db_evars = db_vars + sizeof(db_vars)/sizeof(db_vars[0]);