From 7ed77016669aded1bc30ae4fb7ef063bd290b883 Mon Sep 17 00:00:00 2001 From: Lassi Marttala Date: Wed, 18 Jul 2012 11:27:50 +0200 Subject: [GDLT-115]: Prevent return value from DLT_REGISTER_APP Signed-off-by: Alexander Wenzel --- include/dlt/dlt_user_macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100755 => 100644 include/dlt/dlt_user_macros.h (limited to 'include/dlt/dlt_user_macros.h') diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h old mode 100755 new mode 100644 index 1f95f3c..ab17108 --- a/include/dlt/dlt_user_macros.h +++ b/include/dlt/dlt_user_macros.h @@ -99,9 +99,9 @@ extern DltContext CONTEXT; * @param APPID application id with maximal four characters * @param DESCRIPTION ASCII string containing description */ -#define DLT_REGISTER_APP(APPID,DESCRIPTION) \ +#define DLT_REGISTER_APP(APPID,DESCRIPTION) do {\ dlt_check_library_version(_DLT_PACKAGE_MAJOR_VERSION, _DLT_PACKAGE_MINOR_VERSION ); \ - dlt_register_app( APPID, DESCRIPTION); + dlt_register_app( APPID, DESCRIPTION);} while(0) /** -- cgit v1.2.1