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
b8f17bac
Commit
b8f17bac
authored
Jan 01, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 02, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi/tests: Remove superfluous casts.
The pointers to r1 and r2 are already PDNS_RECORDs.
parent
e4db17f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
record.c
dlls/dnsapi/tests/record.c
+7
-7
No files found.
dlls/dnsapi/tests/record.c
View file @
b8f17bac
...
@@ -37,25 +37,25 @@ static DNS_RECORDA r3 = { NULL, name1, DNS_TYPE_A, sizeof(DNS_A_DATA), { 0 }, 12
...
@@ -37,25 +37,25 @@ static DNS_RECORDA r3 = { NULL, name1, DNS_TYPE_A, sizeof(DNS_A_DATA), { 0 }, 12
static
void
test_DnsRecordCompare
(
void
)
static
void
test_DnsRecordCompare
(
void
)
{
{
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r1
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r1
)
==
TRUE
,
"failed unexpectedly
\n
"
);
r2
.
pName
=
name2
;
r2
.
pName
=
name2
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetUnicode
;
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetUnicode
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
r2
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
r1
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
r1
.
Flags
.
S
.
CharSet
=
DnsCharSetAnsi
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
r1
.
dwTtl
=
0
;
r1
.
dwTtl
=
0
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
TRUE
,
"failed unexpectedly
\n
"
);
r2
.
Data
.
A
.
IpAddress
=
0
;
r2
.
Data
.
A
.
IpAddress
=
0
;
ok
(
DnsRecordCompare
(
(
PDNS_RECORD
)
&
r1
,
(
PDNS_RECORD
)
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
ok
(
DnsRecordCompare
(
&
r1
,
&
r2
)
==
FALSE
,
"succeeded unexpectedly
\n
"
);
}
}
static
void
test_DnsRecordSetCompare
(
void
)
static
void
test_DnsRecordSetCompare
(
void
)
...
...
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