From 3c40d3fc546aed3d1b0f639a1f67b46456e01edb Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Mon, 9 Sep 2019 01:33:45 +0000 Subject: [PATCH] ddb(4): Move an extern variable declaration to a header Trivial cleanup, no functional change. --- sys/ddb/db_command.h | 1 + sys/ddb/db_run.c | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index 6178f6e274ba..2720ba65e3a6 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -49,6 +49,7 @@ void db_command_init(void); void db_command_loop(void); void db_command_script(const char *command); +extern int db_cmd_loop_done; extern db_addr_t db_dot; /* current location */ extern db_addr_t db_last_addr; /* last explicit address typed */ extern db_addr_t db_prev; /* last address examined diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c index bf38a4d2f726..af99eb757609 100644 --- a/sys/ddb/db_run.c +++ b/sys/ddb/db_run.c @@ -48,8 +48,9 @@ __FBSDID("$FreeBSD$"); #include #include -#include #include +#include +#include #define STEP_ONCE 1 #define STEP_RETURN 2 @@ -332,8 +333,6 @@ db_clear_single_step(void) #endif /* SOFTWARE_SSTEP */ -extern int db_cmd_loop_done; - /* single-step */ /*ARGSUSED*/ void