aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/first.c
diff options
context:
space:
mode:
authorMarcel Raad <raad@teamviewer.com>2017-05-05 21:29:50 +0200
committerMarcel Raad <raad@teamviewer.com>2017-05-05 21:29:50 +0200
commit6dc3422d48b002887ae3a78afdf626f792397c06 (patch)
tree560021e5413048cdb12c085e0b46ec9bc2512b58 /tests/libtest/first.c
parent2b7bde4d3f08f1414fd73cb908d60e53949c33da (diff)
tests: fix -Wcast-qual warnings
Avoid casting string literals to non-const char *.
Diffstat (limited to 'tests/libtest/first.c')
-rw-r--r--tests/libtest/first.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c
index 231ae368c..72140e314 100644
--- a/tests/libtest/first.c
+++ b/tests/libtest/first.c
@@ -116,7 +116,7 @@ static void memory_tracking_init(void)
#endif
/* returns a hexdump in a static memory area */
-char *hexdump(unsigned char *buffer, size_t len)
+char *hexdump(const unsigned char *buffer, size_t len)
{
static char dump[200*3+1];
char *p = dump;