From 789d64e19a3b3d98b88bc80f677e0c37bfb5c631 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 13 May 2012 00:03:35 -0700 Subject: Remove unneccesary casts from WriteToClient calls Casting return to (void) was used to tell lint that you intended to ignore the return value, so it didn't warn you about it. Casting the third argument to (char *) was used as the most generic pointer type in the days before compilers supported C89 (void *) (except for a couple places it's used for byte-sized pointer math). Signed-off-by: Alan Coopersmith Reviewed-by: Keith Packard Tested-by: Daniel Stone --- Xi/getfocus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Xi/getfocus.c') diff --git a/Xi/getfocus.c b/Xi/getfocus.c index ba36e37e3..54c176fa2 100644 --- a/Xi/getfocus.c +++ b/Xi/getfocus.c @@ -135,5 +135,5 @@ SRepXGetDeviceFocus(ClientPtr client, int size, xGetDeviceFocusReply * rep) swapl(&rep->length); swapl(&rep->focus); swapl(&rep->time); - WriteToClient(client, size, (char *) rep); + WriteToClient(client, size, rep); } -- cgit v1.2.3