Code formatting
This commit is contained in:
parent
5c05748cfe
commit
a8e8ab997e
1 changed files with 1 additions and 4 deletions
|
|
@ -611,7 +611,6 @@ type_yang2asn1(yang_stmt *ys,
|
||||||
(strcmp(display_hint, "255a")==0 ||
|
(strcmp(display_hint, "255a")==0 ||
|
||||||
strcmp(display_hint, "255t")==0))
|
strcmp(display_hint, "255t")==0))
|
||||||
at = CLIXON_ASN_FIXED_STRING;
|
at = CLIXON_ASN_FIXED_STRING;
|
||||||
|
|
||||||
/* Special case for bits type because netsnmp lib returns ASN_OCTET_STRING. In this case
|
/* 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. */
|
we have to define an extended type to be able to handle bits type correctly later on. */
|
||||||
if (strcmp(restype, "bits") == 0){
|
if (strcmp(restype, "bits") == 0){
|
||||||
|
|
@ -899,10 +898,8 @@ type_xml2snmp(char *snmpstr,
|
||||||
clixon_err(OE_UNIX, EINVAL, "snmpval or snmplen is NULL");
|
clixon_err(OE_UNIX, EINVAL, "snmpval or snmplen is NULL");
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (snmp_yang_type_get(ys, NULL, NULL, &yrestype, NULL)) // XXX yrestype
|
if (snmp_yang_type_get(ys, NULL, NULL, &yrestype, NULL)) // XXX yrestype
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
switch (*asn1type){
|
switch (*asn1type){
|
||||||
case CLIXON_ASN_ROWSTATUS:
|
case CLIXON_ASN_ROWSTATUS:
|
||||||
*asn1type = ASN_INTEGER;
|
*asn1type = ASN_INTEGER;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue