From: Joseph Herlant Date: Thu, 15 Nov 2018 20:24:23 +0000 (-0800) Subject: CLEANUP: Fix typos in the filters subsystem X-Git-Tag: v1.9-dev7~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b35ea68081e147dcc6045ba3e62841048b44542c;p=thirdparty%2Fhaproxy.git CLEANUP: Fix typos in the filters subsystem Fix typos in the code comments of the filters subsystems. --- diff --git a/include/types/filters.h b/include/types/filters.h index 714cee9666..c460e79684 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 8bb9a904d3..bdc106a6ea 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() { @@ -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;