summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_watch.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-24 14:13:42 +0000
committerbde <bde@FreeBSD.org>1995-11-24 14:13:42 +0000
commited3ff9247ca7a0b2d76d22401a54a3e82ce0f2e9 (patch)
treef5a995a3d9175676e570f12a2bcb1bad0e1b976b /sys/ddb/db_watch.c
parentc14aa7ae4820b9e50a391cdb2e5ed91d81933ccd (diff)
downloadFreeBSD-src-ed3ff9247ca7a0b2d76d22401a54a3e82ce0f2e9.zip
FreeBSD-src-ed3ff9247ca7a0b2d76d22401a54a3e82ce0f2e9.tar.gz
Completed function declarations and/or added prototypes and/or #includes
to get the prototypes. Changed some `int's to `boolean_t's. boolean_t's are ints so they are hard to distinguish from ints. Converted function headers to old-style. ddb is written in K&R1 C except where we broke it.
Diffstat (limited to 'sys/ddb/db_watch.c')
-rw-r--r--sys/ddb/db_watch.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c
index b74fab9..ae1f425 100644
--- a/sys/ddb/db_watch.c
+++ b/sys/ddb/db_watch.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_watch.c,v 1.5 1994/08/18 22:34:28 wollman Exp $
+ * $Id: db_watch.c,v 1.6 1995/05/30 07:57:20 rgrimes Exp $
*/
/*
@@ -54,6 +54,9 @@ db_watchpoint_t db_next_free_watchpoint = &db_watch_table[0];
db_watchpoint_t db_free_watchpoints = 0;
db_watchpoint_t db_watchpoint_list = 0;
+extern db_watchpoint_t db_watchpoint_alloc __P((void));
+extern void db_watchpoint_free __P((db_watchpoint_t watch));
+
db_watchpoint_t
db_watchpoint_alloc()
{
@@ -171,7 +174,7 @@ db_list_watchpoints()
void
db_deletewatch_cmd(addr, have_addr, count, modif)
db_expr_t addr;
- int have_addr;
+ boolean_t have_addr;
db_expr_t count;
char * modif;
{
@@ -183,7 +186,7 @@ db_deletewatch_cmd(addr, have_addr, count, modif)
void
db_watchpoint_cmd(addr, have_addr, count, modif)
db_expr_t addr;
- int have_addr;
+ boolean_t have_addr;
db_expr_t count;
char * modif;
{
@@ -201,7 +204,11 @@ db_watchpoint_cmd(addr, have_addr, count, modif)
/* list watchpoints */
void
-db_listwatch_cmd(db_expr_t dummy1, int dummy2, db_expr_t dummy3, char *dummmy4)
+db_listwatch_cmd(dummy1, dummy2, dummy3, dummy4)
+ db_expr_t dummy1;
+ boolean_t dummy2;
+ db_expr_t dummy3;
+ char * dummy4;
{
db_list_watchpoints();
}
OpenPOWER on IntegriCloud