Revert bd3465c9a3fbeddf83980dc07eaac588320f7d (warning remains fixed)

This reverts commit titled "Fixed free const warning".
This commit is contained in:
Khairul Kasmiran 2018-03-15 19:20:23 +08:00
parent a5c9fc7855
commit 0f275ea9a6
2 changed files with 2 additions and 2 deletions

View File

@ -1711,7 +1711,7 @@ static int cb_scrstrconv(void *user, void *data) {
}
return false;
} else {
free (core->print->strconv_mode);
free ((char *)core->print->strconv_mode);
core->print->strconv_mode = strdup (node->value);
}
return true;

View File

@ -88,7 +88,7 @@ typedef struct r_print_t {
int lines_cache_sz;
int lines_abs;
bool esc_bslash;
char *strconv_mode;
const char *strconv_mode;
// when true it uses row_offsets
bool calc_row_offsets;