aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-quake.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-06 03:35:44 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-06 03:35:44 +0000
commit4e57694d4aa2a652077e01fd6867a8def7ffdb15 (patch)
tree0896080ffb80104f2c23e3f8c273080088cff7cd /epan/dissectors/packet-quake.c
parentaae5eb7de0e2fd5a257d143852b832039ebb171e (diff)
Convert 'encoding' parameter of certain proto_tree_add_item() calls in non-autogenerated epan/dissectors:
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE svn path=/trunk/; revision=39288
Diffstat (limited to 'epan/dissectors/packet-quake.c')
-rw-r--r--epan/dissectors/packet-quake.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-quake.c b/epan/dissectors/packet-quake.c
index 9f083b0905..776bee4f27 100644
--- a/epan/dissectors/packet-quake.c
+++ b/epan/dissectors/packet-quake.c
@@ -166,7 +166,7 @@ dissect_quake_CCREQ_CONNECT
offset += proto_item_get_len(ti);
proto_tree_add_item(tree, hf_quake_CCREQ_CONNECT_version,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
}
}
@@ -185,7 +185,7 @@ dissect_quake_CCREQ_SERVER_INFO
tvb, offset, -1, TRUE);
offset += proto_item_get_len(ti);
proto_tree_add_item(tree, hf_quake_CCREQ_SERVER_INFO_version,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
}
}
@@ -196,7 +196,7 @@ dissect_quake_CCREQ_PLAYER_INFO
{
if (tree) {
proto_tree_add_item(tree, hf_quake_CCREQ_PLAYER_INFO_player,
- tvb, 0, 1, TRUE);
+ tvb, 0, 1, ENC_LITTLE_ENDIAN);
}
}
@@ -266,13 +266,13 @@ dissect_quake_CCREP_SERVER_INFO
offset += proto_item_get_len(ti);
proto_tree_add_item(tree, hf_quake_CCREP_SERVER_INFO_num_player,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_quake_CCREP_SERVER_INFO_max_player,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
proto_tree_add_item(tree, hf_quake_CCREQ_SERVER_INFO_version,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
}
}
@@ -293,7 +293,7 @@ dissect_quake_CCREP_PLAYER_INFO
if (tree) {
proto_tree_add_item(tree, hf_quake_CCREQ_PLAYER_INFO_player,
- tvb, offset, 1, TRUE);
+ tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset += 1;
ti = proto_tree_add_item(tree, hf_quake_CCREP_PLAYER_INFO_name,
@@ -317,10 +317,10 @@ dissect_quake_CCREP_PLAYER_INFO
tvb, offset, 1, color_pants);
offset += 4;
proto_tree_add_item(tree, hf_quake_CCREP_PLAYER_INFO_frags,
- tvb, offset, 4, TRUE);
+ tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_quake_CCREP_PLAYER_INFO_connect_time,
- tvb, offset, 4, TRUE);
+ tvb, offset, 4, ENC_LITTLE_ENDIAN);
offset += 4;
proto_tree_add_item(tree, hf_quake_CCREP_PLAYER_INFO_address,