# HG changeset patch # User reimar # Date 1196628215 0 # Node ID c1b3a06a3c6e3c0f197608621f5cd932219d4592 # Parent f42b8e689416264673949bdd96348121e1bcd681 Format mapping table should be const diff -r f42b8e689416 -r c1b3a06a3c6e libvo/vo_x11.c --- 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;