Hi,

The attached patch fixes typos in the code comments of the MAP
management functions.

Thanks,
Joseph
From cc9890a5ae4201ececd8a6c5f4185e6f9e22340f Mon Sep 17 00:00:00 2001
From: Joseph Herlant <[email protected]>
Date: Sun, 25 Nov 2018 11:48:18 -0800
Subject: [PATCH] CLEANUP: Fix typos in the map management functions

Fixes typos in the code comments of the MAP management functions.
---
 src/map.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/map.c b/src/map.c
index 7eb9e364..04047905 100644
--- a/src/map.c
+++ b/src/map.c
@@ -225,7 +225,7 @@ static int sample_conv_map(const struct arg *arg_p, struct sample *smp, void *pr
 		return 1;
 	}
 
-	/* If no default value avalaible, the converter fails. */
+	/* If no default value available, the converter fails. */
 	if (arg_p[1].type == ARGT_STOP)
 		return 0;
 
@@ -404,8 +404,8 @@ static int cli_io_handler_pats_list(struct appctx *appctx)
 	switch (appctx->st2) {
 	case STAT_ST_INIT:
 		/* Display the column headers. If the message cannot be sent,
-		 * quit the fucntion with returning 0. The function is called
-		 * later and restart at the state "STAT_ST_INIT".
+		 * quit the function with returning 0. The function is called
+		 * later and restarted at the state "STAT_ST_INIT".
 		 */
 		chunk_reset(&trash);
 		chunk_appendf(&trash, "# id (file) description\n");
@@ -415,9 +415,9 @@ static int cli_io_handler_pats_list(struct appctx *appctx)
 		}
 
 		/* Now, we start the browsing of the references lists.
-		 * Note that the following call to LIST_ELEM return bad pointer. The only
+		 * Note that the following call to LIST_ELEM returns a bad pointer. The only
 		 * available field of this pointer is <list>. It is used with the function
-		 * pat_list_get_next() for retruning the first available entry
+		 * pat_list_get_next() for returning the first available entry
 		 */
 		appctx->ctx.map.ref = LIST_ELEM(&pattern_reference, struct pat_ref *, list);
 		appctx->ctx.map.ref = pat_list_get_next(appctx->ctx.map.ref, &pattern_reference,
@@ -430,7 +430,7 @@ static int cli_io_handler_pats_list(struct appctx *appctx)
 			chunk_reset(&trash);
 
 			/* Build messages. If the reference is used by another category than
-			 * the listed categorie, display the information in the massage.
+			 * the listed categories, display the information in the message.
 			 */
 			chunk_appendf(&trash, "%d (%s) %s\n", appctx->ctx.map.ref->unique_id,
 			              appctx->ctx.map.ref->reference ? appctx->ctx.map.ref->reference : "",
-- 
2.19.1

Reply via email to