extensions CHANGE avoid unnecessary variable
- the variable came from copy pasted code, there was already a variable of
the sufficient type that can be used
diff --git a/src/parser_yin.c b/src/parser_yin.c
index a080d66..617522e 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -7538,7 +7538,6 @@
long long int ll;
unsigned long u;
int i;
- int64_t v_;
#define YIN_EXTCOMPLEX_GETPLACE(STMT, TYPE) \
p = lys_ext_complex_get_substmt(STMT, ext, &info); \
@@ -7838,10 +7837,10 @@
}
/* convert it to int32_t */
- v_ = strtoll(value, NULL, 10);
+ ll = strtoll(value, NULL, 10);
/* range check */
- if (v_ < INT32_MIN || v_ > INT32_MAX) {
+ if (ll < INT32_MIN || ll > INT32_MAX) {
LOGVAL(LYE_INARG, LY_VLOG_NONE, NULL, value, node->name);
goto error;
}
@@ -7852,7 +7851,7 @@
/* store the value */
*(int32_t **)p = malloc(sizeof(int32_t));
- (**(int32_t **)p) = (int32_t)v_;
+ (**(int32_t **)p) = (int32_t)ll;
YIN_EXTCOMPLEX_ENLARGE(int32_t*);
} else if (!strcmp(node->name, "position")) {