diff options
Diffstat (limited to 'console.c')
-rw-r--r-- | console.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -28,7 +28,7 @@ static void real_cons_putc(int c) { int crtport = 0x3d4; // io port of CGA - unsigned short *crt = (unsigned short *) 0xB8000; // base of CGA memory + uint16_t *crt = (uint16_t *) 0xB8000; // base of CGA memory int ind; if(panicked){ @@ -85,7 +85,7 @@ printint(int xx, int base, int sgn) char buf[16]; char digits[] = "0123456789ABCDEF"; int i = 0, neg = 0; - unsigned int x; + uint x; if(sgn && xx < 0){ neg = 1; @@ -111,7 +111,7 @@ void cprintf(char *fmt, ...) { int i, state = 0, c; - unsigned int *ap = (unsigned int *)(void*)&fmt + 1; + uint *ap = (uint *)(void*)&fmt + 1; if(use_console_lock) acquire(&console_lock); |