summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-05-06 20:53:52 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-05-06 20:53:52 (GMT)
commit1bda6c517d30d873ff0d92a96380946ef944c9ae (patch)
tree28ab52b2f43e9f8b7021f069f0c2d918798bfd98 /src/arch
parentc5a2674cd52e4eea66154c6fea931d5cc5c1852e (diff)
Removed some GCC warnings by casting variables or moving definitions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@532 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm/v7/post.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/v7/post.c b/src/arch/arm/v7/post.c
index 17dcf62..dce9c86 100644
--- a/src/arch/arm/v7/post.c
+++ b/src/arch/arm/v7/post.c
@@ -280,8 +280,8 @@ void post_process_ldr_instructions(GArchInstruction *instr, GArchProcessor *proc
init_vmpa(&target, VMPA_NO_PHYSICAL, addr);
init_mrange(&trange, &target, 0);
- vmpa2_virt_to_string(&target, MDS_32_BITS, loc, NULL);
- snprintf(name, sizeof(name), "loccc_%s", loc + 2);
+ vmpa2_virt_to_string(&target, MDS_UNDEFINED, loc, NULL);
+ snprintf(name, sizeof(name), "loc_%s", loc + 2);
routine = g_binary_routine_new();
g_binary_routine_set_name(routine, strdup(name));