summaryrefslogtreecommitdiff
path: root/umalloc.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-06 17:04:06 +0000
committerrsc <rsc>2006-09-06 17:04:06 +0000
commita650c606fecc7e3938345e2bc52050a9ea725e7a (patch)
tree3bd2cfcd215f7ad4abdb087cdfe91f608c7f0801 /umalloc.c
parent45854caa93eecc3f80d34940b7cf6a400b640d69 (diff)
downloadxv6-labs-a650c606fecc7e3938345e2bc52050a9ea725e7a.tar.gz
xv6-labs-a650c606fecc7e3938345e2bc52050a9ea725e7a.tar.bz2
xv6-labs-a650c606fecc7e3938345e2bc52050a9ea725e7a.zip
spacing fixes: no tabs, 2-space indents (for rtm)
Diffstat (limited to 'umalloc.c')
-rw-r--r--umalloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/umalloc.c b/umalloc.c
index cdf099e..3f80796 100644
--- a/umalloc.c
+++ b/umalloc.c
@@ -74,17 +74,17 @@ malloc(uint nbytes)
for (p = prevp->s.ptr; ; prevp = p, p = p->s.ptr) {
if (p->s.size >= nunits) {
if (p->s.size == nunits)
- prevp->s.ptr = p->s.ptr;
+ prevp->s.ptr = p->s.ptr;
else {
- p->s.size -= nunits;
- p += p->s.size;
- p->s.size = nunits;
+ p->s.size -= nunits;
+ p += p->s.size;
+ p->s.size = nunits;
}
freep = prevp;
return (void *) (p + 1);
}
if (p == freep)
if ((p = morecore(nunits)) == 0)
- return 0;
+ return 0;
}
}