Hi,

This patch fixes a typo in the README of the peers section of this subsystem
and 2 typos in code comments. Groupped together as cleanup to avoid too
many 1 char patches.

Technically the fix in contrib/wireshark-dissectors/peers/README could
be classified as DOC change, let me know if I need to break this patch
into 2.

Note: I don't do that to have my name in the repo (I just saw stuff I
thought I could help fix) so I'm totally fine if you decide to take
that patch and do separate commits yourself.

The patch is attached, but if you want to view the diff online, you
can check: 
https://github.com/haproxy/haproxy/compare/master...aerostitch:cleanup_wireshark_typos

Ok, I'm done spamming the list with typos patches for tonight. Let me
know if you want me to reduce the number of patches I send per day in
the future. :)

Thanks
Joseph
From 9d278581df0c5d4cc1cc2ecbecfd1ea185a3f8a3 Mon Sep 17 00:00:00 2001
From: Joseph Herlant <aerosti...@debian.org>
Date: Fri, 9 Nov 2018 19:00:24 -0800
Subject: [PATCH] CLEANUP: fix typos in comments for
 contrib/wireshark-dissectors

This fixes a typo in the README of the peers section of this subsystem
and 2 typos in code comments. Groupped together as cleanup to avoid too
many 1 char patches.
---
 contrib/wireshark-dissectors/peers/README         | 2 +-
 contrib/wireshark-dissectors/peers/packet-happp.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/wireshark-dissectors/peers/README b/contrib/wireshark-dissectors/peers/README
index 2021fe11..a81e98cf 100644
--- a/contrib/wireshark-dissectors/peers/README
+++ b/contrib/wireshark-dissectors/peers/README
@@ -7,7 +7,7 @@ on Windows systems (could not be tested).
 
 1) File list
 -------------
- - packet-happp.c: source code for HAProxy Peers Procotol (HAPPP) dissection
+ - packet-happp.c: source code for HAProxy Peers Protocol (HAPPP) dissection
    support.
  - wireshark.happp.dissector.patch: a patch file for wireshark sources to enable HAPPP
    dissection support. Note that this patch file modifies only two files:
diff --git a/contrib/wireshark-dissectors/peers/packet-happp.c b/contrib/wireshark-dissectors/peers/packet-happp.c
index a1983316..4daf0aa4 100644
--- a/contrib/wireshark-dissectors/peers/packet-happp.c
+++ b/contrib/wireshark-dissectors/peers/packet-happp.c
@@ -792,7 +792,7 @@ static void dissect_happp_stkt_define_msg(tvbuff_t *tvb, packet_info *pinfo _U_,
 		return;
 
 	/*
-	 * According to the documentation, it is not our responsability
+	 * According to the documentation, it is not our responsibility
 	 * to free this allocated memory.
 	 */
 	happp_cv_data = (struct happp_cv_data_t *)wmem_alloc(wmem_file_scope(),
@@ -1599,7 +1599,7 @@ dissect_happp_heur_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
 	if (tvb_captured_length(tvb) < proto_strlen + 1)
 		return FALSE;
 
-	/* Check that we received a line begining with HAPPP_PROTOCOL
+	/* Check that we received a line beginning with HAPPP_PROTOCOL
 	 * followed by a space character.
 	 */
 	if (tvb_strneql(tvb, 0, HAPPP_PROTOCOL, proto_strlen) ||
-- 
2.19.1

Reply via email to