From: ehofman Date: Sun, 27 Jun 2004 08:09:56 +0000 (+0000) Subject: Some small updates. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5034346b67d853b11de71677b677dea2df597a95;p=simgear.git Some small updates. --- 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)