summaryrefslogtreecommitdiff
path: root/GL
diff options
context:
space:
mode:
authorIan Romanick <idr@umwelt.(none)>2006-08-23 16:00:48 -0700
committerIan Romanick <idr@umwelt.(none)>2006-08-23 16:00:48 -0700
commit7ae82b5fc8721be78b43a322bbf2c46aac08b8cf (patch)
treee2bd0b8212e5d86a32ac2d56be39704648f318f1 /GL
parent39a620d17809dc71fb5ad61a955fe3c442f90a05 (diff)
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!
Diffstat (limited to 'GL')
-rw-r--r--GL/glx/indirect_table.h6
1 files 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;
};
/**