aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-s7comm.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-09-09 14:05:52 -0400
committerBill Meier <wmeier@newsguy.com>2014-09-09 19:43:27 +0000
commit93cc6f004fff4216c05d7a13ae8d7ad6d490dd93 (patch)
tree090951ae4b0b7da855deed45b46355dbf52f2bbd /epan/dissectors/packet-s7comm.c
parent6e7f9ec12e52c41ba2a9c44f4f321ede87677370 (diff)
Fix some spelling & grammar.
Change-Id: Iedeaa411caa0823922dd79c27897a2349d4e6907 Reviewed-on: https://code.wireshark.org/review/4054 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/dissectors/packet-s7comm.c')
-rw-r--r--epan/dissectors/packet-s7comm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-s7comm.c b/epan/dissectors/packet-s7comm.c
index a7b3ceecf1..79b729b39f 100644
--- a/epan/dissectors/packet-s7comm.c
+++ b/epan/dissectors/packet-s7comm.c
@@ -303,7 +303,7 @@ static const value_string item_transportsizenames[] = {
/**************************************************************************
* Syntax Ids of variable specification
*/
-#define S7COMM_SYNTAXID_S7ANY 0x10 /* Adress data S7-Any pointer-like DB1.DBX10.2 */
+#define S7COMM_SYNTAXID_S7ANY 0x10 /* Address data S7-Any pointer-like DB1.DBX10.2 */
#define S7COMM_SYNTAXID_DRIVEESANY 0xa2 /* seen on Drive ES Starter with routing over S7 */
#define S7COMM_SYNTAXID_1200SYM 0xb2 /* Symbolic address mode of S7-1200 */
#define S7COMM_SYNTAXID_DBREAD 0xb0 /* Kind of DB block read, seen only at an S7-400 */
@@ -730,7 +730,7 @@ static gint hf_s7comm_item_transport_size = -1; /* Transport size, 1
static gint hf_s7comm_item_length = -1; /* length, 2 Bytes*/
static gint hf_s7comm_item_db = -1; /* DB/M/E/A, 2 Bytes */
static gint hf_s7comm_item_area = -1; /* Area code, 1 byte */
-static gint hf_s7comm_item_address = -1; /* Bit adress, 3 Bytes */
+static gint hf_s7comm_item_address = -1; /* Bit address, 3 Bytes */
/* Special variable read with Syntax-Id 0xb0 (DBREAD) */
static gint hf_s7comm_item_dbread_numareas = -1; /* Number of areas following, 1 Byte*/
static gint hf_s7comm_item_dbread_length = -1; /* length, 1 Byte*/
@@ -1130,7 +1130,7 @@ s7comm_decode_param_item(tvbuff_t *tvb,
proto_tree_add_uint(item_tree, hf_s7comm_item_address, tvb, offset, 3, a_address);
bytepos = a_address / 8;
bitpos = a_address % 8;
- /* build a full adress to show item data directly beside the item */
+ /* build a full address to show item data directly beside the item */
switch (area) {
case (S7COMM_AREA_P):
proto_item_append_text(item_tree, " (P");
@@ -1675,7 +1675,7 @@ s7comm_decode_ud_prog_vartab_req_item(tvbuff_t *tvb,
proto_tree_add_uint(sub_tree, hf_s7comm_vartab_req_startaddress, tvb, offset, 2, bytepos);
offset += 2;
- /* build a full adress to show item data directly beside the item */
+ /* build a full address to show item data directly beside the item */
switch (area) {
case S7COMM_UD_SUBF_PROG_VARTAB_AREA_MB:
proto_item_append_text(sub_tree, " (M%d.0 BYTE %d)", bytepos, len);
@@ -2156,7 +2156,7 @@ s7comm_decode_ud_prog_subfunc(tvbuff_t *tvb,
case S7COMM_UD_SUBF_PROG_REQDIAGDATA1:
case S7COMM_UD_SUBF_PROG_REQDIAGDATA2:
/* start variable table or block online view */
- /* TODO: Can only handle requests/response, not the "following" telegrams because it's neccessary to correlate them
+ /* TODO: Can only handle requests/response, not the "following" telegrams because it's necessary to correlate them
with the previous request */
if (type != S7COMM_UD_TYPE_PUSH) {
offset = s7comm_decode_ud_prog_reqdiagdata(tvb, data_tree, subfunc, offset);