Module Name:    xsrc
Committed By:   maya
Date:           Sat Oct  1 22:16:25 UTC 2016

Modified Files:
        xsrc/external/mit/xorg-server/dist/hw/xfree86/common: xf86xv.h
        xsrc/external/mit/xorg-server/dist/include: displaymode.h

Log Message:
don't use const char for these types, many drivers write to them.

ok mrg


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.4 -r1.2 \
    xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h
cvs rdiff -u -r1.1.1.1 -r1.2 \
    xsrc/external/mit/xorg-server/dist/include/displaymode.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h
diff -u xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h:1.1.1.4 xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h:1.2
--- xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h:1.1.1.4	Wed Aug 10 07:44:34 2016
+++ xsrc/external/mit/xorg-server/dist/hw/xfree86/common/xf86xv.h	Sat Oct  1 22:16:25 2016
@@ -106,7 +106,7 @@ typedef enum {
 
 typedef struct {
     int id;
-    const char *name;
+    /*const*/ char *name; /* dozens of drivers write to this value */
     unsigned short width, height;
     XvRationalRec rate;
 } XF86VideoEncodingRec, *XF86VideoEncodingPtr;

Index: xsrc/external/mit/xorg-server/dist/include/displaymode.h
diff -u xsrc/external/mit/xorg-server/dist/include/displaymode.h:1.1.1.1 xsrc/external/mit/xorg-server/dist/include/displaymode.h:1.2
--- xsrc/external/mit/xorg-server/dist/include/displaymode.h:1.1.1.1	Wed Aug 10 07:44:32 2016
+++ xsrc/external/mit/xorg-server/dist/include/displaymode.h	Sat Oct  1 22:16:25 2016
@@ -55,7 +55,8 @@ typedef enum {
 typedef struct _DisplayModeRec {
     struct _DisplayModeRec *prev;
     struct _DisplayModeRec *next;
-    const char *name;           /* identifier for the mode */
+    /* dozens of drivers write to this value */
+    /*const*/ char *name;           /* identifier for the mode */
     ModeStatus status;
     int type;
 

Reply via email to