snmp: fix coding style

no need to initialize global static variables to NULL
This commit is contained in:
Simon Goldschmidt 2018-11-22 12:51:46 +01:00
parent c23aa713f9
commit ed59260b92

View File

@ -71,8 +71,11 @@ const char *snmp_community_write = SNMP_COMMUNITY_WRITE;
/** SNMP community string for sending traps */
const char *snmp_community_trap = SNMP_COMMUNITY_TRAP;
snmp_write_callback_fct snmp_write_callback = NULL;
void *snmp_write_callback_arg = NULL;
snmp_write_callback_fct snmp_write_callback;
void *snmp_write_callback_arg;
snmp_inform_callback_fct snmp_inform_callback;
void *snmp_inform_callback_arg;
#if LWIP_SNMP_CONFIGURE_VERSIONS
@ -155,9 +158,6 @@ snmp_v3_enable(u8_t enable)
#endif
snmp_inform_callback_fct snmp_inform_callback = NULL;
void* snmp_inform_callback_arg = NULL;
/**
* @ingroup snmp_core
* Returns current SNMP community string.