diff options
author | Eric Anholt <eric@anholt.net> | 2014-04-05 12:57:16 +0100 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-06-15 23:20:04 +0100 |
commit | 23d303bf905e76a70bda942037bdfbdcd06e55d2 (patch) | |
tree | 10de6253deb733c82d0f78082fd57bde1993ec2e /hw/kdrive/src | |
parent | 65efc14b6ae1ee73bf6db379d7826b6bc9fd6d33 (diff) |
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>
Diffstat (limited to 'hw/kdrive/src')
-rw-r--r-- | hw/kdrive/src/kxv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/src/kxv.h b/hw/kdrive/src/kxv.h index e50615b2d..3a49a659f 100644 --- a/hw/kdrive/src/kxv.h +++ b/hw/kdrive/src/kxv.h @@ -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; |