summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi_entrypoint.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-03-17 08:44:09 -0600
committerBrian Paul <brianp@vmware.com>2010-03-17 08:44:54 -0600
commit59e743b8d393f2bdf023e3a5ad8fe848a7459ec9 (patch)
treed3ed80bf5fceadf70f5ef39cb64e24a24f43633e /src/mesa/glapi/glapi_entrypoint.c
parent90fe8c39f18512d22cdf52cbaa3e86a94a831ee2 (diff)
glapi: fix assorted warnings
And replace some instances of GLuint with unsigned int to avoid pulling in GL/gl.h
Diffstat (limited to 'src/mesa/glapi/glapi_entrypoint.c')
-rw-r--r--src/mesa/glapi/glapi_entrypoint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/glapi/glapi_entrypoint.c b/src/mesa/glapi/glapi_entrypoint.c
index c4f43f66a1..239780e753 100644
--- a/src/mesa/glapi/glapi_entrypoint.c
+++ b/src/mesa/glapi/glapi_entrypoint.c
@@ -56,7 +56,7 @@ extern const GLubyte gl_dispatch_functions_start[];
#if defined(DISPATCH_FUNCTION_SIZE)
_glapi_proc
-get_entrypoint_address(GLuint functionOffset)
+get_entrypoint_address(unsigned int functionOffset)
{
return (_glapi_proc) (gl_dispatch_functions_start
+ (DISPATCH_FUNCTION_SIZE * functionOffset));
@@ -97,7 +97,7 @@ init_glapi_relocs( void )
* We need assembly language in order to accomplish this.
*/
_glapi_proc
-generate_entrypoint(GLuint functionOffset)
+generate_entrypoint(unsigned int functionOffset)
{
/* 32 is chosen as something of a magic offset. For x86, the dispatch
* at offset 32 is the first one where the offset in the
@@ -122,7 +122,7 @@ generate_entrypoint(GLuint functionOffset)
* stub that was generated with the preceeding function.
*/
void
-fill_in_entrypoint_offset(_glapi_proc entrypoint, GLuint offset)
+fill_in_entrypoint_offset(_glapi_proc entrypoint, unsigned int offset)
{
GLubyte * const code = (GLubyte *) entrypoint;