Andrew Talbot : winex11.drv: Cast-qual warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Nov 27 12:50:57 CST 2006


Module: wine
Branch: master
Commit: c8e64830f90c6502d17d47612f15dcc9d8198c2c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c8e64830f90c6502d17d47612f15dcc9d8198c2c

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sat Nov 25 18:25:15 2006 +0000

winex11.drv: Cast-qual warnings fix.

---

 dlls/winex11.drv/opengl.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index 149b11d..146a668 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -342,7 +342,7 @@ static BOOL has_opengl(void)
         return FALSE;
     }
 
-#define LOAD_FUNCPTR(f) if((p##f = (void*)pglXGetProcAddressARB((unsigned char*)#f)) == NULL) goto sym_not_found;
+#define LOAD_FUNCPTR(f) if((p##f = (void*)pglXGetProcAddressARB((const unsigned char*)#f)) == NULL) goto sym_not_found;
 /* GLX 1.0 */
 LOAD_FUNCPTR(glXChooseVisual)
 LOAD_FUNCPTR(glXCreateContext)
@@ -1404,7 +1404,7 @@ PROC X11DRV_wglGetProcAddress(LPCSTR lps
     /* Check the table of WGL extensions to see if we need to return a WGL extension
      * or a function pointer to a native OpenGL function. */
     if(strncmp(lpszProc, "wgl", 3) != 0) {
-        return pglXGetProcAddressARB((GLubyte*)lpszProc);
+        return pglXGetProcAddressARB((const GLubyte*)lpszProc);
     } else {
         TRACE("('%s'):%*s", lpszProc, padding, " ");
         for (i = 0; i < WineGLExtensionListSize; ++i) {




More information about the wine-cvs mailing list