snmp_trap_dst_ip_set: ip_addr_t pointer can be const

This commit is contained in:
goldsimon 2015-10-02 09:58:31 +02:00
parent a9b6b5b704
commit 180ed573a5
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ snmp_trap_dst_enable(u8_t dst_idx, u8_t enable)
* @param dst IPv4 address in host order. * @param dst IPv4 address in host order.
*/ */
void void
snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst) snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst)
{ {
if (dst_idx < SNMP_TRAP_DESTINATIONS) if (dst_idx < SNMP_TRAP_DESTINATIONS)
{ {

View File

@ -55,7 +55,7 @@ struct snmp_obj_id
/** Agent setup, start listening to port 161. */ /** Agent setup, start listening to port 161. */
void snmp_init(void); void snmp_init(void);
void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable); void snmp_trap_dst_enable(u8_t dst_idx, u8_t enable);
void snmp_trap_dst_ip_set(u8_t dst_idx, ip_addr_t *dst); void snmp_trap_dst_ip_set(u8_t dst_idx, const ip_addr_t *dst);
const char * snmp_get_community(void); const char * snmp_get_community(void);
void snmp_set_community(const char * const community); void snmp_set_community(const char * const community);