summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
committerbde <bde@FreeBSD.org>1995-03-16 18:17:34 +0000
commit289f11acb49b6dbb3081e09bf94a86f008f55814 (patch)
treee4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/ddb/db_command.c
parent4c4945abee9eabe3a2be340ba973ae861c21a3c6 (diff)
downloadFreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.zip
FreeBSD-src-289f11acb49b6dbb3081e09bf94a86f008f55814.tar.gz
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 9cc2dbf..4aded1d 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_command.c,v 1.9 1995/02/05 21:09:04 phk Exp $
+ * $Id: db_command.c,v 1.10 1995/03/05 22:56:21 joerg Exp $
*/
/*
@@ -62,6 +62,9 @@ db_addr_t db_next;
boolean_t db_ed_style = TRUE;
+void db_help_cmd __P((void));
+void db_fncall __P((void));
+
/*
* Utility routine - discard tokens through end-of-line.
*/
@@ -182,7 +185,6 @@ db_command(last_cmdp, cmd_table)
modif[0] = '\0';
}
else if (t == tEXCL) {
- void db_fncall();
db_fncall();
return;
}
@@ -308,7 +310,9 @@ extern void db_show_one_thread(), db_show_all_threads();
extern void vm_page_print();
extern void db_ps();
extern void ipc_port_print();
+#if 0
void db_show_help();
+#endif
void db_panic();
struct command db_show_all_cmds[] = {
@@ -338,9 +342,6 @@ struct command db_show_cmds[] = {
{ (char *)0, }
};
-void db_help_cmd();
-void db_fncall();
-
struct command db_command_table[] = {
{ "print", db_print_cmd, 0, 0 },
{ "p", db_print_cmd, 0, 0 },
@@ -372,6 +373,7 @@ struct command db_command_table[] = {
struct command *db_last_command = 0;
+#if 0
void
db_help_cmd()
{
@@ -383,6 +385,7 @@ db_help_cmd()
cmd++;
}
}
+#endif
void
db_panic()
OpenPOWER on IntegriCloud