]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the filters subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 20:24:23 +0000 (12:24 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:26:42 +0000 (22:26 +0100)
Fix typos in the code comments of the filters subsystems.

include/types/filters.h
src/filters.c

index 714cee9666218c60adc5ab7cb4ed7369b36a10fd..c460e796841b03c6797612ddd14ddd5ff311bc5a 100644 (file)
@@ -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 */
index 8bb9a904d3ff37b2379b89573b0c483be5ad31dd..bdc106a6ea05e4ff91299e36980563604b51edc4 100644 (file)
@@ -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()
 {
@@ -559,7 +559,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;
@@ -923,7 +923,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;