From 777b17c374389b88e2f5d658c0827e8e8708d140 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 9 Apr 2018 13:04:53 -0700 Subject: [PATCH] Remove const from fields in a dynamically-allocated structure. There's no need for them to be const, and that causes compiler warnings when you try to give them a value. Change-Id: Ib9bb034f3876abb7e86b6c9f41ebdd35192b5af3 Reviewed-on: https://code.wireshark.org/review/26831 Petri-Dish: Guy Harris Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris --- plugins/epan/profinet/packet-dcerpc-pn-io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/epan/profinet/packet-dcerpc-pn-io.c b/plugins/epan/profinet/packet-dcerpc-pn-io.c index 2882d86ba3..7e3f2e5c0d 100644 --- a/plugins/epan/profinet/packet-dcerpc-pn-io.c +++ b/plugins/epan/profinet/packet-dcerpc-pn-io.c @@ -3079,11 +3079,11 @@ typedef struct pnio_ar_s { /* controller only */ /*const char controllername[33];*/ - const guint8 controllermac[6]; + guint8 controllermac[6]; guint16 controlleralarmref; /* device only */ - const guint8 devicemac[6]; + guint8 devicemac[6]; guint16 devicealarmref; guint16 arType; } pnio_ar_t;