From 50e514be986e4d5b136879d1221b721b17493a78 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 6 Sep 2006 18:43:45 +0000 Subject: fd_* => file_* --- pipe.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pipe.c') diff --git a/pipe.c b/pipe.c index 3b2f6b8..82eaeeb 100644 --- a/pipe.c +++ b/pipe.c @@ -24,9 +24,9 @@ pipe_alloc(struct file **fd1, struct file **fd2) *fd1 = *fd2 = 0; struct pipe *p = 0; - if((*fd1 = fd_alloc()) == 0) + if((*fd1 = filealloc()) == 0) goto oops; - if((*fd2 = fd_alloc()) == 0) + if((*fd2 = filealloc()) == 0) goto oops; if((p = (struct pipe*) kalloc(PAGE)) == 0) goto oops; @@ -49,11 +49,11 @@ pipe_alloc(struct file **fd1, struct file **fd2) kfree((char*) p, PAGE); if(*fd1){ (*fd1)->type = FD_NONE; - fd_close(*fd1); + fileclose(*fd1); } if(*fd2){ (*fd2)->type = FD_NONE; - fd_close(*fd2); + fileclose(*fd2); } return -1; } -- cgit v1.2.3