Fix compiler warnings (#17245)

This commit is contained in:
Riccardo Schirone 2020-07-09 06:04:31 +02:00 committed by GitHub
parent 04074845e4
commit cb5872c5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -1926,8 +1926,8 @@ R_API int r_core_anal_esil_fcn(RCore *core, ut64 at, ut64 from, int reftype, int
return 0;
}
static int find_sym_flag(void *a1, void *a2) {
RFlagItem *f = (RFlagItem *)a2;
static int find_sym_flag(const void *a1, const void *a2) {
const RFlagItem *f = (const RFlagItem *)a2;
return f->space && !strcmp (f->space->name, R_FLAGS_FS_SYMBOLS)? 0: 1;
}

View File

@ -2580,7 +2580,7 @@ static char *find_ch_after_macro(char *ptr, char ch) {
static int r_core_cmd_subst(RCore *core, char *cmd) {
ut64 rep = strtoull (cmd, NULL, 10);
int ret = 0, orep;
char *cmt, *colon = NULL, *icmd = NULL;
char *colon = NULL, *icmd = NULL;
bool tmpseek = false;
bool original_tmpseek = core->tmpseek;
@ -2626,7 +2626,6 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
}
if (*icmd && !strchr (icmd, '"')) {
char *hash = icmd;
cmt = NULL;
for (hash = icmd + 1; *hash; hash++) {
if (*hash == '\\') {
hash++;
@ -2641,7 +2640,6 @@ static int r_core_cmd_subst(RCore *core, char *cmd) {
if (hash && *hash) {
*hash = 0;
r_str_trim_tail (icmd);
cmt = hash + 1;
}
}
if (*cmd != '"') {