From 76a29d7855f52c4c6d9bcb9747ebe285a4e85b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=BE=D0=BC=D0=B0=D0=BD=20=D0=94=D0=BE=D0=BD=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Fri, 13 Apr 2018 00:35:04 +0300 Subject: wiretap: make open_info_base[] const Change-Id: I1e0099d5301f08ee500f17529d6cc3733d3c9a4f Reviewed-on: https://code.wireshark.org/review/27392 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- wiretap/file_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wiretap/file_access.c b/wiretap/file_access.c index 2d7d941df1..f3a61bbb6a 100644 --- a/wiretap/file_access.c +++ b/wiretap/file_access.c @@ -323,7 +323,7 @@ wtap_get_all_capture_file_extensions_list(void) * If your file format has an expected extension (e.g., ".pcap") then you * should probably also add it to file_type_extensions_base[] (in this file). */ -static struct open_info open_info_base[] = { +static const struct open_info open_info_base[] = { { "Wireshark/tcpdump/... - pcap", OPEN_INFO_MAGIC, libpcap_open, "pcap", NULL, NULL }, { "Wireshark/... - pcapng", OPEN_INFO_MAGIC, pcapng_open, "pcapng", NULL, NULL }, { "Sniffer (DOS)", OPEN_INFO_MAGIC, ngsniffer_open, NULL, NULL, NULL }, -- cgit v1.2.3