mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-18 22:26:41 +08:00
- Changed the names of some variables in SNMP module to avoid them shadowing each other (which produces a lot of warnings and makes the code hard to maintain)
- Added missing defines for 3 snmp-functions if LWIP_SNMP==0
This commit is contained in:
@@ -50,7 +50,7 @@ struct snmp_obj_id
|
||||
};
|
||||
|
||||
/* system */
|
||||
void snmp_set_sysdesr(u8_t* str, u8_t* strlen);
|
||||
void snmp_set_sysdesr(u8_t* str, u8_t* len);
|
||||
void snmp_set_sysobjid(struct snmp_obj_id *oid);
|
||||
void snmp_get_sysobjid_ptr(struct snmp_obj_id **oid);
|
||||
void snmp_inc_sysuptime(void);
|
||||
@@ -182,10 +182,14 @@ void snmp_get_snmpenableauthentraps(u8_t *value);
|
||||
#else
|
||||
|
||||
/* system */
|
||||
#define snmp_set_sysdesr(str, strlen)
|
||||
#define snmp_set_sysdesr(str, len)
|
||||
#define snmp_set_sysobjid(oid);
|
||||
#define snmp_get_sysobjid_ptr(oid)
|
||||
#define snmp_inc_sysuptime()
|
||||
#define snmp_get_sysuptime(value)
|
||||
#define snmp_set_syscontact(ocstr, ocstrlen);
|
||||
#define snmp_set_sysname(ocstr, ocstrlen);
|
||||
#define snmp_set_syslocation(ocstr, ocstrlen);
|
||||
|
||||
/* network interface */
|
||||
#define snmp_add_ifinoctets(ni,value)
|
||||
|
||||
Reference in New Issue
Block a user