]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/dev/ppc/km.c
xnu-1228.5.18.tar.gz
[apple/xnu.git] / bsd / dev / ppc / km.c
index 004c537927bfdf9993892bc7225898e3092fd907..27abea786a385a97f6411dcfd3e706441b0026d0 100644 (file)
@@ -60,15 +60,6 @@ int disableConsoleOutput;
 
 static int initialized = 0;
 
-// Function prototypes
-extern d_open_t         kmopen;
-extern d_close_t        kmclose;
-extern d_read_t         kmread;
-extern d_write_t        kmwrite;
-extern d_ioctl_t        kmioctl;
-extern d_getc_t         kmgetc;
-extern d_putc_t         kmputc;
-
 extern void kminit(void);
 
 // used by or implemented in the osfmk project
@@ -312,7 +303,7 @@ kmoutput(struct tty *tp)
                if (cc == 0)
                        break;
                cc = min(cc, sizeof buf);
-               (void) q_to_b(&tp->t_outq, buf, cc);
+               (void) q_to_b(&tp->t_outq, (unsigned char *)buf, cc);
                for (cp = buf; cp < &buf[cc]; cp++)
                    kmputc(tp->t_dev, *cp & 0x7f);
        }