summaryrefslogtreecommitdiff
path: root/src/lib/dlt_user.c
diff options
context:
space:
mode:
authorMartin Willers <M.Willers@gmx.net>2020-04-21 17:25:03 +0200
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2020-05-18 08:21:27 +0900
commit09a0a665162b69d11d5b433e83d20e0c1cb53dda (patch)
treec6c593c600f87c6c816211593e89329d88ca39ac /src/lib/dlt_user.c
parentd80779e5e4bb33010ef079189a56803b032a7f2b (diff)
downloadDLT-daemon-09a0a665162b69d11d5b433e83d20e0c1cb53dda.tar.gz
Minor optimization
There is no need to have both an array and a pointer to it; just use the array directly. Signed-off-by: Martin Willers <M.Willers@gmx.net>
Diffstat (limited to 'src/lib/dlt_user.c')
-rw-r--r--src/lib/dlt_user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c
index 318e3ef..85c07f4 100644
--- a/src/lib/dlt_user.c
+++ b/src/lib/dlt_user.c
@@ -95,7 +95,7 @@ static int atexit_registered = 0;
/* used to disallow DLT usage in fork() child */
static int g_dlt_is_child = 0;
/* String truncate message */
-static const char *STR_TRUNCATED_MESSAGE = "... <<Message truncated, too long>>";
+static const char STR_TRUNCATED_MESSAGE[] = "... <<Message truncated, too long>>";
/* Enum for type of string */
enum StringType