aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/lib506.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/lib506.c
parent2b7bde4d3f08f1414fd73cb908d60e53949c33da (diff)
tests: fix -Wcast-qual warnings
Avoid casting string literals to non-const char *.
Diffstat (limited to 'tests/libtest/lib506.c')
-rw-r--r--tests/libtest/lib506.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib506.c b/tests/libtest/lib506.c
index b8db83cb6..d26252b6f 100644
--- a/tests/libtest/lib506.c
+++ b/tests/libtest/lib506.c
@@ -33,7 +33,7 @@ struct Tdata {
};
struct userdata {
- char *text;
+ const char *text;
int counter;
};
@@ -184,7 +184,7 @@ int test(char *URL)
int i;
struct userdata user;
- user.text = (char *)"Pigs in space";
+ user.text = "Pigs in space";
user.counter = 0;
printf("GLOBAL_INIT\n");