From 5034346b67d853b11de71677b677dea2df597a95 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 27 Jun 2004 08:09:56 +0000 Subject: [PATCH] Some small updates. --- simgear/screen/extensions.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/screen/extensions.cxx b/simgear/screen/extensions.cxx index 420789eb..21db7136 100644 --- a/simgear/screen/extensions.cxx +++ b/simgear/screen/extensions.cxx @@ -101,7 +101,7 @@ void* macosxGetGLProcAddress(const char *func) { void *SGGetGLProcAddress(const char *func) { static void *libHandle = NULL; - void (*fptr)() = NULL; + void *fptr = NULL; /* * Clear the error buffer @@ -112,7 +112,7 @@ void *SGGetGLProcAddress(const char *func) { libHandle = dlopen("libGL.so", RTLD_LAZY); if (libHandle != NULL) { - fptr = (void (*)()) dlsym(libHandle, func); + fptr = dlsym(libHandle, func); char *error = dlerror(); if (error) -- 2.39.5