From 4710be20fe3170d64ba1095f4419c5bbece92a54 Mon Sep 17 00:00:00 2001
From: Patrik Stridvall <ps@leissner.se>
Date: Fri, 23 Jun 2000 15:47:14 +0000
Subject: [PATCH] Fixed some warnings.

---
 dlls/ddraw/d3ddevice/main.c |  2 +-
 dlls/wininet/http.c         | 14 +++++++++-----
 dlls/wininet/internet.c     |  4 ++--
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/dlls/ddraw/d3ddevice/main.c b/dlls/ddraw/d3ddevice/main.c
index fe6627206c3..21bfc3d3e23 100644
--- a/dlls/ddraw/d3ddevice/main.c
+++ b/dlls/ddraw/d3ddevice/main.c
@@ -490,7 +490,7 @@ HRESULT WINAPI IDirect3DDeviceImpl_Execute(
     /* Put this as the default context */
 
     /* Execute... */
-    ((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, lpDirect3DViewport);
+    ((IDirect3DExecuteBufferImpl*)lpDirect3DExecuteBuffer)->execute(lpDirect3DExecuteBuffer, iface, (IDirect3DViewport2*)lpDirect3DViewport);
 
     return DD_OK;
 }
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 35e68d0bb40..5cee68598e3 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -7,6 +7,8 @@
  *
  */
 
+#include "config.h"
+
 #include "windows.h"
 #include "wininet.h"
 #include "debugtools.h"
@@ -16,7 +18,9 @@
 #include "winsock.h"
 
 #include <sys/types.h>
-#include <sys/socket.h>
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
 #include <netdb.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -721,7 +725,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName,
 
     if (hIC->lpfnStatusCB)
         hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_RESOLVING_NAME,
-           lpszServerName, strlen(lpszServerName));
+           (LPVOID)lpszServerName, strlen(lpszServerName));
 
     if (nServerPort == INTERNET_INVALID_PORT_NUMBER)
 	nServerPort = INTERNET_DEFAULT_HTTP_PORT;
@@ -734,7 +738,7 @@ HINTERNET HTTP_Connect(HINTERNET hInternet, LPCSTR lpszServerName,
 
     if (hIC->lpfnStatusCB)
         hIC->lpfnStatusCB(hInternet, dwContext, INTERNET_STATUS_NAME_RESOLVED,
-           lpszServerName, strlen(lpszServerName));
+           (LPVOID)lpszServerName, strlen(lpszServerName));
 
     lpwhs->hdr.htype = WH_HHTTPSESSION;
     lpwhs->hdr.lpwhparent = (LPWININETHANDLEHEADER)hInternet;
@@ -1033,8 +1037,8 @@ BOOL HTTP_ProcessHeader(LPWININETHTTPREQA lpwhr, LPCSTR field, LPCSTR value, DWO
 	{
 	    HTTPHEADERA hdr;
 
-	    hdr.lpszField = field;
-	    hdr.lpszValue = value;
+	    hdr.lpszField = (LPSTR)field;
+	    hdr.lpszValue = (LPSTR)value;
 	    hdr.wFlags = hdr.wCount = 0;
 
             if (dwModifier & HTTP_ADDHDR_FLAG_REQ)
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 2b2f8c0606b..cb67dc64963 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -465,7 +465,7 @@ BOOL SetUrlComponentValue(LPSTR* lppszComponent, LPDWORD dwComponentLen, LPCSTR
     {
 	if (*lppszComponent == NULL)
 	{
-            *lppszComponent = lpszStart;
+            *lppszComponent = (LPSTR)lpszStart;
 	    *dwComponentLen = len;
 	}
 	else
@@ -523,7 +523,7 @@ BOOL WINAPI InternetCrackUrlA(LPCSTR lpszUrl, DWORD dwUrlLength, DWORD dwFlags,
         }
 	else
 	{
-	    lpszcp = lpszUrl; /* Relative url */
+	    lpszcp = (LPSTR)lpszUrl; /* Relative url */
         }
 
         break;
-- 
GitLab