tests: String literals are const char *
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Emil Velikov <eil.l.velikov@gmail.com>main
parent
0e1135de5c
commit
f11b8c955c
|
@ -56,7 +56,7 @@ int test_bo(struct kms_driver *kms)
|
|||
return 0;
|
||||
}
|
||||
|
||||
char *drivers[] = {
|
||||
static const char *drivers[] = {
|
||||
"i915",
|
||||
"radeon",
|
||||
"nouveau",
|
||||
|
|
|
@ -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++){
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue