summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien RAILLET <sebastien.raillet@marelli.com>2021-10-12 15:05:00 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-10-13 12:17:10 +0900
commitcc7ed02b543f384f37c8fb28b33ed48c038ac648 (patch)
tree0e90dfdd7b2a5ea98c1af9abd1811c6e66bc15c6 /src
parent1919000c897ccf0f88a5584faf3a2efc1a7a3c30 (diff)
downloadDLT-daemon-cc7ed02b543f384f37c8fb28b33ed48c038ac648.tar.gz
fixes compilation issue with clang
* function atomic_compare_exchange_strong expect a pointer to an _Atomic type. dlt_user_initialised is now an atomic_bool * function dlt_set_filesize_max returned a DLT_LOG_ERROR which isn't a DltReturnValue. This commit replaces DLT_LOG_ERROR by DLT_RETURN_ERROR which is the expected return type Signed-off-by: Sebastien RAILLET <sebastien.raillet@marelli.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/dlt_user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index cc6a21d..fff621e 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -91,7 +91,7 @@
#endif /* DLT_FATAL_LOG_RESET_ENABLE */
static DltUser dlt_user;
-static bool dlt_user_initialised = false;
+static atomic_bool dlt_user_initialised = false;
static int dlt_user_freeing = 0;
static bool dlt_user_file_reach_max = false;
@@ -594,7 +594,7 @@ DltReturnValue dlt_set_filesize_max(unsigned int filesize)
{
dlt_vlog(LOG_ERR, "%s: Library is not configured to log to file\n",
__func__);
- return DLT_LOG_ERROR;
+ return DLT_RETURN_ERROR;
}
if (filesize == 0) {