mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-24 16:00:05 +01:00
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>
This commit is contained in:
parent
eb25facb37
commit
1d1ff1142a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue