- 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

@@ -369,12 +369,12 @@ snmp_mib_node_find(struct mib_list_rootnode *rn, s32_t objid, struct mib_list_no
}
else
{
struct mib_list_rootnode *rn;
struct mib_list_rootnode *r;
if (n->nptr->node_type == MIB_NODE_LR)
{
rn = (struct mib_list_rootnode *)n->nptr;
if (rn->count > 1)
r = (struct mib_list_rootnode *)n->nptr;
if (r->count > 1)
{
/* can't delete node */
fc = 2;