From f23b4c91c4fb94e1bb6aeb4e7747f4ccf7767b41 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 18 Aug 1994 22:36:09 +0000 Subject: Fix up some sloppy coding practices: - Delete redundant declarations. - Add -Wredundant-declarations to Makefile.i386 so they don't come back. - Delete sloppy COMMON-style declarations of uninitialized data in header files. - Add a few prototypes. - Clean up warnings resulting from the above. NB: ioconf.c will still generate a redundant-declaration warning, which is unavoidable unless somebody volunteers to make `config' smarter. --- sys/ddb/db_input.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sys/ddb/db_input.c') diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index d768992575fe..4697a8c8f3fc 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.4 1993/12/19 00:49:44 wollman Exp $ + * $Id: db_input.c,v 1.5 1994/08/13 03:49:19 wollman Exp $ */ /* @@ -193,6 +193,12 @@ db_inputchar(c) return (0); } +int +cnmaygetc (void) +{ + return (-1); +} + int db_readline(lstart, lsize) char * lstart; @@ -242,12 +248,6 @@ db_check_interrupt() } } -int -cnmaygetc (void) -{ - return (-1); -} - /* called from kdb_trap in db_interface.c */ void cnpollc (flag) -- cgit v1.3