Hi,

The attached patch fixes typos in the code comments of the h1 subsystem.

Thanks,
Joseph
From b17a612d70b05d8f85e6f41259f4777d6ce9afae Mon Sep 17 00:00:00 2001
From: Joseph Herlant <aerosti...@debian.org>
Date: Sun, 25 Nov 2018 10:52:20 -0800
Subject: [PATCH] CLEANUP: Fix typos in the h1 subsystem

Fixes typos in the code comments of the h1 subsystem.
---
 include/proto/h1.h | 2 +-
 src/mux_h1.c       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/proto/h1.h b/include/proto/h1.h
index a39cc0b2..b29d76b7 100644
--- a/include/proto/h1.h
+++ b/include/proto/h1.h
@@ -179,7 +179,7 @@ static inline int h1_skip_chunk_crlf(const struct buffer *buf, int start, int st
 	const char *ptr = b_peek(buf, start);
 	int bytes = 1;
 
-	/* NB: we'll check data availabilty at the end. It's not a
+	/* NB: we'll check data availability at the end. It's not a
 	 * problem because whatever we match first will be checked
 	 * against the correct length.
 	 */
diff --git a/src/mux_h1.c b/src/mux_h1.c
index 2e28d369..c927672d 100644
--- a/src/mux_h1.c
+++ b/src/mux_h1.c
@@ -720,7 +720,7 @@ static void h1_process_conn_mode(struct h1s *h1s, struct h1m *h1m,
  * Parse HTTP/1 headers. It returns the number of bytes parsed if > 0, or 0 if
  * it couldn't proceed. Parsing errors are reported by setting H1S_F_*_ERROR
  * flag and filling h1s->err_pos and h1s->err_state fields. This functions is
- * responsibile to update the parser state <h1m>.
+ * responsible to update the parser state <h1m>.
  */
 static size_t h1_process_headers(struct h1s *h1s, struct h1m *h1m, struct htx *htx,
 				 struct buffer *buf, size_t *ofs, size_t max)
@@ -838,7 +838,7 @@ static size_t h1_process_headers(struct h1s *h1s, struct h1m *h1m, struct htx *h
  * Parse HTTP/1 body. It returns the number of bytes parsed if > 0, or 0 if it
  * couldn't proceed. Parsing errors are reported by setting H1S_F_*_ERROR flag
  * and filling h1s->err_pos and h1s->err_state fields. This functions is
- * responsibile to update the parser state <h1m>.
+ * responsible to update the parser state <h1m>.
  */
 static size_t h1_process_data(struct h1s *h1s, struct h1m *h1m, struct htx *htx,
 			      struct buffer *buf, size_t *ofs, size_t max)
-- 
2.19.1

Reply via email to