Adapt to new bits library functions api
This commit is contained in:
parent
a8e8ab997e
commit
427a7db88a
1 changed files with 2 additions and 2 deletions
|
|
@ -717,7 +717,7 @@ type_snmp2xml(yang_stmt *ys,
|
|||
clixon_err(OE_UNIX, errno, "cbuf_new");
|
||||
goto done;
|
||||
}
|
||||
if ((ret = yang_val2bitsstr(yrestype, requestvb->val.bitstring, requestvb->val_len, cb)) < 0)
|
||||
if ((ret = yang_val2bitsstr(NULL, yrestype, requestvb->val.bitstring, requestvb->val_len, cb)) < 0)
|
||||
goto done;
|
||||
if (ret == 0){
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "Invalid bits value");
|
||||
|
|
@ -1006,7 +1006,7 @@ type_xml2snmp(char *snmpstr,
|
|||
*asn1type = ASN_OCTET_STR;
|
||||
break;
|
||||
case CLIXON_ASN_BIT_STRING:
|
||||
if ((ret = yang_bitsstr2val(yrestype, snmpstr, snmpval, snmplen)) < 0)
|
||||
if ((ret = yang_bitsstr2val(NULL, yrestype, snmpstr, snmpval, snmplen)) < 0)
|
||||
goto done;
|
||||
if (ret == 0){
|
||||
clixon_debug(CLIXON_DBG_DEFAULT, "Invalid bits valstr %s", snmpstr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue