[PATCH libdrm 08/17] libkms: use static const for good measure

Emil Velikov emil.l.velikov at gmail.com
Mon Aug 24 09:34:11 PDT 2015


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 libkms/linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libkms/linux.c b/libkms/linux.c
index b735527..6e0da83 100644
--- a/libkms/linux.c
+++ b/libkms/linux.c
@@ -149,7 +149,7 @@ struct create_record
 	int (*func)(int fd, struct kms_driver **out);
 };
 
-static struct create_record table[] = {
+static const struct create_record table[] = {
 	{ 0x8086, 0x2a42, intel_create }, /* i965 */
 #ifdef HAVE_VMWGFX
 	{ 0x15ad, 0x0405, vmwgfx_create }, /* VMware vGPU */
-- 
2.5.0



More information about the dri-devel mailing list