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
1a1d0a3e
Commit
1a1d0a3e
authored
Dec 10, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Remove unneeded casts.
parent
2702da69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
ns_parse.c
dlls/dnsapi/ns_parse.c
+2
-2
query.c
dlls/dnsapi/query.c
+6
-6
No files found.
dlls/dnsapi/ns_parse.c
View file @
1a1d0a3e
...
...
@@ -51,7 +51,7 @@ static void setsection(ns_msg *msg, ns_sect sect);
#endif
#define DNS_NS_GET16(s, cp) do { \
register const u_char *t_cp = (c
onst u_char *)(c
p); \
register const u_char *t_cp = (cp); \
(s) = ((WORD)t_cp[0] << 8) \
| ((WORD)t_cp[1]) \
; \
...
...
@@ -59,7 +59,7 @@ static void setsection(ns_msg *msg, ns_sect sect);
} while (0)
#define DNS_NS_GET32(l, cp) do { \
register const u_char *t_cp = (c
onst u_char *)(c
p); \
register const u_char *t_cp = (cp); \
(l) = ((DWORD)t_cp[0] << 24) \
| ((DWORD)t_cp[1] << 16) \
| ((DWORD)t_cp[2] << 8) \
...
...
dlls/dnsapi/query.c
View file @
1a1d0a3e
...
...
@@ -279,13 +279,13 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W
{
/* FIXME: byte order? */
r
->
Data
.
KEY
.
wFlags
=
*
(
const
WORD
*
)
pos
;
pos
+=
sizeof
(
WORD
);
r
->
Data
.
KEY
.
chProtocol
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
KEY
.
chAlgorithm
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
KEY
.
chProtocol
=
*
pos
++
;
r
->
Data
.
KEY
.
chAlgorithm
=
*
pos
++
;
size
=
rr
->
rdata
+
rr
->
rdlength
-
pos
;
for
(
i
=
0
;
i
<
size
;
i
++
)
r
->
Data
.
KEY
.
Key
[
i
]
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
KEY
.
Key
[
i
]
=
*
pos
++
;
*
dlen
=
sizeof
(
DNS_KEY_DATA
)
+
(
size
-
1
)
*
sizeof
(
BYTE
);
break
;
...
...
@@ -353,8 +353,8 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W
/* FIXME: byte order? */
r
->
Data
.
SIG
.
wTypeCovered
=
*
(
const
WORD
*
)
pos
;
pos
+=
sizeof
(
WORD
);
r
->
Data
.
SIG
.
chAlgorithm
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
SIG
.
chLabelCount
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
SIG
.
chAlgorithm
=
*
pos
++
;
r
->
Data
.
SIG
.
chLabelCount
=
*
pos
++
;
r
->
Data
.
SIG
.
dwOriginalTtl
=
*
(
const
DWORD
*
)
pos
;
pos
+=
sizeof
(
DWORD
);
r
->
Data
.
SIG
.
dwExpiration
=
*
(
const
DWORD
*
)
pos
;
pos
+=
sizeof
(
DWORD
);
r
->
Data
.
SIG
.
dwTimeSigned
=
*
(
const
DWORD
*
)
pos
;
pos
+=
sizeof
(
DWORD
);
...
...
@@ -363,7 +363,7 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W
size
=
rr
->
rdata
+
rr
->
rdlength
-
pos
;
for
(
i
=
0
;
i
<
size
;
i
++
)
r
->
Data
.
SIG
.
Signature
[
i
]
=
*
(
const
BYTE
*
)
pos
++
;
r
->
Data
.
SIG
.
Signature
[
i
]
=
*
pos
++
;
*
dlen
=
sizeof
(
DNS_SIG_DATAA
)
+
(
size
-
1
)
*
sizeof
(
BYTE
);
break
;
...
...
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