tty: fix some of the kputchar sign breakages
authorAlan Cox <alan@linux.intel.com>
Wed, 13 Mar 2019 22:34:50 +0000 (22:34 +0000)
committerAlan Cox <alan@linux.intel.com>
Wed, 13 Mar 2019 22:34:50 +0000 (22:34 +0000)
Kernel/platform-atarist/devtty.c
Kernel/platform-multicomp09/devtty.c
Kernel/platform-spx302/devtty.c
Kernel/platform-tiny68k/devtty.c

index fb0f431..8b5e357 100644 (file)
@@ -63,7 +63,7 @@ uint8_t vtattr_cap;
 /* tty1 is the screen tty2 is the serial port tty3 is MIDI */
 
 /* Output for the system console (kprintf etc) */
-void kputchar(char c)
+void kputchar(uint8_t c)
 {
        if (c == '\n')
                tty_putc(1, '\r');
index 895ed16..b568d5d 100644 (file)
@@ -111,7 +111,7 @@ int my_tty_close(uint8_t minor)
 
 
 /* Output for the system console (kprintf etc) */
-void kputchar(char c)
+void kputchar(uint_fast8_t c)
 {
        uint8_t minor = minor(TTYDEV);
 
index ecffc83..16d27f0 100644 (file)
@@ -71,7 +71,7 @@ static volatile uint8_t *uart_base = (volatile uint8_t *)0x300020;
 #define PUTB(x,y)      uart_base[(x)] = (y)
 
 /* Output for the system console (kprintf etc). Polled. */
-void kputchar(char c)
+void kputchar(uint8_t c)
 {
        if (c == '\n') {
                while(!(GETB(UART_SRA) &  4));
index 26b4879..3a32314 100644 (file)
@@ -63,7 +63,7 @@ static volatile uint8_t *uart_base = (volatile uint8_t *)0xFFF000;
 #define PUTB(x,y)      uart_base[(x)] = (y)
 
 /* Output for the system console (kprintf etc). Polled. */
-void kputchar(char c)
+void kputchar(uint8_t c)
 {
        if (c == '\n') {
                while(!(GETB(UART_SRA) &  4));