summaryrefslogtreecommitdiff
path: root/pflocal
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-24 07:25:05 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-24 07:25:05 +0200
commit3aee8e4b88269ec6fbc47779cc2acb5cce6d78b4 (patch)
tree4c0c8058ab61e0e8631a9365cc61d69b03e6ab4b /pflocal
parentcf2aaecb77099ef8d2b9f9fb8ae0d1e362643271 (diff)
Fix missing renames
* pflocal/sock.c (sock_connect, sock_shutdown): Rename SOCK_CONNECTED to PFLOCAL_SOCK_CONNECTED.
Diffstat (limited to 'pflocal')
-rw-r--r--pflocal/sock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pflocal/sock.c b/pflocal/sock.c
index 442205ae..2641e1c5 100644
--- a/pflocal/sock.c
+++ b/pflocal/sock.c
@@ -402,7 +402,7 @@ sock_connect (struct sock *sock1, struct sock *sock2)
/* If SOCK1 == SOCK2, then we get a fifo! */
pthread_mutex_lock (&sock2->lock);
- if ((sock1->flags & PFLOCAL_SOCK_CONNECTED) || (sock2->flags & SOCK_CONNECTED))
+ if ((sock1->flags & PFLOCAL_SOCK_CONNECTED) || (sock2->flags & PFLOCAL_SOCK_CONNECTED))
/* An already-connected socket. */
err = EISCONN;
else
@@ -455,13 +455,13 @@ sock_shutdown (struct sock *sock, unsigned flags)
old_flags = sock->flags;
sock->flags |= flags;
- if (flags & PFLOCAL_SOCK_SHUTDOWN_READ && !(old_flags & SOCK_SHUTDOWN_READ))
+ if (flags & PFLOCAL_SOCK_SHUTDOWN_READ && !(old_flags & PFLOCAL_SOCK_SHUTDOWN_READ))
{
/* Shutdown the read half. */
read_pipe = sock->read_pipe;
sock->read_pipe = NULL;
}
- if (flags & PFLOCAL_SOCK_SHUTDOWN_WRITE && !(old_flags & SOCK_SHUTDOWN_WRITE))
+ if (flags & PFLOCAL_SOCK_SHUTDOWN_WRITE && !(old_flags & PFLOCAL_SOCK_SHUTDOWN_WRITE))
{
/* Shutdown the write half. */
write_pipe = sock->write_pipe;