summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLassi Marttala <Lassi.LM.Marttala@partner.bmw.de>2012-07-18 11:27:50 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2012-11-26 12:39:00 +0100
commit7ed77016669aded1bc30ae4fb7ef063bd290b883 (patch)
tree41a1e46663689cb463f80954d5f510336448caf0
parent9c5878036fb10015697269ebc0bf421446c49eb8 (diff)
downloadDLT-daemon-7ed77016669aded1bc30ae4fb7ef063bd290b883.tar.gz
[GDLT-115]: Prevent return value from DLT_REGISTER_APP
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
-rw-r--r--[-rwxr-xr-x]include/dlt/dlt_user_macros.h4
-rw-r--r--src/examples/dlt-example-filetransfer.c2
-rw-r--r--src/tests/dlt-test-filetransfer.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/dlt/dlt_user_macros.h b/include/dlt/dlt_user_macros.h
index 1f95f3c..ab17108 100755..100644
--- 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)
/**
diff --git a/src/examples/dlt-example-filetransfer.c b/src/examples/dlt-example-filetransfer.c
index b1d3e1a..01867de 100644
--- a/src/examples/dlt-example-filetransfer.c
+++ b/src/examples/dlt-example-filetransfer.c
@@ -194,7 +194,7 @@ int main(int argc, char* argv[])
}
//Register the application at the dlt-daemon
- dltResult = DLT_REGISTER_APP(apid,FLTR_APP_DESC);
+ DLT_REGISTER_APP(apid,FLTR_APP_DESC);
//Register the context of the main program at the dlt-daemon
dltResult = DLT_REGISTER_CONTEXT(fileContext,ctid,FLTR_CONTEXT_DESC);
diff --git a/src/tests/dlt-test-filetransfer.c b/src/tests/dlt-test-filetransfer.c
index 2d0b9ef..b436909 100644
--- a/src/tests/dlt-test-filetransfer.c
+++ b/src/tests/dlt-test-filetransfer.c
@@ -373,7 +373,7 @@ int main(void)
file3_3 = "dlt-test-filetransfer-doesntExist_3";
//Register the application at the dlt-daemon
- dltResult = DLT_REGISTER_APP("FLTR","Test Application filetransfer");
+ DLT_REGISTER_APP("FLTR","Test Application filetransfer");
// if(dltResult < 0){
// printf("Error: DLT_REIGSTER_APP: FLTR\n");
// return -1;