aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2020-07-06 13:46:35 +0000
committerAnders Broman <a.broman58@gmail.com>2020-07-06 14:50:54 +0000
commit64b7bb05d417bff918707f5a03ec2d4d5decd6b0 (patch)
tree76255a17f76a2c7e5539b9355dfffb9b47ba4099
parentfc3a9d33288a40ae809bde1ef783374939634aaf (diff)
http2: fix no previous prototype for functio
packet-http2.c:285:6: warning: no previous prototype for ‘decode_as_http2_populate_list’ [-Wmissing-prototypes] Change-Id: Ife66469b7016437c1e2b6d41df99571e73159851 Reviewed-on: https://code.wireshark.org/review/37741 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-http2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http2.c b/epan/dissectors/packet-http2.c
index cdb2e564dd..0f404584d0 100644
--- a/epan/dissectors/packet-http2.c
+++ b/epan/dissectors/packet-http2.c
@@ -282,7 +282,8 @@ http2_streamid_prompt(packet_info* pinfo, gchar* result)
g_snprintf(result, MAX_DECODE_AS_PROMPT_LEN, "stream (%u)", http2_get_stream_id(pinfo));
}
-void decode_as_http2_populate_list(const gchar* table_name _U_, decode_as_add_to_list_func add_to_list, gpointer ui_element)
+static void
+decode_as_http2_populate_list(const gchar* table_name _U_, decode_as_add_to_list_func add_to_list, gpointer ui_element)
{
decode_as_default_populate_list("media_type", add_to_list, ui_element);
}