Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb fix extern/static inconsistency
details: https://anonhg.NetBSD.org/src/rev/f59dfd4b3254
branches: trunk
changeset: 757683:f59dfd4b3254
user: drochner <drochner%NetBSD.org@localhost>
date: Mon Sep 13 08:42:04 2010 +0000
description:
fix extern/static inconsistency
diffstat:
sys/ddb/db_command.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (40 lines):
diff -r 6925c77594bd -r f59dfd4b3254 sys/ddb/db_command.c
--- a/sys/ddb/db_command.c Sun Sep 12 16:07:40 2010 +0000
+++ b/sys/ddb/db_command.c Mon Sep 13 08:42:04 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.133 2009/07/19 02:37:33 rmind Exp $ */
+/* $NetBSD: db_command.c,v 1.134 2010/09/13 08:42:04 drochner Exp $ */
/*
* Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.133 2009/07/19 02:37:33 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.134 2010/09/13 08:42:04 drochner Exp $");
#ifdef _KERNEL_OPT
#include "opt_aio.h"
@@ -133,7 +133,8 @@
static const struct db_command db_show_cmds[];
#ifdef DB_MACHINE_COMMANDS
-static const struct db_command db_machine_command_table[];
+/* arch/<arch>/<arch>/db_interface.c */
+extern const struct db_command db_machine_command_table[];
#endif
/* the global queue of all command tables */
@@ -291,11 +292,6 @@
{ DDB_ADD_CMD(NULL, NULL, 0,NULL,NULL,NULL) }
};
-/* arch/<arch>/<arch>/db_interface.c */
-#ifdef DB_MACHINE_COMMANDS
-extern const struct db_command db_machine_command_table[];
-#endif
-
static const struct db_command db_command_table[] = {
{ DDB_ADD_CMD("b", db_breakpoint_cmd, 0,
"Set a breakpoint at address", "[/u] address[,count].",NULL) },
Home |
Main Index |
Thread Index |
Old Index