Code formatting

This commit is contained in:
Mico Micic 2024-03-04 12:53:07 +01:00 committed by Olof Hagsand
parent 5c05748cfe
commit a8e8ab997e

View file

@ -611,7 +611,6 @@ type_yang2asn1(yang_stmt *ys,
(strcmp(display_hint, "255a")==0 ||
strcmp(display_hint, "255t")==0))
at = CLIXON_ASN_FIXED_STRING;
/* Special case for bits type because netsnmp lib returns ASN_OCTET_STRING. In this case
we have to define an extended type to be able to handle bits type correctly later on. */
if (strcmp(restype, "bits") == 0){
@ -899,10 +898,8 @@ type_xml2snmp(char *snmpstr,
clixon_err(OE_UNIX, EINVAL, "snmpval or snmplen is NULL");
goto done;
}
if (snmp_yang_type_get(ys, NULL, NULL, &yrestype, NULL)) // XXX yrestype
goto done;
switch (*asn1type){
case CLIXON_ASN_ROWSTATUS:
*asn1type = ASN_INTEGER;