Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb Only define db_show_arptab if NARP>1;
details: https://anonhg.NetBSD.org/src/rev/84cdfda24230
branches: trunk
changeset: 487505:84cdfda24230
user: jhawk <jhawk%NetBSD.org@localhost>
date: Thu Jun 08 21:06:46 2000 +0000
description:
Only define db_show_arptab if NARP>1;
pointed out by cgd in kern/10314
diffstat:
sys/ddb/db_command.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r e4c68d56327c -r 84cdfda24230 sys/ddb/db_command.c
--- a/sys/ddb/db_command.c Thu Jun 08 21:02:49 2000 +0000
+++ b/sys/ddb/db_command.c Thu Jun 08 21:06:46 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.45 2000/06/06 05:06:25 jhawk Exp $ */
+/* $NetBSD: db_command.c,v 1.46 2000/06/08 21:06:46 jhawk Exp $ */
/*
* Mach Operating System
@@ -64,6 +64,8 @@
#include <uvm/uvm_extern.h>
#include <uvm/uvm_ddb.h>
+#include "arp.h"
+
/*
* Exported global variables
*/
@@ -442,7 +444,7 @@
struct db_command db_show_cmds[] = {
{ "all", NULL, 0, db_show_all_cmds },
-#ifdef INET
+#if defined(INET) && (NARP > 0)
{ "arptab", db_show_arptab, 0, NULL },
#endif
{ "breaks", db_listbreak_cmd, 0, NULL },
Home |
Main Index |
Thread Index |
Old Index