diff options
author | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1994-08-18 22:36:09 +0000 |
commit | f9fc827448679cf1d41e56512c34521bf06ce37a (patch) | |
tree | 6b83fdf6eb5926c2f3d175a83d24bf5a2611a012 /sys/ddb/db_input.c | |
parent | 44fc281f480837836035856eb0af25443f0d2146 (diff) | |
download | FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.zip FreeBSD-src-f9fc827448679cf1d41e56512c34521bf06ce37a.tar.gz |
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.
Diffstat (limited to 'sys/ddb/db_input.c')
-rw-r--r-- | sys/ddb/db_input.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index d768992..4697a8c 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 $ */ /* @@ -194,6 +194,12 @@ db_inputchar(c) } int +cnmaygetc (void) +{ + return (-1); +} + +int db_readline(lstart, lsize) char * lstart; int lsize; @@ -242,12 +248,6 @@ db_check_interrupt() } } -int -cnmaygetc (void) -{ - return (-1); -} - /* called from kdb_trap in db_interface.c */ void cnpollc (flag) |