From 6f322ca626f23b7fb9066a7d6bc81a6a3a8e9c80 Mon Sep 17 00:00:00 2001 From: Eve Entropia Date: Sat, 3 Apr 2010 23:45:59 +0200 Subject: [PATCH] hannes' awesome macro tip --- projekte/protothreads/example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projekte/protothreads/example.c b/projekte/protothreads/example.c index 72c4513..2d70b34 100644 --- a/projekte/protothreads/example.c +++ b/projekte/protothreads/example.c @@ -12,7 +12,7 @@ do { \ timer_set(&timer, t); \ PT_WAIT_UNTIL(pt, timer_expired(&timer)); \ - } while(0); + } while(0) /* Two timers for the two protothreads. */ static struct timer timer1, timer2;