summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/xfs
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-12-13 22:42:02 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-12-13 22:42:02 +0000
commitc406300bc4af4b7dd72103fcf7ff720a44645a42 (patch)
tree76116778b04f51d1069ef9d17cde3ca7b24d880f /sys/gnu/fs/xfs
parentbf3fd57aacb373f454260cfbfde973fa0f133b72 (diff)
downloadFreeBSD-src-c406300bc4af4b7dd72103fcf7ff720a44645a42.zip
FreeBSD-src-c406300bc4af4b7dd72103fcf7ff720a44645a42.tar.gz
Hide DDB-specific functions inside check for #ifdef DDB.
Noticed by: des
Diffstat (limited to 'sys/gnu/fs/xfs')
-rw-r--r--sys/gnu/fs/xfs/FreeBSD/support/kdb.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/gnu/fs/xfs/FreeBSD/support/kdb.c b/sys/gnu/fs/xfs/FreeBSD/support/kdb.c
index 2d3aac6..8aa57ba 100644
--- a/sys/gnu/fs/xfs/FreeBSD/support/kdb.c
+++ b/sys/gnu/fs/xfs/FreeBSD/support/kdb.c
@@ -7,17 +7,16 @@
#include "opt_ddb.h"
#ifdef DDB
#include <ddb/ddb.h>
-#else
-#error "Must have options for KDB, DDB in kernel config"
#endif
#include <support/kdb.h>
+#ifdef DDB
DB_SET(xfs, xfs_ddb_cmd, db_cmd_set, CS_MORE, NULL)
{
db_error("No commands registered.\n");
}
-
+#endif
int
kdb_register(char *cmd, kdb_func_t func, char *usage, char *help, short minlen)
OpenPOWER on IntegriCloud