summaryrefslogtreecommitdiff
path: root/hw/dmx
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2017-09-27 14:31:35 -0400
committerAdam Jackson <ajax@redhat.com>2017-10-04 11:19:06 -0400
commit1d1ff1142a5a3904175f45d2f52bbdffb0249e57 (patch)
tree2c21095437353c1e1aa7f700a8267615b2ef8917 /hw/dmx
parenteb25facb37ef74eab83060b75f8205ce1538817f (diff)
dmx: More const correctness
Fixes several dozen cases like: ../hw/dmx/examples/ev.c: In function ‘main’: ../hw/dmx/examples/ev.c:147:29: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] tmp = "X"; ^ Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'hw/dmx')
-rw-r--r--hw/dmx/examples/ev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/dmx/examples/ev.c b/hw/dmx/examples/ev.c
index b70016a45..09e703ce7 100644
--- a/hw/dmx/examples/ev.c
+++ b/hw/dmx/examples/ev.c
@@ -56,7 +56,7 @@ main(int argc, char **argv)
int fd = 0;
int rc;
int i, j;
- char *tmp;
+ const char *tmp;
#define test_bit(bit) (mask[(bit)/8] & (1 << ((bit)%8)))