summaryrefslogtreecommitdiff
path: root/plugins
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
parent0f0cb560006c0ef5eb690f89c4ce720936c9d6f6 (diff)
Cleaned the structure for instructions a little bit.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/androhelpers/switch.c6
-rw-r--r--plugins/pychrysa/arch/instruction.c2
2 files changed, 4 insertions, 4 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);
}
}
diff --git a/plugins/pychrysa/arch/instruction.c b/plugins/pychrysa/arch/instruction.c
index 5e4c19d..ff3d2ad 100644
--- a/plugins/pychrysa/arch/instruction.c
+++ b/plugins/pychrysa/arch/instruction.c
@@ -159,7 +159,7 @@ static PyObject *py_arch_instruction_get_destinations(PyObject *self, PyObject *
instr = G_ARCH_INSTRUCTION(pygobject_get(self));
- count = g_arch_instruction_get_destinations(instr, &dests, &types, NULL);
+ count = g_arch_instruction_get_destinations(instr, &dests, &types);
result = PyTuple_New(count);