Refactor enum2int API

This commit is contained in:
Olof hagsand 2024-01-29 10:59:04 +01:00
parent 99e9b89056
commit 9ecc7e0791
4 changed files with 44 additions and 34 deletions

View file

@ -778,7 +778,7 @@ type_xml2snmp_pre(char *xmlstr0,
{
int retval = -1;
yang_stmt *yrestype; /* resolved type */
char *restype = NULL; /* resolved type */
char *restype = NULL; /* resolved type */
char *str = NULL;
int ret;
cbuf *cb = NULL;
@ -809,7 +809,7 @@ type_xml2snmp_pre(char *xmlstr0,
else
str = "1";
}
else if( strcmp(restype, "decimal64") == 0 ) {
else if (strcmp(restype, "decimal64") == 0 ) {
cg_var* cv = yang_cv_get(ys);
int64_t num;