[libosmo-sccp PATCH 1/7] mtp_pcap: mark structure as constant as well as static.

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Diego Elio Pettenò flameeyes at flameeyes.eu
Wed Jul 4 21:38:03 UTC 2012


Signed-off-by: Diego Elio Pettenò <flameeyes at flameeyes.eu>
---
 src/mtp_pcap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mtp_pcap.c b/src/mtp_pcap.c
index 052813f..9b6de81 100644
--- a/src/mtp_pcap.c
+++ b/src/mtp_pcap.c
@@ -51,7 +51,7 @@ struct pcaprec_hdr {
 
 int mtp_pcap_write_header(int fd)
 {
-	static struct pcap_hdr hdr = {
+	static const struct pcap_hdr hdr = {
 		.magic_number	= 0xa1b2c3d4,
 		.version_major	= 2,
 		.version_minor	= 4,
-- 
1.7.8.6





More information about the OpenBSC mailing list