mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-07 04:14:20 +00:00
kdrive: Mark XV names const to avoid warnings.
No code modifies it at runtime, and it's common to store string literals to it. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
@@ -119,7 +119,7 @@ typedef enum {
|
||||
|
||||
typedef struct {
|
||||
int id;
|
||||
char *name;
|
||||
const char *name;
|
||||
unsigned short width, height;
|
||||
XvRationalRec rate;
|
||||
} KdVideoEncodingRec, *KdVideoEncodingPtr;
|
||||
@@ -132,7 +132,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
unsigned int type;
|
||||
int flags;
|
||||
char *name;
|
||||
const char *name;
|
||||
int nEncodings;
|
||||
KdVideoEncodingPtr pEncodings;
|
||||
int nFormats;
|
||||
|
||||
Reference in New Issue
Block a user