summaryrefslogtreecommitdiff
path: root/plugins/androhelpers
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-28 20:20:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-28 20:20:41 (GMT)
commit2c70e3332b43bdcbe215081b697395d254418e48 (patch)
treed3287462eccd65d189f82de8428692bbaf477cbc /plugins/androhelpers
parent0f0cb560006c0ef5eb690f89c4ce720936c9d6f6 (diff)
Cleaned the structure for instructions a little bit.
Diffstat (limited to 'plugins/androhelpers')
-rw-r--r--plugins/androhelpers/switch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/androhelpers/switch.c b/plugins/androhelpers/switch.c
index 2434897..da91a50 100644
--- a/plugins/androhelpers/switch.c
+++ b/plugins/androhelpers/switch.c
@@ -169,7 +169,7 @@ static void link_all_switch_cases(GArchInstruction *instr, const dex_switch *dsw
value = dswitch->sparse.keys[i];
imm = g_imm_operand_new_from_value(MDS_32_BITS_UNSIGNED, value);
- g_arch_instruction_link_with(instr, next, ILT_CASE_JUMP, imm);
+ g_arch_instruction_link_with(instr, next, ILT_CASE_JUMP);
ensure_each_case_has_its_block(next, instrs);
}
@@ -182,7 +182,7 @@ static void link_all_switch_cases(GArchInstruction *instr, const dex_switch *dsw
if (next != NULL)
{
- g_arch_instruction_link_with(instr, next, ILT_CASE_JUMP, NULL);
+ g_arch_instruction_link_with(instr, next, ILT_CASE_JUMP);
ensure_each_case_has_its_block(next, instrs);
}
@@ -222,7 +222,7 @@ static void ensure_each_case_has_its_block(GArchInstruction *instr, GArchInstruc
&& !g_arch_instruction_has_destinations(prev)
&& !(g_arch_instruction_get_flags(prev) & AIF_RETURN_POINT))
{
- g_arch_instruction_link_with(prev, instr, ILT_EXEC_FLOW, NULL);
+ g_arch_instruction_link_with(prev, instr, ILT_EXEC_FLOW);
}
}