diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:36 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:51:46 +0200 |
commit | 9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc (patch) | |
tree | 927b94772ceaa8f6e5bcbb2ddeadf933df8bb814 /pflocal | |
parent | 19558c940e81d405dbda0ea1dd29549f34b5aa2a (diff) | |
download | hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.tar.gz hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.tar.bz2 hurd-9fe5e6bf0ccaccec9c5ea2c3a2cea86dbd9c78dc.zip |
Style tweaks
Message-Id: <20230508213136.608575-42-bugaevc@gmail.com>
Diffstat (limited to 'pflocal')
-rw-r--r-- | pflocal/pf.c | 4 | ||||
-rw-r--r-- | pflocal/socket.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pflocal/pf.c b/pflocal/pf.c index 45b132eb..482f3b93 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -135,7 +135,7 @@ S_socket_whatis_address (struct addr *addr, mach_msg_type_number_t *sockaddr_len) { socklen_t addr_len = (offsetof (struct sockaddr, sa_data) + 1); - + if (! addr) return EOPNOTSUPP; @@ -146,6 +146,6 @@ S_socket_whatis_address (struct addr *addr, ((struct sockaddr *) *sockaddr)->sa_family = *sockaddr_type; ((struct sockaddr *) *sockaddr)->sa_data[0] = 0; *sockaddr_len = addr_len; - + return 0; } diff --git a/pflocal/socket.c b/pflocal/socket.c index 625980b9..0e0f8d78 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -342,7 +342,7 @@ S_socket_send (struct sock_user *user, struct addr *dest_addr, int flags, else /* No address, must be a connected socket... */ err = sock_acquire_write_pipe (sock, &pipe); - + if (!err) { noblock = (user->sock->flags & PFLOCAL_SOCK_NONBLOCK) |