diff options
Diffstat (limited to 'sys/dev/cons.c')
-rw-r--r-- | sys/dev/cons.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c index ba39691c29e..3643121b7db 100644 --- a/sys/dev/cons.c +++ b/sys/dev/cons.c @@ -1,4 +1,5 @@ -/* $NetBSD: cons.c,v 1.28 1995/11/25 00:03:35 cgd Exp $ */ +/* $OpenBSD: cons.c,v 1.3 1996/02/27 09:43:19 niklas Exp $ */ +/* $NetBSD: cons.c,v 1.29 1996/02/04 02:04:08 christos Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -228,19 +229,19 @@ cngetc() return ((*cn_tab->cn_getc)(cn_tab->cn_dev)); } -int +void cnputc(c) register int c; { if (cn_tab == NULL) - return 0; /* XXX should be void */ + return; + if (c) { (*cn_tab->cn_putc)(cn_tab->cn_dev, c); if (c == '\n') (*cn_tab->cn_putc)(cn_tab->cn_dev, '\r'); } - return 0; /* XXX should be void */ } void |