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:
Eric Anholt 2014-04-05 12:57:16 +01:00
parent 65efc14b6a
commit 23d303bf90

View File

@ -119,7 +119,7 @@ typedef enum {
typedef struct { typedef struct {
int id; int id;
char *name; const char *name;
unsigned short width, height; unsigned short width, height;
XvRationalRec rate; XvRationalRec rate;
} KdVideoEncodingRec, *KdVideoEncodingPtr; } KdVideoEncodingRec, *KdVideoEncodingPtr;
@ -132,7 +132,7 @@ typedef struct {
typedef struct { typedef struct {
unsigned int type; unsigned int type;
int flags; int flags;
char *name; const char *name;
int nEncodings; int nEncodings;
KdVideoEncodingPtr pEncodings; KdVideoEncodingPtr pEncodings;
int nFormats; int nFormats;