formatting

This commit is contained in:
rsc 2007-08-28 05:00:53 +00:00
parent c2f354e4e1
commit 6eed1ee9b0
2 changed files with 3 additions and 1 deletions

1
bio.c
View file

@ -42,6 +42,7 @@ binit(void)
initlock(&buf_table_lock, "buf_table"); initlock(&buf_table_lock, "buf_table");
//PAGEBREAK!
// Create linked list of buffers // Create linked list of buffers
bufhead.prev = &bufhead; bufhead.prev = &bufhead;
bufhead.next = &bufhead; bufhead.next = &bufhead;

3
pipe.c
View file

@ -43,6 +43,7 @@ pipealloc(struct file **f0, struct file **f1)
(*f1)->pipe = p; (*f1)->pipe = p;
return 0; return 0;
//PAGEBREAK: 20
bad: bad:
if(p) if(p)
kfree((char*)p, PAGE); kfree((char*)p, PAGE);
@ -74,7 +75,7 @@ pipeclose(struct pipe *p, int writable)
kfree((char*)p, PAGE); kfree((char*)p, PAGE);
} }
//PAGEBREAK: 20 //PAGEBREAK: 30
int int
pipewrite(struct pipe *p, char *addr, int n) pipewrite(struct pipe *p, char *addr, int n)
{ {