Little warning cleanups (#13398)

This commit is contained in:
David CARLIER 2019-03-17 09:54:18 +00:00 committed by radare
parent 2e393212c1
commit a5899f7d3a
3 changed files with 2 additions and 3 deletions

View File

@ -766,7 +766,6 @@ R_API int r_anal_op_reg_delta(RAnal *anal, ut64 addr, const char *name) {
ut8 buf[32];
anal->iob.read_at (anal->iob.io, addr, buf, sizeof (buf));
RAnalOp op = { 0 };
ut64 ret = UT64_MAX;
if (r_anal_op (anal, &op, addr, buf, sizeof (buf), R_ANAL_OP_MASK_ALL) > 0) {
if (op.dst && op.dst->reg && op.dst->reg->name && (!name || !strcmp (op.dst->reg->name, name))) {
if (op.src[0]) {

View File

@ -19,7 +19,7 @@ static bool check_bytes(const ut8 *buf, ut64 length) {
int i;
for (i = 0; i < 4; i++) {
const ut8 *needle = (const ut8 *) features[i];
if (!r_mem_mem (buf, 4096, needle, strlen (needle))) {
if (!r_mem_mem (buf, 4096, needle, strlen ((char *)needle))) {
break;
}
}

View File

@ -554,7 +554,7 @@ R_API R_OWN char *r_type_func_guess(Sdb *TDB, R_NONNULL char *func_name) {
int offset = 0;
char *str = func_name;
char *result = NULL;
char *first, *last;
char *first;
r_return_val_if_fail (TDB, false);
r_return_val_if_fail (func_name, false);