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 714cee9..c460e79 100644
--- a/include/types/filters.h
+++ b/include/types/filters.h
@@ -251,8 +251,8 @@
* 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 8bb9a90..bdc106a 100644
--- a/src/filters.c
+++ b/src/filters.c
@@ -299,8 +299,8 @@
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 @@
/* 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 @@
* 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;