From b5ee516575b4d2f1fd7de014230fee7cf8b6b538 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 17 Jul 2006 01:52:13 +0000 Subject: add uint and standardize on typedefs instead of unsigned --- console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'console.c') diff --git a/console.c b/console.c index 9c15494..6a82dac 100644 --- a/console.c +++ b/console.c @@ -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); -- cgit v1.2.3