summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorLutz Helwing <lutz_helwing@mentor.com>2015-07-13 16:52:14 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2015-07-21 12:48:27 +0200
commit98e932adee2a76bda3c2630f348196216549a45a (patch)
tree1658983ac5940b71c158da20421db9054f9500ca /src/examples
parent199ff0e7f736d848a7e01a12f04ddb21ecf36d74 (diff)
downloadDLT-daemon-98e932adee2a76bda3c2630f348196216549a45a.tar.gz
Removed all trailing whitespaces
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/dlt-example-filetransfer.c20
-rwxr-xr-xsrc/examples/dlt-example-non-verbose-1.xml6
-rw-r--r--src/examples/dlt-example-user-common-api.c8
-rwxr-xr-xsrc/examples/dlt-example-user.c10
4 files changed, 22 insertions, 22 deletions
diff --git a/src/examples/dlt-example-filetransfer.c b/src/examples/dlt-example-filetransfer.c
index 23499ce..a56e09d 100644
--- a/src/examples/dlt-example-filetransfer.c
+++ b/src/examples/dlt-example-filetransfer.c
@@ -92,8 +92,8 @@ void usage()
printf("-a apid - Set application id to apid (default: FLTR)\n");
printf("-c ctid - Set context id to ctid (default: FLTR)\n");
printf("-t ms - Timeout between file packages in ms (minimum 1 ms)\n");
- printf("-d - Flag to delete the file after the transfer (default: false)\n");
- printf("-i - Flag to log file infos to DLT before transfer file (default: false)\n");
+ printf("-d - Flag to delete the file after the transfer (default: false)\n");
+ printf("-i - Flag to log file infos to DLT before transfer file (default: false)\n");
printf("-h - This help\n");
}
@@ -101,13 +101,13 @@ void usage()
//!Main program dlt-test-filestransfer starts here
int main(int argc, char* argv[])
-{
+{
//char str[MAXSTRLEN];
int opt, timeout;
char apid[DLT_ID_SIZE];
char ctid[DLT_ID_SIZE];
-
+
//char version[255];
int index;
int dflag = 0;
@@ -172,7 +172,7 @@ int main(int argc, char* argv[])
}
}
}
-
+
for (index = optind; index < argc; index++)
{
file = argv[index];
@@ -198,11 +198,11 @@ int main(int argc, char* argv[])
//Register the application at the dlt-daemon
DLT_REGISTER_APP(apid,FLTR_APP_DESC);
-
+
//Register the context of the main program at the dlt-daemon
DLT_REGISTER_CONTEXT(fileContext,ctid,FLTR_CONTEXT_DESC);
-
- //More details in corresponding methods
+
+ //More details in corresponding methods
if( iflag )
{
dlt_user_log_file_infoAbout(&fileContext,file);
@@ -212,11 +212,11 @@ int main(int argc, char* argv[])
{
printf("File couldn't be transferred. Please check the dlt log messages.\n");
}
-
+
//Unregister the context in which the file transfer happened from the dlt-daemon
DLT_UNREGISTER_CONTEXT(fileContext);
//Unregister the context of the main program from the dlt-daemon
DLT_UNREGISTER_APP();
-
+
return 0;
}
diff --git a/src/examples/dlt-example-non-verbose-1.xml b/src/examples/dlt-example-non-verbose-1.xml
index 0a49302..e1c34e2 100755
--- a/src/examples/dlt-example-non-verbose-1.xml
+++ b/src/examples/dlt-example-non-verbose-1.xml
@@ -313,7 +313,7 @@
</fx:MANUFACTURER-EXTENSION>
</fx:FRAME>
</fx:FRAMES>
-
+
<!--*************************** signals **************************-->
<fx:SIGNALS>
<!--======================= BOOL =====================-->
@@ -388,9 +388,9 @@
</fx:SIGNAL>
</fx:SIGNALS>
</fx:ELEMENTS>
-
+
<!--********************* PROCESSING INFORMATION *********************-->
-
+
<fx:PROCESSING-INFORMATION>
<!--*************************** codings ****************************-->
<fx:CODINGS>
diff --git a/src/examples/dlt-example-user-common-api.c b/src/examples/dlt-example-user-common-api.c
index 061c948..dba4897 100644
--- a/src/examples/dlt-example-user-common-api.c
+++ b/src/examples/dlt-example-user-common-api.c
@@ -97,7 +97,7 @@ void usage()
int main(int argc, char* argv[])
{
#ifdef DLT_TEST_ENABLE
- int cflag = 0;
+ int cflag = 0;
char *svalue = 0;
char *zvalue = 0;
#endif /* DLT_TEST_ENABLE */
@@ -112,7 +112,7 @@ int main(int argc, char* argv[])
char *text;
int num,maxnum;
int delay;
-
+
int state=-1,newstate;
opterr = 0;
@@ -200,7 +200,7 @@ int main(int argc, char* argv[])
DLT_REGISTER_CONTEXT_APP(mycontext,"TEST","LOG","Test Context for Logging");
text = message;
-
+
if (nvalue)
{
maxnum = atoi(nvalue);
@@ -270,7 +270,7 @@ int main(int argc, char* argv[])
printf("Client connected!\n");
}
}
-
+
if (gflag)
{
/* Non-verbose mode */
diff --git a/src/examples/dlt-example-user.c b/src/examples/dlt-example-user.c
index 6d041c3..e428047 100755
--- a/src/examples/dlt-example-user.c
+++ b/src/examples/dlt-example-user.c
@@ -117,7 +117,7 @@ int main(int argc, char* argv[])
int aflag = 0;
int kflag = 0;
#ifdef DLT_TEST_ENABLE
- int cflag = 0;
+ int cflag = 0;
char *svalue = 0;
char *zvalue = 0;
#endif /* DLT_TEST_ENABLE */
@@ -133,7 +133,7 @@ int main(int argc, char* argv[])
char *text;
int num,maxnum;
int delay;
-
+
int state=-1,newstate;
opterr = 0;
@@ -262,9 +262,9 @@ int main(int argc, char* argv[])
if(mvalue)
{
printf("Set log mode to %d\n",atoi(mvalue));
- dlt_set_log_mode(atoi(mvalue));
+ dlt_set_log_mode(atoi(mvalue));
}
-
+
if (gflag)
{
@@ -350,7 +350,7 @@ int main(int argc, char* argv[])
printf("Client connected!\n");
}
}
-
+
if (gflag)
{
/* Non-verbose mode */