From: Jan Vesely Date: Fri, 27 Feb 2015 16:45:56 +0000 (-0500) Subject: tests: String literals are const char * X-Git-Tag: libdrm-2.4.60~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f11b8c955c270dc4030de58529f2016daa4b91f7;p=platform%2Fupstream%2Flibdrm.git tests: String literals are const char * Signed-off-by: Jan Vesely Reviewed-by: Emil Velikov --- diff --git a/tests/kmstest/main.c b/tests/kmstest/main.c index 2c87b1c..59e6113 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 7618f63..4b7234d 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 916d494..02fefbf 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;