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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Tue Jan 15 09:39:18 2013 +0100

nucleus: Avoid bool type to please 2.4 kernels

bool was introduced only with 2.6.x.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 ksrc/nucleus/intr.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ksrc/nucleus/intr.c b/ksrc/nucleus/intr.c
index 603ae22..1cb05b8 100644
--- a/ksrc/nucleus/intr.c
+++ b/ksrc/nucleus/intr.c
@@ -897,14 +897,14 @@ EXPORT_SYMBOL_GPL(xnintr_affinity);
 
 #include <nucleus/vfile.h>
 
-static bool xnintr_is_timer_irq(int irq)
+static int xnintr_is_timer_irq(int irq)
 {
        int cpu;
 
        for_each_online_cpu(cpu)
                if (irq == XNARCH_PERCPU_TIMER_IRQ(cpu))
-                       return true;
-       return false;
+                       return 1;
+       return 0;
 }
 
 #ifdef CONFIG_XENO_OPT_STATS


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to