Skip to content

Commit

Permalink
Cleanup master
Browse files Browse the repository at this point in the history
 - remove compiler warnings
 - fix file permissions

Signed-off-by: Stefan Vacek <[email protected]>
  • Loading branch information
stefanvacek-intel authored and alexmucde committed Oct 7, 2015
1 parent 9f484fa commit c7d7659
Show file tree
Hide file tree
Showing 66 changed files with 35 additions and 35 deletions.
Empty file modified AUTHORS
100755 → 100644
Empty file.
Empty file modified COPYING
100755 → 100644
Empty file.
Empty file modified LICENSE
100755 → 100644
Empty file.
Empty file modified ReleaseNotes.txt
100755 → 100644
Empty file.
Empty file modified automotive-dlt.pc.in
100755 → 100644
Empty file.
Empty file modified cmake/config.h.cmake
100755 → 100644
Empty file.
Empty file modified cmake/dlt_version.h.cmake
100755 → 100644
Empty file.
Empty file modified distfiles
100755 → 100644
Empty file.
Empty file modified doc/doxygen.cfg.cmake
100755 → 100644
Empty file.
Empty file modified doc/extended_network_trace_doxygen.cfg.cmake
100755 → 100644
Empty file.
Empty file modified doc/images/dlt_architecture.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc/images/dlt_message_flow.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc/images/dlt_overview.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc/images/eclipse-import-links.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified doc/images/genivi_chrome_1_transparent.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified examples/example1/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified examples/example2/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified examples/example3/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified examples/example4/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified include/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified include/dlt/dlt.h
100755 → 100644
Empty file.
Empty file modified include/dlt/dlt_client.h
100755 → 100644
Empty file.
Empty file modified include/dlt/dlt_common.h
100755 → 100644
Empty file.
Empty file modified include/dlt/dlt_protocol.h
100755 → 100644
Empty file.
Empty file modified include/dlt/dlt_types.h
100755 → 100644
Empty file.
Empty file modified src/adaptor/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified src/adaptor/dlt-adaptor-stdin.c
100755 → 100644
Empty file.
Empty file modified src/adaptor/dlt-adaptor-udp.c
100755 → 100644
Empty file.
Empty file modified src/console/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified src/console/dlt-control.c
100755 → 100644
Empty file.
Empty file modified src/console/dlt-convert.c
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion src/console/dlt-logstorage-ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ int dlt_logstorage_message_callback(DltMessage *message, void *data)
char text[DLT_RECEIVE_TEXTBUFSIZE] = {0};
int ret = 0;

(void *)data; /* ignore data */
(void)data; /* ignore data */

if (message == 0)
{
Expand Down
Empty file modified src/console/dlt-receive.c
100755 → 100644
Empty file.
Empty file modified src/console/filter.txt
100755 → 100644
Empty file.
Empty file modified src/daemon/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified src/daemon/dlt-daemon.h
100755 → 100644
Empty file.
Empty file modified src/daemon/dlt-daemon_cfg.h
100755 → 100644
Empty file.
Empty file modified src/daemon/dlt_daemon_common_cfg.h
100755 → 100644
Empty file.
Empty file modified src/examples/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified src/examples/dlt-example-non-verbose-1.xml
100755 → 100644
Empty file.
Empty file modified src/examples/dlt-example-non-verbose.xml
100755 → 100644
Empty file.
Empty file modified src/examples/dlt-example-user-func.c
100755 → 100644
Empty file.
Empty file modified src/examples/dlt-example-user.c
100755 → 100644
Empty file.
Empty file modified src/lib/dlt_client.c
100755 → 100644
Empty file.
Empty file modified src/lib/dlt_client_cfg.h
100755 → 100644
Empty file.
Empty file modified src/lib/dlt_user_cfg.h
100755 → 100644
Empty file.
Empty file modified src/shared/dlt_common.c
100755 → 100644
Empty file.
Empty file modified src/shared/dlt_common_cfg.h
100755 → 100644
Empty file.
Empty file modified src/shared/dlt_user_shared.c
100755 → 100644
Empty file.
Empty file modified src/shared/dlt_user_shared.h
100755 → 100644
Empty file.
Empty file modified src/shared/dlt_user_shared_cfg.h
100755 → 100644
Empty file.
Empty file modified src/tests/dlt-test-client.c
100755 → 100644
Empty file.
Empty file modified src/tests/dlt-test-filetransfer-image.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified src/tests/dlt-test-multi-process.c
100755 → 100644
Empty file.
Empty file modified src/tests/dlt-test-stress.c
100755 → 100644
Empty file.
Empty file modified src/tests/dlt-test-user.c
100755 → 100644
Empty file.
Empty file modified systemd/dlt-dbus.service.cmake
100755 → 100644
Empty file.
Empty file modified systemd/dlt-system.service.cmake
100755 → 100644
Empty file.
Empty file modified systemd/dlt.service.cmake
100755 → 100644
Empty file.
24 changes: 12 additions & 12 deletions tests/gtest_dlt_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void dlt_buffer_info(DltBuffer *);
}


/* Beginn Method: dlt_common::dlt_buffer_init_dynamic */
/* Begin Method: dlt_common::dlt_buffer_init_dynamic */
TEST(t_dlt_buffer_init_dynamic, normal)
{
DltBuffer init_dynamic;
Expand Down Expand Up @@ -118,7 +118,7 @@ TEST(t_dlt_buffer_init_dynamic, nullpointer)



/* Beginn Method: dlt_common::dlt_buffer_free_dynamic */
/* Begin Method: dlt_common::dlt_buffer_free_dynamic */
TEST(t_dlt_buffer_free_dynamic, normal)
{
DltBuffer buf;
Expand Down Expand Up @@ -154,7 +154,7 @@ TEST(t_dlt_buffer_free_dynamic, nullpointer)



/* Beginn Method: dlt_common::dlt_buffer_increase_size */
/* Begin Method: dlt_common::dlt_buffer_increase_size */
TEST(t_dlt_buffer_increase_size, normal)
{
DltBuffer buf;
Expand Down Expand Up @@ -204,7 +204,7 @@ TEST(t_dlt_buffer_increase_size, nullpointer)



/* Beginn Method: dlt_common::dlt_buffer_minimize_size */
/* Begin Method: dlt_common::dlt_buffer_minimize_size */
TEST(t_dlt_buffer_minimize_size, normal)
{
DltBuffer buf;
Expand Down Expand Up @@ -254,7 +254,7 @@ TEST(t_dlt_buffer_minimize_size, nullpointer)



/* Beginn Method: dlt_common::dlt_buffer_reset */
/* Begin Method: dlt_common::dlt_buffer_reset */
TEST(t_dlt_buffer_reset, normal)
{
DltBuffer buf;
Expand All @@ -281,7 +281,7 @@ TEST(t_dlt_buffer_reset, nullpointer)



/* Beginn Method: dlt_common::dlt_buffer_push*/
/* Begin Method: dlt_common::dlt_buffer_push*/
TEST(t_dlt_buffer_push, normal)
{
DltBuffer buf;
Expand All @@ -295,7 +295,7 @@ TEST(t_dlt_buffer_push, normal)

// Push till buffer is full, expected 0
EXPECT_LE(0,dlt_buffer_init_dynamic(&buf, DLT_USER_RINGBUFFER_MIN_SIZE, DLT_USER_RINGBUFFER_MAX_SIZE, DLT_USER_RINGBUFFER_STEP_SIZE));
for(int i=0; i<= (DLT_USER_RINGBUFFER_MIN_SIZE/size); i++)
for(unsigned int i=0; i<= (DLT_USER_RINGBUFFER_MIN_SIZE/size); i++)
{
EXPECT_LE(0, dlt_buffer_push(&buf,(unsigned char *)&test,size));
}
Expand Down Expand Up @@ -343,7 +343,7 @@ TEST(t_dlt_buffer_push, abnormal)
}
TEST(t_dlt_buffer_push, nullpointer)
{
DltBuffer buf;
// DltBuffer buf;
char * test;
int size = sizeof(test);

Expand Down Expand Up @@ -587,7 +587,7 @@ TEST(t_dlt_buffer_push3, abnormal)
}
TEST(t_dlt_buffer_push3, nullpointer)
{
DltBuffer buf;
// DltBuffer buf;
char * test;
int size = sizeof(test);

Expand Down Expand Up @@ -1097,7 +1097,7 @@ TEST(t_dlt_buffer_get_used_size, nullpointer)
TEST(t_dlt_buffer_write_block, normal)
{
DltBuffer buf;
unsigned char * data;
unsigned char * data = NULL;
int write;
int size1 = 516;
int size2 = 1024;
Expand Down Expand Up @@ -1169,7 +1169,7 @@ TEST(t_dlt_buffer_write_block, nullpointer)
TEST(t_dlt_buffer_read_block, normal)
{
DltBuffer buf;
unsigned char * data;
unsigned char * data = NULL;
int write, read;
int size1 = 516;
int size2 = 1024;
Expand Down Expand Up @@ -3002,7 +3002,7 @@ TEST(t_dlt_message_read, normal)
/*---------------------------------------*/

DltBuffer buf;
char *buffer;
char *buffer = NULL;

EXPECT_LE(0, dlt_buffer_init_dynamic(&buf, DLT_USER_RINGBUFFER_MIN_SIZE, DLT_USER_RINGBUFFER_MAX_SIZE, DLT_USER_RINGBUFFER_STEP_SIZE));
EXPECT_LE(0, dlt_file_init(&file, 0));
Expand Down
40 changes: 20 additions & 20 deletions tests/gtest_dlt_daemon_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ TEST(t_dlt_daemon_application_del, normal)
}
TEST(t_dlt_daemon_application_del, abnormal)
{
DltDaemon daemon;
// DltDaemon daemon;
// const char * apid = "TEST";
// pid_t pid = 0;
// const char * desc = "HELLO_TEST";
Expand All @@ -182,11 +182,11 @@ TEST(t_dlt_daemon_application_del, abnormal)
TEST(t_dlt_daemon_application_del, nullpointer)
{
DltDaemon daemon;
DltDaemonApplication *app;
DltDaemonApplication app;

// NULL-Pointer
EXPECT_GE(-1, dlt_daemon_application_del(NULL,NULL, 0));
EXPECT_GE(-1, dlt_daemon_application_del(NULL, app , 0));
EXPECT_GE(-1, dlt_daemon_application_del(NULL, &app , 0));
EXPECT_GE(-1, dlt_daemon_application_del(&daemon,NULL, 0));
}
/* End Method: dlt_daemon_common::dlt_daemon_application_del */
Expand Down Expand Up @@ -654,12 +654,12 @@ TEST(t_dlt_daemon_context_del, normal)
}
TEST(t_dlt_daemon_context_del, abnormal)
{
DltDaemon daemon;
ID4 apid = "TES";
ID4 ctid = "CON";
char desc[255] = "TEST dlt_daemon_context_add";
DltDaemonContext *daecontext;
DltDaemonApplication *app;
// DltDaemon daemon;
// ID4 apid = "TES";
// ID4 ctid = "CON";
// char desc[255] = "TEST dlt_daemon_context_add";
// DltDaemonContext *daecontext;
// DltDaemonApplication *app;

// Context uninitialized
// EXPECT_EQ(0, dlt_daemon_init(&daemon, DLT_DAEMON_RINGBUFFER_MIN_SIZE, DLT_DAEMON_RINGBUFFER_MAX_SIZE, DLT_DAEMON_RINGBUFFER_STEP_SIZE, DLT_RUNTIME_DEFAULT_DIRECTORY,0));
Expand Down Expand Up @@ -691,11 +691,11 @@ TEST(t_dlt_daemon_context_del, abnormal)
TEST(t_dlt_daemon_context_del, nullpointer)
{
DltDaemon daemon;
DltDaemonContext *daecontext;
DltDaemonContext daecontext;

//NULL-Pointer
EXPECT_GE(-1, dlt_daemon_context_del(NULL, NULL, 0));
EXPECT_GE(-1, dlt_daemon_context_del(NULL, daecontext, 0));
EXPECT_GE(-1, dlt_daemon_context_del(NULL, &daecontext, 0));
EXPECT_GE(-1, dlt_daemon_context_del(&daemon, NULL, 0));
}
/* End Method: dlt_daemon_common::dlt_daemon_context_del */
Expand Down Expand Up @@ -1155,11 +1155,11 @@ TEST(t_dlt_daemon_user_send_log_level, abnormal)
TEST(t_dlt_daemon_user_send_log_level, nullpointer)
{
DltDaemon daemon;
DltDaemonContext *daecontext;
DltDaemonContext daecontext;

// NULL-Pointer
EXPECT_GE(-1, dlt_daemon_user_send_log_level(NULL, NULL, 0));
EXPECT_GE(-1, dlt_daemon_user_send_log_level(NULL, daecontext, 0));
EXPECT_GE(-1, dlt_daemon_user_send_log_level(NULL, &daecontext, 0));
EXPECT_GE(-1, dlt_daemon_user_send_log_level(&daemon, NULL, 0));
}
/* End Method: dlt_daemon_common::dlt_daemon_user_send_log_level */
Expand All @@ -1171,11 +1171,11 @@ TEST(t_dlt_daemon_user_send_log_level, nullpointer)
TEST(t_dlt_daemon_user_send_log_state, normal)
{
DltDaemon daemon;
ID4 apid = "TES";
ID4 ctid = "CON";
char desc[255] = "TEST dlt_daemon_context_add";
DltDaemonContext *daecontext;
DltDaemonApplication *app;
// ID4 apid = "TES";
// ID4 ctid = "CON";
// char desc[255] = "TEST dlt_daemon_context_add";
// DltDaemonContext *daecontext;
// DltDaemonApplication *app;
pid_t pid = 18166;
char filename[DLT_DAEMON_COMMON_TEXTBUFSIZE+1];
snprintf(filename,DLT_DAEMON_COMMON_TEXTBUFSIZE,"%s/dlt%d",DLT_USER_DIR,pid);
Expand Down Expand Up @@ -1241,10 +1241,10 @@ TEST(t_dlt_daemon_user_send_log_state, abnormal)
TEST(t_dlt_daemon_user_send_log_state, nullpointer)
{
DltDaemon daemon;
DltDaemonApplication *app;
DltDaemonApplication app;

EXPECT_GE(0, dlt_daemon_user_send_log_state(NULL, NULL, 0));
EXPECT_GE(0, dlt_daemon_user_send_log_state(NULL, app, 0));
EXPECT_GE(0, dlt_daemon_user_send_log_state(NULL, &app, 0));
EXPECT_GE(0, dlt_daemon_user_send_log_state(&daemon, NULL, 0));
}
/* End Method: dlt_daemon_common::dlt_daemon_user_send_log_state */
Expand Down
4 changes: 2 additions & 2 deletions tests/gtest_dlt_user.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int dlt_nonverbose_mode(void);
#endif

#ifndef UINT64_MAX
#define UINT64_MAX 18446744073709551615
#define UINT64_MAX 18446744073709551615UL
#endif

#ifndef INT8_MIN
Expand All @@ -157,7 +157,7 @@ int dlt_nonverbose_mode(void);
#endif

#ifndef INT64_MIN
#define INT64_MIN -9223372036854775808
#define INT64_MIN -9223372036854775807
#endif

#ifndef INT8_MAX
Expand Down
Empty file modified tests/testfile.dlt
100755 → 100644
Empty file.
Empty file modified testscripts/CMakeLists.txt
100755 → 100644
Empty file.
Empty file modified testscripts/Meego/dlt-daemon.cmake
100755 → 100644
Empty file.
Empty file modified testscripts/Ubuntu/dlt-daemon.cmake
100755 → 100644
Empty file.

0 comments on commit c7d7659

Please sign in to comment.