From 8d853d3864c42e5ff9e257976cb38882b0a3c44c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 26 Jul 1995 19:51:26 +0000 Subject: entered into RCS --- pflocal/socket.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pflocal/socket.c b/pflocal/socket.c index 10736281..6ab7a4f4 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -20,9 +20,10 @@ #include +#include + #include "sock.h" #include "connq.h" -#include "pipe.h" #include "socket_S.h" @@ -252,10 +253,9 @@ S_socket_send (struct sock_user *user, struct addr *dest_addr, int flags, err = sock_aquire_read_pipe (dest_sock, &pipe); if (!err) { - err = pipe_write (pipe, source_addr, - data, data_len, - control, control_len, ports, num_ports, - amount); + err = pipe_send (pipe, source_addr, data, data_len, + control, control_len, ports, num_ports, + amount); pipe_release (pipe); } ports_port_deref (source_addr); @@ -280,7 +280,7 @@ S_socket_recv (struct sock_user *user, error_t err; unsigned flags; struct pipe *pipe; - struct addr *source_addr = NULL; + void *source_addr = NULL; if (!user) return EOPNOTSUPP; @@ -296,7 +296,7 @@ S_socket_recv (struct sock_user *user, if (!err) { err = - pipe_read (pipe, user->sock->flags & SOCK_NONBLOCK, &flags, + pipe_recv (pipe, user->sock->flags & SOCK_NONBLOCK, &flags, &source_addr, data, data_len, amount, control, control_len, ports, num_ports); pipe_release (pipe); -- cgit v1.2.3