Module: xenomai-head
Branch: master
Commit: dc4ed34beb9197eac520e602d272b3d67c7b8d2f
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=dc4ed34beb9197eac520e602d272b3d67c7b8d2f

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Tue Jun  2 22:13:55 2009 +0200

Remove compilation warning

---

 ksrc/arch/arm/hal.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/ksrc/arch/arm/hal.c b/ksrc/arch/arm/hal.c
index a8e7274..9086ef0 100644
--- a/ksrc/arch/arm/hal.c
+++ b/ksrc/arch/arm/hal.c
@@ -69,12 +69,13 @@ int rthal_timer_request(void (*handler)(void),
 
 #ifdef CONFIG_GENERIC_CLOCKEVENTS
     unsigned long dummy, *tmfreq = &dummy;
+    int res;    
 
     if (rthal_timerfreq_arg == 0)
         tmfreq = &rthal_tunables.timer_freq;
 
-    int res = ipipe_request_tickdev(RTHAL_TIMER_DEVICE, mode_emul,
-                                   tick_emul, cpu, tmfreq);
+    res = ipipe_request_tickdev(RTHAL_TIMER_DEVICE, mode_emul,
+                               tick_emul, cpu, tmfreq);
     
     switch (res) {
     case CLOCK_EVT_MODE_PERIODIC:


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to