Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
c5df5717
Commit
c5df5717
authored
Sep 18, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Cast-qual warnings fix.
parent
dce3302f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
file.c
dlls/msvcrt/file.c
+3
-2
misc.c
dlls/msvcrt/misc.c
+1
-1
No files found.
dlls/msvcrt/file.c
View file @
c5df5717
...
...
@@ -1980,7 +1980,8 @@ int CDECL _write(int fd, const void* buf, unsigned int count)
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 @@ int CDECL _write(int fd, const void* buf, unsigned int count)
{
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'
)
{
...
...
dlls/msvcrt/misc.c
View file @
c5df5717
...
...
@@ -82,7 +82,7 @@ void* CDECL _lfind(const void* match, const void* start,
{
if
(
cf
(
match
,
start
)
==
0
)
return
(
void
*
)
start
;
/* found */
start
=
(
c
har
*
)
start
+
elem_size
;
start
=
(
c
onst
char
*
)
start
+
elem_size
;
}
while
(
--
size
);
return
NULL
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment