Andrew Talbot : msvcrt: Cast-qual warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Sep 20 05:33:47 CDT 2006
Module: wine
Branch: master
Commit: c5df5717e9ef4b551591ca88cbe322b98b2b377d
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c5df5717e9ef4b551591ca88cbe322b98b2b377d
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Mon Sep 18 22:18:41 2006 +0100
msvcrt: Cast-qual warnings fix.
---
dlls/msvcrt/file.c | 5 +++--
dlls/msvcrt/misc.c | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index ba5b445..d65f0d3 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -1980,7 +1980,8 @@ #endif
else
{
unsigned int i, j, nr_lf;
- char *s =(char*)buf, *buf_start=(char*)buf, *p;
+ char *p;
+ const char *s = (const char *)buf, *buf_start = (const char *)buf;
/* find number of \n ( without preceding \r ) */
for ( nr_lf=0,i = 0; i <count; i++)
{
@@ -1994,7 +1995,7 @@ #endif
{
if ((p = MSVCRT_malloc(count + nr_lf)))
{
- for(s=(char*)buf, i=0, j=0; i<count; i++)
+ for (s = (const char *)buf, i = 0, j = 0; i < count; i++)
{
if (s[i]== '\n')
{
diff --git a/dlls/msvcrt/misc.c b/dlls/msvcrt/misc.c
index a901f4f..99f5214 100644
--- a/dlls/msvcrt/misc.c
+++ b/dlls/msvcrt/misc.c
@@ -82,7 +82,7 @@ void* CDECL _lfind(const void* match, co
{
if (cf(match, start) == 0)
return (void *)start; /* found */
- start = (char*)start + elem_size;
+ start = (const char *)start + elem_size;
} while (--size);
return NULL;
}
More information about the wine-cvs
mailing list