summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_output.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_output.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_output.c')
-rw-r--r--sys/ddb/db_output.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c
index ca92bfc..a5e6a5b 100644
--- a/sys/ddb/db_output.c
+++ b/sys/ddb/db_output.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_output.c,v 1.10 1994/10/30 20:55:44 bde Exp $
+ * $Id: db_output.c,v 1.11 1995/05/30 07:57:02 rgrimes Exp $
*/
/*
@@ -39,6 +39,7 @@
#include <sys/systm.h>
#include <machine/stdarg.h>
#include <ddb/ddb.h>
+#include <ddb/db_output.h>
#include <machine/cons.h>
/*
@@ -60,8 +61,8 @@ int db_tab_stop_width = 8; /* how wide are tab stops? */
((((i) + db_tab_stop_width) / db_tab_stop_width) * db_tab_stop_width)
int db_max_width = 80; /* output line width */
-
-static void db_printf_guts(const char *, va_list);
+static char *db_ksprintn __P((u_long ul, int base, int *lenp));
+static void db_printf_guts __P((const char *, va_list));
/*
* Force pending whitespace.
@@ -160,7 +161,7 @@ db_printf(const char *fmt, ...)
/*VARARGS1*/
void
-kdbprintf(char *fmt, ...)
+kdbprintf(const char *fmt, ...)
{
va_list listp;
va_start(listp, fmt);
@@ -377,4 +378,3 @@ number: p = (char *)db_ksprintn(ul, base, &tmp);
}
}
}
-
OpenPOWER on IntegriCloud