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
42c733cd
Commit
42c733cd
authored
Nov 02, 2008
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 03, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Transform two for loops into while loops.
parent
892f7359
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ns_name.c
dlls/dnsapi/ns_name.c
+1
-1
ns_parse.c
dlls/dnsapi/ns_parse.c
+1
-1
No files found.
dlls/dnsapi/ns_name.c
View file @
42c733cd
...
...
@@ -103,7 +103,7 @@ dns_ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) {
if
(
dn
+
n
>=
eom
)
{
return
(
-
1
);
}
for
((
void
)
NULL
;
n
>
0
;
n
--
)
{
while
(
n
--
>
0
)
{
c
=
*
cp
++
;
if
(
special
(
c
))
{
if
(
dn
+
1
>=
eom
)
{
...
...
dlls/dnsapi/ns_parse.c
View file @
42c733cd
...
...
@@ -74,7 +74,7 @@ static int
dns_ns_skiprr
(
const
u_char
*
ptr
,
const
u_char
*
eom
,
ns_sect
section
,
int
count
)
{
const
u_char
*
optr
=
ptr
;
for
((
void
)
NULL
;
count
>
0
;
count
--
)
{
while
(
count
--
>
0
)
{
int
b
,
rdlength
;
b
=
dn_skipname
(
ptr
,
eom
);
...
...
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