From 98e932adee2a76bda3c2630f348196216549a45a Mon Sep 17 00:00:00 2001 From: Lutz Helwing Date: Mon, 13 Jul 2015 16:52:14 +0200 Subject: Removed all trailing whitespaces Signed-off-by: Alexander Wenzel --- src/examples/dlt-example-filetransfer.c | 20 ++++++++++---------- src/examples/dlt-example-non-verbose-1.xml | 6 +++--- src/examples/dlt-example-user-common-api.c | 8 ++++---- src/examples/dlt-example-user.c | 10 +++++----- 4 files changed, 22 insertions(+), 22 deletions(-) (limited to 'src/examples') 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 @@ - + @@ -388,9 +388,9 @@ - + - + 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 */ -- cgit v1.2.1