aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2021-09-30 09:24:26 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-09-30 13:42:24 +0000
commit0173ea0ec1f87f2ab40c45eedb0ca1c1f77eea8e (patch)
treed0394c14cd9603e5b985b1fd225a4befc12e37aa /epan/dissectors
parente6a12256113700c135fe96c7196857eadf99044d (diff)
COSE: make some functions static
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-cose.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-cose.c b/epan/dissectors/packet-cose.c
index 9975a70a8a..e67ba861a7 100644
--- a/epan/dissectors/packet-cose.c
+++ b/epan/dissectors/packet-cose.c
@@ -444,7 +444,7 @@ static void dissect_header_map(dissector_table_t dis_table, tvbuff_t *tvb, packe
proto_item_set_len(item_hdr_map, *offset - chunk_hdr_map->start);
}
-int dissect_cose_msg_header_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) {
+static int dissect_cose_msg_header_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) {
gint offset = 0;
dissect_header_map(table_header, tvb, pinfo, tree, &offset);
return offset;
@@ -683,7 +683,7 @@ static int dissect_cose_mac0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
/** Dissect a tagged COSE message.
*/
-int dissect_cose_msg_tagged(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) {
+static int dissect_cose_msg_tagged(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) {
gint offset = 0;
// All messages have the same base structure, attempt all tags present
@@ -709,7 +709,7 @@ int dissect_cose_msg_tagged(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
return -1;
}
-void dissect_value_alg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint *offset, GVariant **value) {
+static void dissect_value_alg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint *offset, GVariant **value) {
wscbor_chunk_t *chunk = wscbor_chunk_read(wmem_packet_scope(), tvb, offset);
switch (chunk->type_major) {
case CBOR_TYPE_UINT: