diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-10-29 14:08:50 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-10-29 14:08:50 +0000 |
commit | 5e7aa10f0ca6a32aed8d9bcb895f989dd5c1bd52 (patch) | |
tree | 3beca1fc5309e1127122b1ad32af878beb1193bb /sys | |
parent | 596e1462d8c4fbfd7765e442d644f8e3f6bf21a7 (diff) |
Use M_PIPE instead of M_TEMP.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_pipe.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 00e7507c564..88472e3169c 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_pipe.c,v 1.19 1999/10/29 14:01:44 art Exp $ */ +/* $OpenBSD: sys_pipe.c,v 1.20 1999/10/29 14:08:49 art Exp $ */ /* * Copyright (c) 1996 John S. Dyson @@ -113,9 +113,9 @@ sys_opipe(p, v, retval) struct pipe *rpipe, *wpipe; int fd, error; - rpipe = malloc(sizeof(*rpipe), M_TEMP, M_WAITOK); + rpipe = malloc(sizeof(*rpipe), M_PIPE, M_WAITOK); pipeinit(rpipe); - wpipe = malloc(sizeof(*wpipe), M_TEMP, M_WAITOK); + wpipe = malloc(sizeof(*wpipe), M_PIPE, M_WAITOK); pipeinit(wpipe); error = falloc(p, &rf, &fd); @@ -739,7 +739,7 @@ pipeclose(cpipe) cpipe->pipe_buffer.size); #endif } - free(cpipe, M_TEMP); + free(cpipe, M_PIPE); } } #endif |