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
2cb378d4
Commit
2cb378d4
authored
Oct 20, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dnsapi: Avoid non-portable types.
parent
48ca6218
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
ns_parse.c
dlls/dnsapi/ns_parse.c
+8
-6
No files found.
dlls/dnsapi/ns_parse.c
View file @
2cb378d4
...
...
@@ -34,6 +34,8 @@
#endif
#include <string.h>
#include "windef.h"
/* Forward. */
static
void
setsection
(
ns_msg
*
msg
,
ns_sect
sect
);
...
...
@@ -50,18 +52,18 @@ static void setsection(ns_msg *msg, ns_sect sect);
#define DNS_NS_GET16(s, cp) do { \
register const u_char *t_cp = (const u_char *)(cp); \
(s) = ((
u_int16_t
)t_cp[0] << 8) \
| ((
u_int16_t
)t_cp[1]) \
(s) = ((
WORD
)t_cp[0] << 8) \
| ((
WORD
)t_cp[1]) \
; \
(cp) += NS_INT16SZ; \
} while (0)
#define DNS_NS_GET32(l, cp) do { \
register const u_char *t_cp = (const u_char *)(cp); \
(l) = ((
u_int32_t
)t_cp[0] << 24) \
| ((
u_int32_t
)t_cp[1] << 16) \
| ((
u_int32_t
)t_cp[2] << 8) \
| ((
u_int32_t
)t_cp[3]) \
(l) = ((
DWORD
)t_cp[0] << 24) \
| ((
DWORD
)t_cp[1] << 16) \
| ((
DWORD
)t_cp[2] << 8) \
| ((
DWORD
)t_cp[3]) \
; \
(cp) += NS_INT32SZ; \
} while (0)
...
...
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