summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordbiastoch <dbiastoch@de.adit-jv.com>2021-03-02 15:30:12 +0100
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-06-30 10:54:59 +0900
commit72dc5bb1fa7bd0823ef17269ab6e5c7dd76f90fd (patch)
tree631ae247e49d032b4606343074a0df45867757d1 /include
parentec6dbfceb71bf11c944fa061064a7625e0240ef3 (diff)
downloadDLT-daemon-72dc5bb1fa7bd0823ef17269ab6e5c7dd76f90fd.tar.gz
dlt-receive:Fix compiler warning
dlt_common.c: -Check if filter file fits into read buffer -Cast 'filename' into non-const to make it json-c API conform Signed-off-by: dbiastoch <dbiastoch@de.adit-jv.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h
index 89f9c96..f2ffe50 100644
--- a/include/dlt/dlt_common.h
+++ b/include/dlt/dlt_common.h
@@ -298,6 +298,7 @@ enum {
# define DLT_FILTER_MAX 30 /**< Maximum number of filters */
# define JSON_FILTER_NAME_SIZE 16 /* Size of buffer for the filter names in json filter files */
+# define JSON_FILTER_SIZE 200 /* Size in bytes, that the definition of one filter with all parameters needs */
# define DLT_MSG_READ_VALUE(dst, src, length, type) \
{ \