From 2c9ceea3cfe38df85cf90bddc46677ea1268f662 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Mon, 3 Feb 2014 12:52:22 +0100 Subject: [PATCH] msg_in.c, snmp_msg.h: convert snmp_community to a modifiable pointer Signed-off-by: Freddie Chopin --- src/core/snmp/msg_in.c | 2 +- src/include/lwip/snmp_msg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/snmp/msg_in.c b/src/core/snmp/msg_in.c index a66fda80..718c3886 100644 --- a/src/core/snmp/msg_in.c +++ b/src/core/snmp/msg_in.c @@ -51,7 +51,7 @@ /** SNMP v1 == 0 */ const s32_t snmp_version = 0; /** SNMP community string */ -const char snmp_community[] = "public"; +const char *snmp_community = "public"; /* statically allocated buffers for SNMP_CONCURRENT_REQUESTS */ struct snmp_msg_pstat msg_input_list[SNMP_CONCURRENT_REQUESTS]; diff --git a/src/include/lwip/snmp_msg.h b/src/include/lwip/snmp_msg.h index a4d4ad76..01ae5807 100644 --- a/src/include/lwip/snmp_msg.h +++ b/src/include/lwip/snmp_msg.h @@ -283,7 +283,7 @@ struct snmp_msg_trap /** Agent Version constant, 0 = v1 oddity */ extern const s32_t snmp_version; /** Agent community string */ -extern const char snmp_community[]; +extern const char *snmp_community; extern struct snmp_msg_trap trap_msg;