CLEANUP: assorted typo fixes in the code and comments

These are mostly comments in the code. A few error messages were fixed
and are of low enough importance not to deserve a backport. Some regtests
were also fixed.
diff --git a/include/proto/connection.h b/include/proto/connection.h
index ecc03de..2118d23 100644
--- a/include/proto/connection.h
+++ b/include/proto/connection.h
@@ -681,7 +681,7 @@
 	case CO_ER_SSL_TIMEOUT:   return "Timeout during SSL handshake";
 	case CO_ER_SSL_TOO_MANY:  return "Too many SSL connections";
 	case CO_ER_SSL_NO_MEM:    return "Out of memory when initializing an SSL connection";
-	case CO_ER_SSL_RENEG:     return "Rejected a client-initiated SSL renegociation attempt";
+	case CO_ER_SSL_RENEG:     return "Rejected a client-initiated SSL renegotiation attempt";
 	case CO_ER_SSL_CA_FAIL:   return "SSL client CA chain cannot be verified";
 	case CO_ER_SSL_CRT_FAIL:  return "SSL client certificate not trusted";
 	case CO_ER_SSL_MISMATCH:  return "Server presented an SSL certificate different from the configured one";
diff --git a/include/proto/fd.h b/include/proto/fd.h
index 3c778ab..8dadae8 100644
--- a/include/proto/fd.h
+++ b/include/proto/fd.h
@@ -106,7 +106,7 @@
 void fd_rm_from_fd_list(volatile struct fdlist *list, int fd, int off);
 void updt_fd_polling(const int fd);
 
-/* Called from the poller to acknoledge we read an entry from the global
+/* Called from the poller to acknowledge we read an entry from the global
  * update list, to remove our bit from the update_mask, and remove it from
  * the list if we were the last one.
  */
diff --git a/include/proto/log.h b/include/proto/log.h
index 6c96432..a2e9d47 100644
--- a/include/proto/log.h
+++ b/include/proto/log.h
@@ -172,13 +172,13 @@
 
 /*
  * Write a IP address to the log string
- * +X option write in hexadecimal notation, most signifant byte on the left
+ * +X option write in hexadecimal notation, most significant byte on the left
  */
 char *lf_ip(char *dst, const struct sockaddr *sockaddr, size_t size, const struct logformat_node *node);
 
 /*
  * Write a port to the log
- * +X option write in hexadecimal notation, most signifant byte on the left
+ * +X option write in hexadecimal notation, most significant byte on the left
  */
 char *lf_port(char *dst, const struct sockaddr *sockaddr, size_t size, const struct logformat_node *node);
 
diff --git a/include/proto/pattern.h b/include/proto/pattern.h
index 73d3cdc..39514b1 100644
--- a/include/proto/pattern.h
+++ b/include/proto/pattern.h
@@ -51,7 +51,7 @@
 }
 
 /* This function executes a pattern match on a sample. It applies pattern <expr>
- * to sample <smp>. The function returns NULL if the sample dont match. It returns
+ * to sample <smp>. The function returns NULL if the sample don't match. It returns
  * non-null if the sample match. If <fill> is true and the sample match, the
  * function returns the matched pattern. In many cases, this pattern can be a
  * static buffer.
diff --git a/include/proto/proxy.h b/include/proto/proxy.h
index 7f108b5..db4cb89 100644
--- a/include/proto/proxy.h
+++ b/include/proto/proxy.h
@@ -147,7 +147,7 @@
 			     update_freq_ctr(&fe->fe_req_per_sec, 1));
 }
 
-/* Returns non-zero if the proxy is configured to retry a request if we got that status, 0 overwise */
+/* Returns non-zero if the proxy is configured to retry a request if we got that status, 0 otherwise */
 static inline int l7_status_match(struct proxy *p, int status)
 {
 	/* Just return 0 if no retry was configured for any status */
diff --git a/include/proto/server.h b/include/proto/server.h
index 0844e8a..516be49 100644
--- a/include/proto/server.h
+++ b/include/proto/server.h
@@ -95,7 +95,7 @@
 void srv_dump_kws(char **out);
 
 /* Recomputes the server's eweight based on its state, uweight, the current time,
- * and the proxy's algorihtm. To be used after updating sv->uweight. The warmup
+ * and the proxy's algorithm. To be used after updating sv->uweight. The warmup
  * state is automatically disabled if the time is elapsed.
  */
 void server_recalc_eweight(struct server *sv, int must_update);
diff --git a/include/proto/sink.h b/include/proto/sink.h
index 2947536..5028c25 100644
--- a/include/proto/sink.h
+++ b/include/proto/sink.h
@@ -34,7 +34,7 @@
 
 
 /* tries to send <nmsg> message parts (up to 8, ignored above) from message
- * array <msg> to sink <sink>. Formating according to the sink's preference is
+ * array <msg> to sink <sink>. Formatting according to the sink's preference is
  * done here. Lost messages are accounted for in the sink's counter. If there
  * were lost messages, an attempt is first made to indicate it.
  */
diff --git a/include/proto/task.h b/include/proto/task.h
index 84c2f8a..07da99d 100644
--- a/include/proto/task.h
+++ b/include/proto/task.h
@@ -335,7 +335,7 @@
 }
 
 /* Allocate and initialize a new tasklet, local to the thread by default. The
- * caller may assing its tid if it wants to own the tasklet.
+ * caller may assign its tid if it wants to own the tasklet.
  */
 static inline struct tasklet *tasklet_new(void)
 {
@@ -388,7 +388,7 @@
 		return;
 
 	task_unlink_wq(t);
-	/* We don't have to explicitely remove from the run queue.
+	/* We don't have to explicitly remove from the run queue.
 	 * If we are in the runqueue, the test below will set t->process
 	 * to NULL, and the task will be free'd when it'll be its turn
 	 * to run.
@@ -494,7 +494,7 @@
  * execution context. It contains a pointer to the associated task.
  * "link" is a list head attached to an other task that must be wake
  * the lua task if an event occurs. This is useful with external
- * events like TCP I/O or sleep functions. This funcion allocate
+ * events like TCP I/O or sleep functions. This function allocate
  * memory for the signal.
  */
 static inline struct notification *notification_new(struct list *purge, struct list *event, struct task *wakeup)
@@ -535,7 +535,7 @@
 }
 
 /* In some cases, the disconnected notifications must be cleared.
- * This function just release memory blocs. The purge list is not
+ * This function just release memory blocks. The purge list is not
  * locked because it is owned by only one process. Before browsing
  * this list, the caller must ensure to be the only one browser.
  * The "com" is not locked because when com->task is NULL, the
@@ -627,7 +627,7 @@
 
 /* Checks the next timer for the current thread by looking into its own timer
  * list and the global one. It may return TICK_ETERNITY if no timer is present.
- * Note that the next timer might very well be slighly in the past.
+ * Note that the next timer might very well be slightly in the past.
  */
 int next_timer_expiry();