summaryrefslogtreecommitdiff
path: root/pflocal/socket.c
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-07-26 19:51:26 +0000
committerMiles Bader <miles@gnu.org>1995-07-26 19:51:26 +0000
commit8d853d3864c42e5ff9e257976cb38882b0a3c44c (patch)
tree0cfcd921036f4ce85657686119b32be604d4926c /pflocal/socket.c
parent150737252407c187573801dcc8550c1d5cca1f98 (diff)
entered into RCS
Diffstat (limited to 'pflocal/socket.c')
-rw-r--r--pflocal/socket.c14
1 files 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 <sys/socket.h>
+#include <hurd/pipe.h>
+
#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);