aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-sctp.c7
-rw-r--r--epan/value_string.h9
2 files changed, 11 insertions, 5 deletions
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c
index edfa689660..717d132f8c 100644
--- a/epan/dissectors/packet-sctp.c
+++ b/epan/dissectors/packet-sctp.c
@@ -4671,11 +4671,11 @@ proto_register_sctp(void)
UAT_FLD_VS(type_fields, type_enable, "Visibility", chunk_enabled, "Hide or show the type in the chunk statistics"),
UAT_END_FIELDS
};
-
+
module_t *sctp_module;
expert_module_t* expert_sctp;
uat_t* chunk_types_uat;
-
+
chunk_types_uat = uat_new("Chunk types for the statistics dialog",
sizeof(type_field_t),
"statistics_chunk_types",
@@ -4689,8 +4689,7 @@ proto_register_sctp(void)
sctp_chunk_type_free_cb,
NULL,
custom_types_uat_fields
- );
-
+);
/* Register the protocol name and description */
proto_sctp = proto_register_protocol("Stream Control Transmission Protocol", "SCTP", "sctp");
diff --git a/epan/value_string.h b/epan/value_string.h
index d5326a2776..c83aa73b24 100644
--- a/epan/value_string.h
+++ b/epan/value_string.h
@@ -25,6 +25,10 @@
#ifndef __VALUE_STRING_H__
#define __VALUE_STRING_H__
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <glib.h>
#include "ws_symbol_export.h"
@@ -250,8 +254,11 @@ WS_DLL_LOCAL
const gchar *
value_string_ext_match_type_str(const value_string_ext *vse);
-#endif /* __VALUE_STRING_H__ */
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+#endif /* __VALUE_STRING_H__ */
/*
* Editor modelines - http://www.wireshark.org/tools/modelines.html