]> Devi Nivas Git - cs3210-lab0.git/commit
make new code like old code
authorRuss Cox <rsc@swtch.com>
Tue, 11 Jan 2011 18:01:13 +0000 (13:01 -0500)
committerRuss Cox <rsc@swtch.com>
Tue, 11 Jan 2011 18:01:13 +0000 (13:01 -0500)
commit1a81e38b17144624415d252a521fd5a06079d681
treeea7d895bcf77aa25861c09ee490488b6f729e0f3
parent240679608cd46649d1144408f28f83141f9f3a86
make new code like old code

Variable declarations at top of function,
separate from initialization.

Use == 0 instead of ! for checking pointers.

Consistent spacing around {, *, casts.

Declare 0-parameter functions as (void) not ().

Integer valued functions return -1 on failure, 0 on success.
21 files changed:
bootmain.c
console.c
defs.h
exec.c
ide.c
kalloc.c
main.c
mkfs.c
mmu.h
mp.c
pipe.c
proc.c
spinlock.c
stressfs.c
syscall.c
sysfile.c
ulib.c
umalloc.c
user.h
usertests.c
vm.c