summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-07-17 01:52:13 +0000
committerrsc <rsc>2006-07-17 01:52:13 +0000
commitb5ee516575b4d2f1fd7de014230fee7cf8b6b538 (patch)
tree158b9cf0466e66ac80c96d948a12ae67afcb1d9a /console.c
parent857d60cb0c56df19a5125584c677aa56c4488e98 (diff)
downloadxv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.tar.gz
xv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.tar.bz2
xv6-labs-b5ee516575b4d2f1fd7de014230fee7cf8b6b538.zip
add uint and standardize on typedefs instead of unsigned
Diffstat (limited to 'console.c')
-rw-r--r--console.c6
1 files changed, 3 insertions, 3 deletions
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);