Fix build on pre-c99 compilers

This commit is contained in:
pancake 2020-03-04 11:59:34 +01:00
parent bb78ef3457
commit eef255a8ba
2 changed files with 3 additions and 2 deletions

View File

@ -8712,7 +8712,7 @@ static void cmd_anal_aav(RCore *core, const char *input) {
oldstr = r_print_rowlog (core->print, sdb_fmt ("0x%08"PFMT64x"-0x%08"PFMT64x" in 0x%"PFMT64x"-0x%"PFMT64x" (aav)", from, to, begin, end));
r_print_rowlog_done (core->print, oldstr);
(void)r_core_search_value_in_range (core, map->itv, from, to, vsize, _CbInRangeAav, (void *)asterisk);
}
}
}
r_list_free (list);
}

View File

@ -2064,7 +2064,8 @@ R_API void r_core_debug_rr(RCore *core, RReg *reg, int mode) {
colorend = (delta && use_colors)? Color_RESET: "";
const char *role = "";
for (int i = 0; i < R_REG_NAME_LAST; i++) {
int i;
for (i = 0; i < R_REG_NAME_LAST; i++) {
const char *t = r_reg_get_name (reg, i);
if (t && !strcmp (t, r->name)) {
role = r_reg_get_role (i);