Hi,

The attached patch fixes typos in the code comments of the socket pair
protocol subsystem.

Thanks,
Joseph
From 0870a10c8fb766eb2b9c44a1435bdca68a029f6d Mon Sep 17 00:00:00 2001
From: Joseph Herlant <[email protected]>
Date: Sun, 25 Nov 2018 11:43:27 -0800
Subject: [PATCH] CLEANUP: Fix typos in the socket pair protocol subsystem

Fixes typos in the code comments of the socket pair protocol subsystem.
---
 src/proto_sockpair.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/proto_sockpair.c b/src/proto_sockpair.c
index ba82c5ea..f6a798bd 100644
--- a/src/proto_sockpair.c
+++ b/src/proto_sockpair.c
@@ -210,7 +210,7 @@ int send_fd_uxst(int fd, int send_fd)
 
 /*
  *
- * This function works like uxst_connect_server but insteads of creating a
+ * This function works like uxst_connect_server but instead of creating a
  * socket and establishing a connection, it creates a pair of connected
  * sockets, and send one of them through the destination FD. The destination FD
  * is stored in addr.to->sin_addr.s_addr during configuration parsing.
@@ -334,11 +334,11 @@ static int sockpair_connect_server(struct connection *conn, int data, int delack
 
 
 /*
- * Receive a file descriptor transfered from a unix socket.
+ * Receives a file descriptor transferred from a unix socket.
  *
  * Return -1 or a socket fd;
  *
- * The iobuf variable could be use in the future to enhance the protocol.
+ * The iobuf variable could be used in the future to enhance the protocol.
  */
 int recv_fd_uxst(int sock)
 {
-- 
2.19.1

Reply via email to