summaryrefslogtreecommitdiff
path: root/device
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-15 23:02:13 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:27:15 +0200
commita2157edfb4675c418158591f3cb8664e043ed5a0 (patch)
tree5e093ff30d2ef7586750fe86fc48ddc79dd5d135 /device
parent55fa0d11a027481b1e0e0a8a78c65393e4cbb290 (diff)
2008-07-15 Barry deFreese <bddebian@comcast.net>
* device/cons.c (cnputc): Turn parameter `c' into a char. * device/cons.h (cninit, cngetc, cnmaygetc, cnputc): Add prototypes. * i386/i386at/model_dep.c: Include <device/cons.h> * kern/printf.c: Include <device/cons.h> (cnputc): Remove prototype. (vprintf, iprintf): Explicitely cast cnputc into the type _doprnt expects. * linux/dev/kernel/printk.c: Include <device/cons.h> (cnputc): Remove prototype.
Diffstat (limited to 'device')
-rw-r--r--device/cons.c2
-rw-r--r--device/cons.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/device/cons.c b/device/cons.c
index 7fdb959..fb96d69 100644
--- a/device/cons.c
+++ b/device/cons.c
@@ -250,7 +250,7 @@ cnmaygetc()
void
cnputc(c)
- int c;
+ char c;
{
if (c == 0)
return;
diff --git a/device/cons.h b/device/cons.h
index dbe2993..be33d2b 100644
--- a/device/cons.h
+++ b/device/cons.h
@@ -21,6 +21,8 @@
* Utah $Hdr: cons.h 1.10 94/12/14$
*/
+#include <sys/types.h>
+
struct consdev {
#ifdef MACH_KERNEL
char *cn_name; /* name of device in dev_name_list */
@@ -47,3 +49,11 @@ struct consdev {
#ifdef KERNEL
extern struct consdev constab[];
#endif
+
+extern void cninit();
+
+extern int cngetc();
+
+extern int cnmaygetc();
+
+extern void cnputc(char);