Hi,

This patch fixes typos in the code comments of the filters subsystems.

Thanks,
Joseph
From b52c553940479a5551917c8e82d83d82ebcc2c6b Mon Sep 17 00:00:00 2001
From: Joseph Herlant <[email protected]>
Date: Thu, 15 Nov 2018 12:24:23 -0800
Subject: [PATCH] CLEANUP: Fix typos in the filters subsystem

Fix typos in the code comments of the filters subsystems.
---
 include/types/filters.h | 4 ++--
 src/filters.c           | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/include/types/filters.h b/include/types/filters.h
index 714cee96..c460e796 100644
--- a/include/types/filters.h
+++ b/include/types/filters.h
@@ -251,8 +251,8 @@ struct strm_flt {
 	                                       * If NULL, we start from the first filter.
 	                                       * 0: request channel, 1: response channel */
 	unsigned short flags;                 /* STRM_FL_* */
-	unsigned char  nb_req_data_filters;   /* Number of data filters registerd on the request channel */
-	unsigned char  nb_rsp_data_filters;   /* Number of data filters registerd on the response channel */
+	unsigned char  nb_req_data_filters;   /* Number of data filters registered on the request channel */
+	unsigned char  nb_rsp_data_filters;   /* Number of data filters registered on the response channel */
 };
 
 #endif /* _TYPES_FILTERS_H */
diff --git a/src/filters.c b/src/filters.c
index 734058c5..2511b0ff 100644
--- a/src/filters.c
+++ b/src/filters.c
@@ -299,8 +299,8 @@ flt_init_all()
 	return 0;
 }
 
-/* Calls flt_init_per_thread() for all proxies, see above.  Be carefull here, it
- * returns 0 if an error occured. This is the opposite of flt_init_all. */
+/* Calls flt_init_per_thread() for all proxies, see above.  Be careful here, it
+ * returns 0 if an error occurred. This is the opposite of flt_init_all. */
 static int
 flt_init_all_per_thread()
 {
@@ -550,7 +550,7 @@ flt_http_data(struct stream *s, struct http_msg *msg)
 
 		/* If the HTTP parser is ahead, we update the next offset of the
 		 * current filter. This happens for chunked messages, at the
-		 * begining of a new chunk. */
+		 * beginning of a new chunk. */
 		nxt = &FLT_NXT(filter, msg->chn);
 		if (msg->next > *nxt)
 			*nxt = msg->next;
@@ -914,7 +914,7 @@ flt_end_analyze(struct stream *s, struct channel *chn, unsigned int an_bit)
 		 * one will remain. This is a way to be sure that
 		 * 'channel_end_analyze' callback will have a chance to be
 		 * called at least once for the other side to finish the current
-		 * processing. Of course, this is the filter responsiblity to
+		 * processing. Of course, this is the filter responsibility to
 		 * wakeup the stream if it choose to loop on this callback. */
 		s->req.flags |= CF_WAKE_ONCE;
 		s->res.flags |= CF_WAKE_ONCE;
-- 
2.19.1

Reply via email to