summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-03-21 12:12:53 -0400
committerAdam Jackson <ajax@redhat.com>2011-03-28 12:46:38 -0400
commit3e0b311aba54895d806174526511ef11b31432b1 (patch)
tree455be014b3525d8dd77c705f0d4c1163d5464aa3
parent501506cf9df3d81556d44d074d8321fe6c171576 (diff)
glx: minor cast cleanup
Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r--glx/glxext.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/glx/glxext.c b/glx/glxext.c
index db767f753..3f3dd798f 100644
--- a/glx/glxext.c
+++ b/glx/glxext.c
@@ -385,7 +385,7 @@ __GLXcontext *__glXForceCurrent(__GLXclientState *cl, GLXContextTag tag,
** See if the context tag is legal; it is managed by the extension,
** so if it's invalid, we have an implementation error.
*/
- cx = (__GLXcontext *) __glXLookupContextByTag(cl, tag);
+ cx = __glXLookupContextByTag(cl, tag);
if (!cx) {
cl->client->errorValue = tag;
*error = __glXError(GLXBadContextTag);
@@ -534,9 +534,8 @@ static int __glXDispatch(ClientPtr client)
/*
** Use the opcode to index into the procedure table.
*/
- proc = (__GLXdispatchSingleProcPtr) __glXGetProtocolDecodeFunction(& Single_dispatch_info,
- opcode,
- client->swapped);
+ proc = __glXGetProtocolDecodeFunction(& Single_dispatch_info, opcode,
+ client->swapped);
if (proc != NULL) {
GLboolean rendering = opcode <= X_GLXRenderLarge;
__glXleaveServer(rendering);