From 74b4a04d8e9a662a76cdfc285316f7f2ba895a1f Mon Sep 17 00:00:00 2001 From: Lars Rademacher Date: Mon, 21 Oct 2013 01:33:49 +0200 Subject: [PATCH] openocd: fixed static definition As the target_to_arm function is needed in the OpenOCD-Wrapper, it can't be any longer static. Change-Id: I7099b99f2f1433359567278be16e4d71e06f28a7 --- debuggers/openocd/src/target/arm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debuggers/openocd/src/target/arm.h b/debuggers/openocd/src/target/arm.h index e4764042..236ece81 100644 --- a/debuggers/openocd/src/target/arm.h +++ b/debuggers/openocd/src/target/arm.h @@ -178,10 +178,10 @@ struct arm { }; /** Convert target handle to generic ARM target state handle. */ -static inline struct arm *target_to_arm(struct target *target) +inline struct arm *target_to_arm(struct target *target) { assert(target != NULL); - return target->arch_info; + return (struct arm*)(target->arch_info); } static inline bool is_arm(struct arm *arm)