Swap parameters around with parse_syntax_strval(..) for consistency with
other parse_* APIs in bsnmp* MFC after: 3 days Noted by: bz
This commit is contained in:
parent
71aa1443ea
commit
30dcd18b90
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=311175
@ -849,10 +849,9 @@ parse_pair_numoid_val(char *str, struct snmp_value *snmp_val)
|
|||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX-BZ aruments should be swapped. */
|
|
||||||
static int32_t
|
static int32_t
|
||||||
parse_syntax_strval(struct snmp_toolinfo *snmptoolctx, char *str,
|
parse_syntax_strval(struct snmp_toolinfo *snmptoolctx,
|
||||||
struct snmp_object *object)
|
struct snmp_object *object, char *str)
|
||||||
{
|
{
|
||||||
uint32_t len;
|
uint32_t len;
|
||||||
enum snmp_syntax syn;
|
enum snmp_syntax syn;
|
||||||
@ -924,7 +923,7 @@ parse_pair_stroid_val(struct snmp_toolinfo *snmptoolctx,
|
|||||||
return (-1);
|
return (-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parse_syntax_strval(snmptoolctx, ptr + 1, obj) < 0)
|
if (parse_syntax_strval(snmptoolctx, obj, ptr + 1) < 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
return (1);
|
return (1);
|
||||||
|
Loading…
Reference in New Issue
Block a user