mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
verify_internal_event: preserve constness of data pointer
All we're using it for is ErrorF calls, so make it a const char * to stop gcc from warning: inpututils.c: In function 'verify_internal_event': inpututils.c:629:9: warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -626,7 +626,7 @@ void verify_internal_event(const InternalEvent *ev)
|
||||
if (ev && ev->any.header != ET_Internal)
|
||||
{
|
||||
int i;
|
||||
unsigned char *data = (unsigned char*)ev;
|
||||
const unsigned char *data = (const unsigned char*)ev;
|
||||
|
||||
ErrorF("dix: invalid event type %d\n", ev->any.header);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user