tmp = realloc(buf, rc + 1);
if (!tmp) {
- fprintf(stderr, "%s\n", _("failed to allocate memory"));
+ print_error("%s", _("failed to allocate memory"));
return NULL;
}
decl = cdecl_parse_decl(arg);
if (!decl) {
err = cdecl_get_error();
- fprintf(stderr, "%s\n", err->str);
+ print_error("%s", err->str);
goto out;
}