Alexandre Julliard : winex11: Fix a compiler warning.

Alexandre Julliard julliard at winehq.org
Wed Dec 9 10:46:27 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Dec  9 13:13:29 2009 +0100

winex11: Fix a compiler warning.

---

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

diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c
index aadb7f1..38f1dad 100644
--- a/dlls/winex11.drv/opengl.c
+++ b/dlls/winex11.drv/opengl.c
@@ -368,7 +368,7 @@ static BOOL X11DRV_WineGL_InitOpenglInfo(void)
         /* In general indirect rendering on a local X11 server indicates a driver problem.
          * Detect a local X11 server by checking whether the X11 socket is a Unix socket.
          */
-        if(!getsockname(fd, &uaddr, &uaddrlen) && uaddr.sun_family == AF_UNIX)
+        if(!getsockname(fd, (struct sockaddr *)&uaddr, &uaddrlen) && uaddr.sun_family == AF_UNIX)
             ERR_(winediag)("Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly\n");
     }
 




More information about the wine-cvs mailing list