diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-05-08 04:29:08 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-05-08 04:29:08 +0000 |
commit | c79cc630ede15ddb8641deef1f5256d6296ae31b (patch) | |
tree | 273ffb1ff648a1d501fa53a37f56803c19399e9f /sys/ddb | |
parent | 9f795376b3921c04e5abe4bc29b1905e78ae2db2 (diff) | |
download | FreeBSD-src-c79cc630ede15ddb8641deef1f5256d6296ae31b.zip FreeBSD-src-c79cc630ede15ddb8641deef1f5256d6296ae31b.tar.gz |
Clean up various compiler warnings. Most (if not all) were benign
Reviewed by: bde
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_input.c | 4 | ||||
-rw-r--r-- | sys/ddb/db_output.c | 9 | ||||
-rw-r--r-- | sys/ddb/ddb.h | 3 |
3 files changed, 9 insertions, 7 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index 16c1467..f71ed8a 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -23,7 +23,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_input.c,v 1.11 1995/12/10 13:32:37 phk Exp $ + * $Id: db_input.c,v 1.12 1995/12/10 19:07:59 bde Exp $ */ /* @@ -221,7 +221,7 @@ db_readline(lstart, lsize) while (!db_inputchar(cngetc())) continue; - db_putchar('\n'); /* synch output position */ + db_printf("\n"); /* synch output position */ *db_le = 0; return (db_le - db_lbuf_start); diff --git a/sys/ddb/db_output.c b/sys/ddb/db_output.c index dec12eb..fd12dd8 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.16 1996/01/15 22:39:35 phk Exp $ + * $Id: db_output.c,v 1.17 1996/01/23 21:17:59 phk Exp $ */ /* @@ -63,6 +63,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_putchar __P((int c, void *arg)); + /* * Force pending whitespace. */ @@ -91,9 +93,10 @@ db_force_whitespace() /* * Output character. Buffer whitespace. */ -void -db_putchar(c) +static void +db_putchar(c, arg) int c; /* character to output */ + void * arg; { if (c > ' ' && c <= '~') { /* diff --git a/sys/ddb/ddb.h b/sys/ddb/ddb.h index c231ac4..9ebb68c 100644 --- a/sys/ddb/ddb.h +++ b/sys/ddb/ddb.h @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ddb.h,v 1.9 1995/12/07 12:45:08 davidg Exp $ + * $Id: ddb.h,v 1.10 1995/12/10 13:32:43 phk Exp $ */ /* @@ -73,7 +73,6 @@ boolean_t db_map_current __P((struct vm_map *)); boolean_t db_map_equal __P((struct vm_map *, struct vm_map *)); void db_print_loc_and_inst __P((db_addr_t loc)); void db_printf __P((const char *fmt, ...)); -void db_putchar __P((int c)); void db_read_bytes __P((vm_offset_t addr, int size, char *data)); /* machine-dependent */ int db_readline __P((char *lstart, int lsize)); |