]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the socket pair protocol subsystem
authorJoseph Herlant <aerostitch@debian.org>
Sun, 25 Nov 2018 19:43:27 +0000 (11:43 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 17:40:33 +0000 (18:40 +0100)
Fixes typos in the code comments of the socket pair protocol subsystem.

src/proto_sockpair.c

index f83c51b86c9b1062cf0bc8275cc9e39000a1b726..068b24f609303fa3f60f52cb5b70643dabbbde9b 100644 (file)
@@ -213,7 +213,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.
@@ -346,11 +346,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)
 {