summaryrefslogtreecommitdiff
path: root/tools/persistence_db_viewer.c
diff options
context:
space:
mode:
authorIngo Huerner <ingo_huerner@mentor.com>2017-01-03 08:44:01 +0100
committerIngo Huerner <ingo_huerner@mentor.com>2017-01-03 08:44:01 +0100
commitb52af93c62400b6bf53225a5ddcbb7439d684143 (patch)
tree36410f02619f1e8cc419b4b1aa7c09c625a0bd39 /tools/persistence_db_viewer.c
parent3912e1c00f57782d927aab1efdbb921473ea034e (diff)
downloadpersistence-client-library-b52af93c62400b6bf53225a5ddcbb7439d684143.tar.gz
Added DLT log message for every API call
New compiler flags Splitted tests in key and file api tests, make multi thread tests work again
Diffstat (limited to 'tools/persistence_db_viewer.c')
-rw-r--r--tools/persistence_db_viewer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/persistence_db_viewer.c b/tools/persistence_db_viewer.c
index bff8007..15f20df 100644
--- a/tools/persistence_db_viewer.c
+++ b/tools/persistence_db_viewer.c
@@ -146,8 +146,8 @@ void printDBcontent(const char* appname, dbType type)
listSize = persComDbGetSizeKeysList(handle);
if(listSize > 0 && listSize < 2048)
{
- resourceList = (char*)malloc(listSize+4);
- memset(resourceList, 0, listSize+4-1);
+ resourceList = (char*)malloc((size_t)listSize+4);
+ memset(resourceList, 0, (size_t)listSize+4-1);
if(resourceList != NULL)
{
@@ -222,8 +222,8 @@ void printRCTcontent(const char* appname, int full)
listSize = persComRctGetSizeResourcesList(handle);
if(listSize > 0 && listSize < 2048)
{
- resourceList = (char*)malloc(listSize+4);
- memset(resourceList, 0, listSize+4-1);
+ resourceList = (char*)malloc((size_t)listSize+4);
+ memset(resourceList, 0, (size_t)listSize+4-1);
if(resourceList != NULL)
{
@@ -319,7 +319,7 @@ void printSingleApplicationDBs(const char* appname, const char* thePath, unsigne
if(databaseTypes != dbTypeNone)
{
- int i = 0;
+ int i = 0;
for(i=1; i<=5; i++)
{
if(databaseTypes & gDbMaskArray[i]) // check if db content needs to be printed