summaryrefslogtreecommitdiff
path: root/tests/libtest/lib586.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/lib586.c
parent2b7bde4d3f08f1414fd73cb908d60e53949c33da (diff)
downloadcurl-6dc3422d48b002887ae3a78afdf626f792397c06.tar.gz
tests: fix -Wcast-qual warnings
Avoid casting string literals to non-const char *.
Diffstat (limited to 'tests/libtest/lib586.c')
-rw-r--r--tests/libtest/lib586.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib586.c b/tests/libtest/lib586.c
index a4fc6feee..859ef3430 100644
--- a/tests/libtest/lib586.c
+++ b/tests/libtest/lib586.c
@@ -31,7 +31,7 @@ struct Tdata {
};
struct userdata {
- char *text;
+ const char *text;
int counter;
};
@@ -138,7 +138,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");