summaryrefslogtreecommitdiff
path: root/daemons
diff options
context:
space:
mode:
authorBrant Thomsen <brant.thomsen@harman.com>2017-02-08 15:50:43 -0700
committerLevi Pearson <levi.pearson@harman.com>2017-03-28 13:47:21 -0600
commitda9d87acc57a38e04efca2e7a5cbe1d71568edd1 (patch)
tree2448ac99718ca7b1de86d3c294c783ce6c3b1f3c /daemons
parent5be921d49bf440fd6b0a697c1ae28ae7d4e53e04 (diff)
downloadOpen-AVB-da9d87acc57a38e04efca2e7a5cbe1d71568edd1.tar.gz
Casts to resolve VS2013 x64 compiler warnings.
Diffstat (limited to 'daemons')
-rw-r--r--daemons/maap/common/maap.c4
-rw-r--r--daemons/maap/windows/src/maap_log_windows.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/daemons/maap/common/maap.c b/daemons/maap/common/maap.c
index bf1b50cb..5a25d967 100644
--- a/daemons/maap/common/maap.c
+++ b/daemons/maap/common/maap.c
@@ -338,10 +338,10 @@ static void log_print_notify_result(Maap_Output_Type outputType, int logLevel, c
if (nInitial < 0) {
if (logLevel == MAAP_LOG_LEVEL_ERROR) {
printf("Error: ");
- nInitial = strlen("Error: ");
+ nInitial = (int) strlen("Error: ");
} else if (logLevel == MAAP_LOG_LEVEL_WARNING) {
printf("Warning: ");
- nInitial = strlen("Warning: ");
+ nInitial = (int) strlen("Warning: ");
} else {
nInitial = 0;
}
diff --git a/daemons/maap/windows/src/maap_log_windows.c b/daemons/maap/windows/src/maap_log_windows.c
index 41c7243f..2fc90bd2 100644
--- a/daemons/maap/windows/src/maap_log_windows.c
+++ b/daemons/maap/windows/src/maap_log_windows.c
@@ -152,7 +152,7 @@ uint32_t maapLogGetMsg(uint8_t *pBuf, uint32_t bufSize)
if (pLogItem->bRT)
maapLogRTRender(pLogItem);
- dataLen = strlen((const char *)pLogItem->msg);
+ dataLen = (uint32_t) strlen((const char *)pLogItem->msg);
if (dataLen <= bufSize)
memcpy(pBuf, (uint8_t *)pLogItem->msg, dataLen);
else