From 47578806b5b0ffc5c74d53d742a40d5b20248ebb Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 23 Feb 2010 18:27:04 +0000 Subject: [PATCH] Removed semicolon from #define to allow the semicolon to be placed naturally after the macro is used --- core/lib/sensors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/sensors.h b/core/lib/sensors.h index 2f4595665..07955a924 100644 --- a/core/lib/sensors.h +++ b/core/lib/sensors.h @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: sensors.h,v 1.8 2010/01/14 20:13:34 adamdunkels Exp $ + * @(#)$Id: sensors.h,v 1.9 2010/02/23 18:27:04 adamdunkels Exp $ */ #ifndef __SENSORS_H__ @@ -51,7 +51,7 @@ const struct sensors_sensor name = { type, value, configure, status } #define SENSORS(...) \ const struct sensors_sensor *sensors[] = {__VA_ARGS__, NULL}; \ -unsigned char sensors_flags[SENSORS_NUM]; +unsigned char sensors_flags[SENSORS_NUM] struct sensors_sensor { char * type;