changeset 25239:c1b3a06a3c6e

Format mapping table should be const
author reimar
date Sun, 02 Dec 2007 20:43:35 +0000
parents f42b8e689416
children 525f22b6429b
files libvo/vo_x11.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sun Dec 02 18:24:01 2007 +0000
+++ b/libvo/vo_x11.c	Sun Dec 02 20:43:35 2007 +0000
@@ -268,7 +268,7 @@
 #define BO_NATIVE    LSBFirst
 #define BO_NONNATIVE MSBFirst
 #endif
-struct fmt2Xfmtentry_s {
+const struct fmt2Xfmtentry_s {
   uint32_t mpfmt;
   int byte_order;
   unsigned red_mask;
@@ -316,7 +316,7 @@
     Colormap theCmap;
     XSetWindowAttributes xswa;
     unsigned long xswamask;
-    struct fmt2Xfmtentry_s *fmte = fmt2Xfmt;
+    const struct fmt2Xfmtentry_s *fmte = fmt2Xfmt;
 
 #ifdef HAVE_XF86VM
     unsigned int modeline_width, modeline_height;