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;