From 7ae82b5fc8721be78b43a322bbf2c46aac08b8cf Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 23 Aug 2006 16:00:48 -0700 Subject: [PATCH] Fix __glXDispatchInfo::dispatch_functions and __glXDispatchInfo::size_table. dispatch_functions had the const in the wrong place, and size_table was declared as an array of two pointers to int_fast16_t instead of a pointer to an array of 2 int_fast16_t. cdecl to the rescue! --- GL/glx/indirect_table.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GL/glx/indirect_table.h b/GL/glx/indirect_table.h index a2562a0ca..4af1ccbea 100644 --- a/GL/glx/indirect_table.h +++ b/GL/glx/indirect_table.h @@ -53,7 +53,7 @@ struct __glXDispatchInfo { * is the non-byte-swapped version, and the second element is the * byte-swapped version. */ - void * const (*dispatch_functions)[2]; + const void *(*dispatch_functions)[2]; /** * Pointer to size validation data. This table is indexed with the same @@ -70,7 +70,7 @@ struct __glXDispatchInfo { * If size checking is not to be performed on this type of protocol * data, this pointer will be \c NULL. */ - const int_fast16_t * size_table[2]; + const int_fast16_t (*size_table)[2]; /** * Array of functions used to calculate the variable-size portion of @@ -81,7 +81,7 @@ struct __glXDispatchInfo { * If size checking is not to be performed on this type of protocol * data, this pointer will be \c NULL. */ - const gl_proto_size_func * size_func_table; + const gl_proto_size_func *size_func_table; }; /**