ret = FALSE; \
goto fail; \
} \
- *s = silc_smalloc_ua(stack1, *s_len + 1); \
+ *s = silc_smalloc(stack1, *s_len + 1); \
if (*s) { \
silc_utf8_encode(rdata, rdata_len, (enc), *s, *s_len); \
(*s)[*s_len] = '\0'; \
}
/* Decode by the type user expects the data to be. */
- switch (type) {
+ switch ((long)type) {
case SILC_ASN1_TAG_ANY:
{