summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-02-27 11:45:56 -0500
committerJan Vesely <jan.vesely@rutgers.edu>2015-03-14 17:02:05 -0400
commitf11b8c955c270dc4030de58529f2016daa4b91f7 (patch)
tree05a4c799ec1e552e893a041f5f36c2e853a0fc96
parent0e1135de5cbb783846a4f7e9ef8a5f953f7c77ae (diff)
tests: String literals are const char *
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <eil.l.velikov@gmail.com>
-rw-r--r--tests/kmstest/main.c2
-rw-r--r--tests/proptest/proptest.c2
-rw-r--r--tests/vbltest/vbltest.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c
index 2c87b1c1..59e6113e 100644
--- a/tests/kmstest/main.c
+++ b/tests/kmstest/main.c
@@ -56,7 +56,7 @@ int test_bo(struct kms_driver *kms)
return 0;
}
-char *drivers[] = {
+static const char *drivers[] = {
"i915",
"radeon",
"nouveau",
diff --git a/tests/proptest/proptest.c b/tests/proptest/proptest.c
index 7618f63d..4b7234d2 100644
--- a/tests/proptest/proptest.c
+++ b/tests/proptest/proptest.c
@@ -303,7 +303,7 @@ static void printUsage(void)
int main(int argc, char *argv[])
{
- char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm" };
+ const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "omapdrm", "msm" };
unsigned int i, ret = 0;
for (i = 0; i < ARRAY_SIZE(modules); i++){
diff --git a/tests/vbltest/vbltest.c b/tests/vbltest/vbltest.c
index 916d4946..02fefbf1 100644
--- a/tests/vbltest/vbltest.c
+++ b/tests/vbltest/vbltest.c
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
{
unsigned i;
int c, fd, ret;
- char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" };
+ const char *modules[] = { "i915", "radeon", "nouveau", "vmwgfx", "exynos", "omapdrm", "tilcdc", "msm", "tegra", "imx-drm" };
drmVBlank vbl;
drmEventContext evctx;
struct vbl_info handler_info;