- 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:
goldsimon
2007-04-02 20:39:24 +00:00
parent 2f53df93e8
commit 34fcccc50b
3 changed files with 15 additions and 11 deletions

View File

@@ -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)