summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorleo2000-09-19 01:09:41 +0000
committerleo2000-09-19 01:09:41 +0000
commit92830603059ce67e23ef91c660fcd261de97070c (patch)
treeefa96210021b7af21edbb062f524f51c880528b0 /linux
parentf26268557011628bdf0a6ee73de6fbbe8aa84a99 (diff)
Fixed warning caused from using char* to store the return value of dlerror()
git-svn-id: http://svn.leocad.org/trunk@128 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'linux')
-rwxr-xr-xlinux/linux_gl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/linux_gl.cpp b/linux/linux_gl.cpp
index d5819f3..bd083b8 100755
--- a/linux/linux_gl.cpp
+++ b/linux/linux_gl.cpp
@@ -45,7 +45,7 @@ PFNGLXGETPROCADDRESSARB pfnglXGetProcAddressARB;
void* Sys_GLGetProc (const char *symbol)
{
void* func = dlsym (gl_module, symbol);
- char* error = dlerror ();
+ const char* error = dlerror ();
if (error)
printf ("Error loading OpenGL library.\n%s\n", error);
return func;
@@ -61,7 +61,7 @@ void* Sys_GLGetExtension (const char *symbol)
bool Sys_GLOpenLibrary (const char* libname)
{
- char *error;
+ const char *error;
if (libname)
{