Skip to content

Commit

Permalink
Adapt to new bits library functions api
Browse files Browse the repository at this point in the history
  • Loading branch information
Mico Micic authored and olofhagsand committed Apr 3, 2024
1 parent a8e8ab9 commit 427a7db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/snmp/snmp_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 427a7db

Please sign in to comment.