msg_in.c, snmp_msg.h: don't hardcode size of community string

Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
Freddie Chopin 2014-02-03 12:38:21 +01:00 committed by sg
parent 9b4564d7f3
commit 9469bdc93e
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
/** SNMP v1 == 0 */
const s32_t snmp_version = 0;
/** default SNMP community string */
const char snmp_publiccommunity[7] = "public";
const char snmp_publiccommunity[] = "public";
/* statically allocated buffers for SNMP_CONCURRENT_REQUESTS */
struct snmp_msg_pstat msg_input_list[SNMP_CONCURRENT_REQUESTS];

View File

@ -283,7 +283,7 @@ struct snmp_msg_trap
/** Agent Version constant, 0 = v1 oddity */
extern const s32_t snmp_version;
/** Agent default "public" community string */
extern const char snmp_publiccommunity[7];
extern const char snmp_publiccommunity[];
extern struct snmp_msg_trap trap_msg;