aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_sms.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-09-15 20:28:24 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2017-09-15 19:52:53 +0000
commit3f8384d7797cb07f220cad998620aa2b1ee11960 (patch)
treecc090e097f3d98d5a8e4ed0485d84394484d250c /epan/dissectors/packet-gsm_sms.c
parent8b11e37f81d567921faacc5302f4b87268912484 (diff)
epan: Fix misuse of comma operator
Change-Id: I349dc9896db0bd306bc92f92eb9d4a65d98d309c Reviewed-on: https://code.wireshark.org/review/23558 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
Diffstat (limited to 'epan/dissectors/packet-gsm_sms.c')
-rw-r--r--epan/dissectors/packet-gsm_sms.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c
index 238bbd7b95..aa11769b49 100644
--- a/epan/dissectors/packet-gsm_sms.c
+++ b/epan/dissectors/packet-gsm_sms.c
@@ -926,27 +926,27 @@ dis_field_scts_aux(tvbuff_t *tvb, proto_tree *tree, guint32 offset)
char sign;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_year, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_month, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_day, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_hour, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_minutes, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(tree, hf_gsm_sms_scts_seconds, tvb, offset, 1, value);
offset++;
@@ -1081,15 +1081,15 @@ dis_field_vp(tvbuff_t *tvb, packet_info* pinfo, proto_tree *tree, guint32 *offse
case 0x03:
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(subtree, hf_gsm_sms_vp_validity_period_hour, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(subtree, hf_gsm_sms_vp_validity_period_minutes, tvb, offset, 1, value);
offset++;
oct = tvb_get_guint8(tvb, offset);
- value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4),
+ value = (oct & 0x0f)*10 + ((oct & 0xf0) >> 4);
proto_tree_add_uint(subtree, hf_gsm_sms_vp_validity_period_seconds, tvb, offset, 1, value);
offset++;
done = TRUE;