- Silence some C4028 warnings in our code by fixing some mismatched const.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 5 Sep 2015 20:50:51 +0000 (20:50 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Sat, 5 Sep 2015 20:50:51 +0000 (20:50 +0000)
- Also remove a misplaced INIT_FUNCTION and straggler RtlPrefetchMemoryNonTemporal.

svn path=/trunk/; revision=69042

reactos/dll/opengl/mesa/main/buffers.h
reactos/include/psdk/tapi.h
reactos/lib/drivers/ip/transport/tcp/event.c
reactos/lib/rtl/nls.c
reactos/lib/rtl/powerpc/rtlmem.s

index ae6f3fc..c0b431a 100644 (file)
@@ -41,7 +41,7 @@ extern void GLAPIENTRY
 _mesa_DrawBuffer( GLenum mode );
 
 extern void
-_mesa_drawbuffer(struct gl_context *ctx, const GLenum buffers, const GLbitfield destMask);
+_mesa_drawbuffer(struct gl_context *ctx, const GLenum buffers, GLbitfield destMask);
 
 extern void
 _mesa_readbuffer(struct gl_context *ctx, GLenum buffer, GLint bufferIndex);
index b84022a..b40c308 100644 (file)
@@ -956,7 +956,7 @@ DWORD WINAPI lineSetCallParams(HCALL,DWORD,DWORD,DWORD,LPLINEDIALPARAMS);
 DWORD WINAPI lineSetCallPrivilege(HCALL,DWORD);
 DWORD WINAPI lineSetCurrentLocation(HLINEAPP,DWORD);
 DWORD WINAPI lineSetDevConfig(DWORD,LPVOID,DWORD,LPCSTR);
-DWORD WINAPI lineSetMediaControl(HLINE,DWORD,HCALL,DWORD,LPLINEMEDIACONTROLDIGIT,DWORD,LPLINEMEDIACONTROLMEDIA,DWORD,LPLINEMEDIACONTROLTONE,DWORD,LPLINEMEDIACONTROLCALLSTATE,DWORD);
+DWORD WINAPI lineSetMediaControl(HLINE,DWORD,HCALL,DWORD,LPLINEMEDIACONTROLDIGIT const,DWORD,LPLINEMEDIACONTROLMEDIA const,DWORD,LPLINEMEDIACONTROLTONE const,DWORD,LPLINEMEDIACONTROLCALLSTATE const,DWORD);
 DWORD WINAPI lineSetMediaMode(HCALL,DWORD);
 DWORD WINAPI lineSetNumRings(HLINE,DWORD,DWORD);
 DWORD WINAPI lineSetStatusMessages(HLINE,DWORD,DWORD);
index 7563a50..8c33518 100644 (file)
@@ -351,7 +351,7 @@ TCPAcceptEventHandler(void *arg, PTCP_PCB newpcb)
 }
 
 VOID
-TCPSendEventHandler(void *arg, u16_t space)
+TCPSendEventHandler(void *arg, const u16_t space)
 {
     PCONNECTION_ENDPOINT Connection = (PCONNECTION_ENDPOINT)arg;
     PTDI_BUCKET Bucket;
@@ -471,7 +471,7 @@ TCPRecvEventHandler(void *arg)
 }
 
 VOID
-TCPConnectEventHandler(void *arg, err_t err)
+TCPConnectEventHandler(void *arg, const err_t err)
 {
     PCONNECTION_ENDPOINT Connection = (PCONNECTION_ENDPOINT)arg;
     PTDI_BUCKET Bucket;
index ee892a0..30dfd07 100644 (file)
@@ -37,8 +37,6 @@ USHORT NlsOemDefaultChar = '\0';
 USHORT NlsUnicodeDefaultChar = 0;
 
 
-#define INIT_FUNCTION
-
 /* FUNCTIONS *****************************************************************/
 
 /*
index 8d08ed0..8e40176 100644 (file)
@@ -9,7 +9,6 @@
 .globl RtlFillMemoryUlonglong
 .globl RtlMoveMemory
 .globl RtlZeroMemory
-.globl RtlPrefetchMemoryNonTemporal
         
 RtlCompareMemory:
 1: