svn commit: r311465 - stable/11/usr.sbin/bsnmpd/tools/bsnmptools
Ngie Cooper
ngie at FreeBSD.org
Fri Jan 6 03:53:02 UTC 2017
Author: ngie
Date: Fri Jan 6 03:53:01 2017
New Revision: 311465
URL: https://svnweb.freebsd.org/changeset/base/311465
Log:
MFC r311175:
Swap parameters around with parse_syntax_strval(..) for consistency with
other parse_* APIs in bsnmp*
Noted by: bz
Modified:
stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
==============================================================================
--- stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c Fri Jan 6 00:41:30 2017 (r311464)
+++ stable/11/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c Fri Jan 6 03:53:01 2017 (r311465)
@@ -840,10 +840,9 @@ parse_pair_numoid_val(char *str, struct
return (1);
}
-/* XXX-BZ aruments should be swapped. */
static int32_t
-parse_syntax_strval(struct snmp_toolinfo *snmptoolctx, char *str,
- struct snmp_object *object)
+parse_syntax_strval(struct snmp_toolinfo *snmptoolctx,
+ struct snmp_object *object, char *str)
{
uint32_t len;
enum snmp_syntax syn;
@@ -915,7 +914,7 @@ parse_pair_stroid_val(struct snmp_toolin
return (-1);
}
- if (parse_syntax_strval(snmptoolctx, ptr + 1, obj) < 0)
+ if (parse_syntax_strval(snmptoolctx, obj, ptr + 1) < 0)
return (-1);
return (1);
More information about the svn-src-stable
mailing list