From 132b464d734b077038e19b21e46d3a6258f4b998 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 22 Jan 2009 02:11:16 -0500 Subject: Remove a bunch of useless casts. We've had void * for twenty years now people let's try to act like we know how it works. --- Xext/security.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xext/security.c') diff --git a/Xext/security.c b/Xext/security.c index e37906366..fc4691b0e 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -407,7 +407,7 @@ SecurityEventSelectForAuthorization( } } - pEventClient = (OtherClients *) xalloc(sizeof(OtherClients)); + pEventClient = xalloc(sizeof(OtherClients)); if (!pEventClient) return BadAlloc; pEventClient->mask = mask; @@ -539,7 +539,7 @@ ProcSecurityGenerateAuthorization( /* associate additional information with this auth ID */ - pAuth = (SecurityAuthorizationPtr)xalloc(sizeof(SecurityAuthorizationRec)); + pAuth = xalloc(sizeof(SecurityAuthorizationRec)); if (!pAuth) { err = BadAlloc; -- cgit v1.2.3