summaryrefslogtreecommitdiff
path: root/console.c
diff options
context:
space:
mode:
authorrsc <rsc>2007-08-28 18:37:41 +0000
committerrsc <rsc>2007-08-28 18:37:41 +0000
commit5516be1fed10ac87848668964c495266d02ae915 (patch)
treeb3f85375a1ccd347861e9eea34d644cc9824c444 /console.c
parente4d6a21165c01dd743a68e323fb06708ef820ab7 (diff)
downloadxv6-labs-5516be1fed10ac87848668964c495266d02ae915.tar.gz
xv6-labs-5516be1fed10ac87848668964c495266d02ae915.tar.bz2
xv6-labs-5516be1fed10ac87848668964c495266d02ae915.zip
spaces around else for rtm
Diffstat (limited to 'console.c')
-rw-r--r--console.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/console.c b/console.c
index 8acc242..22b4b23 100644
--- a/console.c
+++ b/console.c
@@ -51,7 +51,7 @@ cga_putc(int c)
else if(c == BACKSPACE){
if(pos > 0)
crt[--pos] = ' ' | 0x0700;
- }else
+ } else
crt[pos++] = (c&0xff) | 0x0700; // black on white
if((pos/80) >= 24){ // Scroll up.
@@ -91,7 +91,7 @@ printint(int xx, int base, int sgn)
if(sgn && xx < 0){
neg = 1;
x = 0 - xx;
- }else{
+ } else {
x = xx;
}